Chore: Rework crate features (#139)
All dependencies have been moved to the new "dep:x" and "x?/feature" syntax to remove the bloat from the docs.rs/crates.io/lib.rs feature panes. Accordingly, this lets us break "rustls" and "native" out from annoying hybrids like "serenity-rustls" or "twilight-native" -- specify your library and your backend, and it should just work. The complete list of features is now: driver, gateway, serenity, twilight, rustls, native, builtin-queue, simd-json, internals (plus "default" and "full-doc").
This commit is contained in:
@@ -9,7 +9,7 @@ args = ["build", "--features", "full-doc"]
|
||||
dependencies = ["format"]
|
||||
|
||||
[tasks.build-simd]
|
||||
args = ["build", "--features", "full-doc,simd-json,serenity/simd_json,twilight-gateway/simd-json"]
|
||||
args = ["build", "--features", "full-doc,simd-json,serenity?/simd_json,twilight-gateway?/simd-json"]
|
||||
command = "cargo"
|
||||
dependencies = ["format"]
|
||||
env = { "RUSTFLAGS" = "-C target-cpu=native" }
|
||||
@@ -20,7 +20,7 @@ command = "cargo"
|
||||
dependencies = ["format"]
|
||||
|
||||
[tasks.build-gateway]
|
||||
args = ["build", "--no-default-features", "--features", "serenity-rustls"]
|
||||
args = ["build", "--no-default-features", "--features", "gateway,serenity,rustls"]
|
||||
command = "cargo"
|
||||
dependencies = ["format"]
|
||||
|
||||
@@ -44,7 +44,7 @@ dependencies = ["format"]
|
||||
args = ["test", "--features", "full-doc"]
|
||||
|
||||
[tasks.test-simd]
|
||||
args = ["test", "--features", "full-doc,simd-json,serenity/simd_json,twilight-gateway/simd-json"]
|
||||
args = ["test", "--features", "full-doc,simd-json,serenity?/simd_json,twilight-gateway?/simd-json"]
|
||||
command = "cargo"
|
||||
env = { "RUSTFLAGS" = "-C target-cpu=native" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user