mirror of
https://github.com/Steffo99/patched-porobot.git
synced 2024-12-22 17:44:22 +00:00
Configure features for optional dependencies
This commit is contained in:
parent
15d02c00ba
commit
fa49916767
1 changed files with 23 additions and 10 deletions
33
Cargo.toml
33
Cargo.toml
|
@ -10,13 +10,26 @@ keywords = ["game", "deserialization", "legends-of-runeterra", "bot", "search"]
|
||||||
categories = ["games", "parser-implementations"]
|
categories = ["games", "parser-implementations"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = "1.0.140"
|
# base
|
||||||
serde_json = "1.0.82"
|
log = { version = "0.4.17" }
|
||||||
teloxide = "0.10.1"
|
# exec
|
||||||
tokio = { version = "1.20.1", features = ["rt-multi-thread", "macros"] }
|
pretty_env_logger = { version = "0.4.0", optional = true }
|
||||||
log = "0.4.17"
|
glob = { version = "0.3.0", optional = true }
|
||||||
pretty_env_logger = "0.4.0"
|
# schema
|
||||||
glob = "0.3.0"
|
serde = { version = "1.0.140" }
|
||||||
itertools = "0.10.2"
|
serde_json = { version = "1.0.82" }
|
||||||
tantivy = "0.18.0"
|
# search
|
||||||
reqwest = "0.11.11"
|
tantivy = { version = "0.18.0", optional = true }
|
||||||
|
# telegram
|
||||||
|
teloxide = { version = "0.10.1", optional = true }
|
||||||
|
reqwest = { version = "0.11.11", optional = true }
|
||||||
|
tokio = { version = "1.20.1", features = ["rt-multi-thread", "macros"], optional = true }
|
||||||
|
# discord
|
||||||
|
# matrix
|
||||||
|
|
||||||
|
[features]
|
||||||
|
# schema = [] # Always included
|
||||||
|
search = ["tantivy"]
|
||||||
|
telegram = ["search", "teloxide", "reqwest", "tokio"]
|
||||||
|
# discord = ["search"]
|
||||||
|
# matrix = ["search"]
|
Loading…
Reference in a new issue