diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d6e8f7..40f9b78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,11 @@ * Add support for reporting peer client information +#### Changed + +* Compiling with SIMD extensions enabled is no longer required, due to the + addition of runtime detection to simd-json + ## 0.8.0 - 2023-03-17 ### General diff --git a/Cargo.lock b/Cargo.lock index bd2a63c..3240b92 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2437,9 +2437,9 @@ dependencies = [ [[package]] name = "simd-json" -version = "0.10.7" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80ea1dfc2c400965867fc4ddd6f502572be2de2074b39f90984ed15fbdbdd8eb" +checksum = "f0f07a84c7456b901b8dd2c1d44caca8b0fd2c2616206ee5acc9d9da61e8d9ec" dependencies = [ "getrandom", "halfbrown", diff --git a/README.md b/README.md index 9ac91ff..ed367bb 100644 --- a/README.md +++ b/README.md @@ -42,11 +42,10 @@ Known users: - Build the implementations that you are interested in: ```sh -# Tell Rust to enable support for all SIMD extensions present on current CPU -# except for those relating to AVX-512. SIMD is required for aquatic_ws and -# recommended for the other implementations. If you run a processor that -# doesn't clock down when using AVX-512, you can enable those instructions -# too. +# Recommended: tell Rust to enable support for all SIMD extensions present on +# current CPU except for those relating to AVX-512. (If you run a processor +# that doesn't clock down when using AVX-512, you can enable those instructions +# too.) . ./scripts/env-native-cpu-without-avx-512 cargo build --release -p aquatic_udp diff --git a/aquatic_ws_load_test/src/network.rs b/aquatic_ws_load_test/src/network.rs index b8b4c8d..e6ef638 100644 --- a/aquatic_ws_load_test/src/network.rs +++ b/aquatic_ws_load_test/src/network.rs @@ -148,7 +148,6 @@ impl Connection { }; self.stream.send(request.to_ws_message()).await?; - self.stream.flush().await?; self.load_test_state .statistics diff --git a/aquatic_ws_protocol/Cargo.toml b/aquatic_ws_protocol/Cargo.toml index 9a44235..54053a0 100644 --- a/aquatic_ws_protocol/Cargo.toml +++ b/aquatic_ws_protocol/Cargo.toml @@ -24,7 +24,7 @@ anyhow = "1" hashbrown = { version = "0.14", features = ["serde"] } serde = { version = "1", features = ["derive"] } serde_json = "1" -simd-json = { version = "0.10", features = ["allow-non-simd"] } +simd-json = "0.12" tungstenite = "0.20" [dev-dependencies]