diff --git a/Cargo.toml b/Cargo.toml index 6ebb0bf..6325207 100644 --- a/Cargo.toml +++ b/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" \ No newline at end of file +# 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"] \ No newline at end of file