1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2024-12-23 01:54:22 +00:00

Configure features for optional dependencies

This commit is contained in:
Steffo 2022-08-04 10:33:17 +02:00
parent 15d02c00ba
commit fa49916767
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -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"]