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