aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-09-18 10:47:19 -0700
committerZeyla Hellyer <[email protected]>2017-09-18 17:48:37 -0700
commit8e3b4d601ffb78909db859640482f7e0bb10131f (patch)
tree16500c9274a0517a776ea707bb623d1c9947d8cf /Cargo.toml
parentApply rustfmt (diff)
downloadserenity-8e3b4d601ffb78909db859640482f7e0bb10131f.tar.xz
serenity-8e3b4d601ffb78909db859640482f7e0bb10131f.zip
Fix compiles of a variety of feature combinations
This fixes compilation errors and warnings when compiling a mixture of non-default feature targets.
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml33
1 files changed, 25 insertions, 8 deletions
diff --git a/Cargo.toml b/Cargo.toml
index cb03a9b..31fb7a9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -11,14 +11,15 @@ repository = "https://github.com/zeyla/serenity.git"
version = "0.3.0"
[dependencies]
-base64 = "~0.6"
bitflags = "~0.9"
-flate2 = "~0.2"
log = "~0.3"
serde = "^1.0"
serde_derive = "^1.0"
serde_json = "^1.0"
-parking_lot = "0.4"
+
+[dependencies.base64]
+optional = true
+version = "~0.6"
[dependencies.byteorder]
optional = true
@@ -28,6 +29,10 @@ version = "1.0"
features = ["serde"]
version = "~0.4"
+[dependencies.flate2]
+optional = true
+version = "~0.2"
+
[dependencies.futures]
optional = true
version = "0.1"
@@ -58,6 +63,10 @@ version = "0.1"
optional = true
version = "0.2"
+[dependencies.parking_lot]
+optional = true
+version = "0.4"
+
[dependencies.sodiumoxide]
default-features = false
optional = true
@@ -95,12 +104,20 @@ default = [
]
builder = []
cache = ["lazy_static"]
-client = ["gateway", "lazy_static", "http", "typemap"]
+client = [
+ "futures",
+ "gateway",
+ "http",
+ "lazy_static",
+ "parking_lot",
+ "tokio-core",
+ "typemap",
+]
extras = []
-framework = ["client", "model", "utils", "vec_shift"]
-gateway = ["http", "websocket", "tokio-core", "futures"]
+framework = ["client", "model", "utils"]
+gateway = ["flate2", "http", "websocket", "utils"]
http = ["hyper", "hyper-native-tls", "lazy_static", "multipart", "native-tls"]
model = ["builder", "http"]
-standard_framework = ["framework"]
-utils = []
+standard_framework = ["framework", "vec_shift"]
+utils = ["base64"]
voice = ["byteorder", "gateway", "opus", "sodiumoxide"]