|
|
@@ -14,17 +14,20 @@ csv = "1.1"
|
|
|
structopt = "0.3"
|
|
|
shellexpand = "2.1"
|
|
|
radix_trie = { version = "0.2", features = ["serde"] }
|
|
|
-libc = "0.2"
|
|
|
-teloxide = { version = "0.4", features = ["auto-send"] }
|
|
|
-log = "0.4.8"
|
|
|
-pretty_env_logger = "0.4.0"
|
|
|
-tokio = { version = "1.3", features = ["rt-multi-thread", "macros"] }
|
|
|
-derive_more = "0.99.13"
|
|
|
-thiserror = "1.0.24"
|
|
|
+libc = { version = "0.2" }
|
|
|
+
|
|
|
+teloxide = { version = "0.4", features = ["auto-send"], optional = true }
|
|
|
+log = { version = "0.4.8", optional = true }
|
|
|
+pretty_env_logger = { version = "0.4.0", optional = true }
|
|
|
+tokio = { version = "1.3", features = ["rt-multi-thread", "macros"], optional = true }
|
|
|
+derive_more = { version = "0.99.13", optional = true }
|
|
|
+thiserror = { version = "1.0.24", optional = true }
|
|
|
|
|
|
[build-dependencies]
|
|
|
-cc = "1.0"
|
|
|
-pkg-config = "0.3"
|
|
|
+cc = { version = "1.0", optional = true }
|
|
|
+pkg-config = { version = "0.3", optional = true }
|
|
|
|
|
|
[features]
|
|
|
-tv = []
|
|
|
+default = [ "telegram" ]
|
|
|
+tv = [ "cc", "pkg-config" ]
|
|
|
+telegram = [ "teloxide", "log", "pretty_env_logger", "tokio", "derive_more", "thiserror" ]
|