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"]
|
||||
|
||||
[dependencies]
|
||||
serde = "1.0.140"
|
||||
serde_json = "1.0.82"
|
||||
teloxide = "0.10.1"
|
||||
tokio = { version = "1.20.1", features = ["rt-multi-thread", "macros"] }
|
||||
log = "0.4.17"
|
||||
pretty_env_logger = "0.4.0"
|
||||
glob = "0.3.0"
|
||||
itertools = "0.10.2"
|
||||
tantivy = "0.18.0"
|
||||
reqwest = "0.11.11"
|
||||
# base
|
||||
log = { version = "0.4.17" }
|
||||
# exec
|
||||
pretty_env_logger = { version = "0.4.0", optional = true }
|
||||
glob = { version = "0.3.0", optional = true }
|
||||
# schema
|
||||
serde = { version = "1.0.140" }
|
||||
serde_json = { version = "1.0.82" }
|
||||
# search
|
||||
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