Support simd_json (#105)
This PR adds support for the simd-json library whenever decoding or encoding JSON responses. This may be enabled independently of serenity and twilight support for SIMD acceleration. Co-authored-by: Kyle Simpson <kyleandrew.simpson@gmail.com>
This commit is contained in:
committed by
Kyle Simpson
parent
8cc7a22b0b
commit
cb0a74f511
@@ -8,6 +8,12 @@ args = ["fmt", "--all"]
|
||||
args = ["build", "--features", "full-doc"]
|
||||
dependencies = ["format"]
|
||||
|
||||
[tasks.build-simd]
|
||||
args = ["build", "--features", "full-doc,simd-json,serenity/simd_json,twilight-gateway/simd-json"]
|
||||
command = "cargo"
|
||||
dependencies = ["format"]
|
||||
env = { "RUSTFLAGS" = "-C target-cpu=native" }
|
||||
|
||||
[tasks.build-examples]
|
||||
args = ["build", "--manifest-path", "./examples/Cargo.toml", "--workspace"]
|
||||
command = "cargo"
|
||||
@@ -24,7 +30,7 @@ command = "cargo"
|
||||
dependencies = ["format"]
|
||||
|
||||
[tasks.build-variants]
|
||||
dependencies = ["build", "build-gateway", "build-driver"]
|
||||
dependencies = ["build", "build-gateway", "build-driver", "build-simd"]
|
||||
|
||||
[tasks.check]
|
||||
args = ["check", "--features", "full-doc"]
|
||||
@@ -37,6 +43,11 @@ dependencies = ["format"]
|
||||
[tasks.test]
|
||||
args = ["test", "--features", "full-doc"]
|
||||
|
||||
[tasks.test-simd]
|
||||
args = ["test", "--features", "full-doc,simd-json,serenity/simd_json,twilight-gateway/simd-json"]
|
||||
command = "cargo"
|
||||
env = { "RUSTFLAGS" = "-C target-cpu=native" }
|
||||
|
||||
[tasks.bench]
|
||||
description = "Runs performance benchmarks."
|
||||
category = "Test"
|
||||
|
||||
Reference in New Issue
Block a user