From 6a295d3e8e372390174cc5b3e286631eb47495c1 Mon Sep 17 00:00:00 2001 From: Thierry Berger Date: Mon, 15 Jul 2024 14:39:56 +0200 Subject: Fix string serialization for broadphase multisap (#675) --- crates/rapier2d-f64/Cargo.toml | 17 +++++++++++++++-- crates/rapier2d/Cargo.toml | 19 ++++++++++++++++--- crates/rapier3d-f64/Cargo.toml | 22 +++++++++++++++++++--- crates/rapier3d/Cargo.toml | 22 +++++++++++++++++++--- 4 files changed, 69 insertions(+), 11 deletions(-) (limited to 'crates') diff --git a/crates/rapier2d-f64/Cargo.toml b/crates/rapier2d-f64/Cargo.toml index 2606f7d..e5347a5 100644 --- a/crates/rapier2d-f64/Cargo.toml +++ b/crates/rapier2d-f64/Cargo.toml @@ -7,7 +7,13 @@ documentation = "https://docs.rs/rapier2d" homepage = "https://rapier.rs" repository = "https://github.com/dimforge/rapier" readme = "README.md" -categories = ["science", "game-development", "mathematics", "simulation", "wasm"] +categories = [ + "science", + "game-development", + "mathematics", + "simulation", + "wasm", +] keywords = ["physics", "dynamics", "rigid", "real-time", "impulse_joints"] license = "Apache-2.0" edition = "2021" @@ -26,7 +32,13 @@ simd-nightly = ["simba/portable_simd", "simd-is-enabled"] # enabled with the "simd-stable" or "simd-nightly" feature. simd-is-enabled = ["dep:vec_map"] wasm-bindgen = ["instant/wasm-bindgen"] -serde-serialize = ["nalgebra/serde-serialize", "parry2d-f64/serde-serialize", "dep:serde", "bit-vec/serde", "arrayvec/serde"] +serde-serialize = [ + "nalgebra/serde-serialize", + "parry2d-f64/serde-serialize", + "dep:serde", + "bit-vec/serde", + "arrayvec/serde", +] enhanced-determinism = ["simba/libm_force", "parry2d-f64/enhanced-determinism"] debug-render = [] profiler = ["dep:instant"] # Enables the internal profiler. @@ -70,5 +82,6 @@ thiserror = "1" [dev-dependencies] bincode = "1" +serde_json = "1" serde = { version = "1", features = ["derive"] } oorandom = { version = "11", default-features = false } diff --git a/crates/rapier2d/Cargo.toml b/crates/rapier2d/Cargo.toml index ec363c1..e8e1ad2 100644 --- a/crates/rapier2d/Cargo.toml +++ b/crates/rapier2d/Cargo.toml @@ -7,7 +7,13 @@ documentation = "https://docs.rs/rapier2d" homepage = "https://rapier.rs" repository = "https://github.com/dimforge/rapier" readme = "README.md" -categories = ["science", "game-development", "mathematics", "simulation", "wasm"] +categories = [ + "science", + "game-development", + "mathematics", + "simulation", + "wasm", +] keywords = ["physics", "dynamics", "rigid", "real-time", "impulse_joints"] license = "Apache-2.0" edition = "2021" @@ -26,7 +32,13 @@ simd-nightly = ["simba/portable_simd", "simd-is-enabled"] # enabled with the "simd-stable" or "simd-nightly" feature. simd-is-enabled = ["dep:vec_map"] wasm-bindgen = ["instant/wasm-bindgen"] -serde-serialize = ["nalgebra/serde-serialize", "parry2d/serde-serialize", "dep:serde", "bit-vec/serde", "arrayvec/serde"] +serde-serialize = [ + "nalgebra/serde-serialize", + "parry2d/serde-serialize", + "dep:serde", + "bit-vec/serde", + "arrayvec/serde", +] enhanced-determinism = ["simba/libm_force", "parry2d/enhanced-determinism"] debug-render = [] profiler = ["dep:instant"] # Enables the internal profiler. @@ -70,5 +82,6 @@ thiserror = "1" [dev-dependencies] bincode = "1" +serde_json = "1" serde = { version = "1", features = ["derive"] } -oorandom = { version = "11", default-features = false } \ No newline at end of file +oorandom = { version = "11", default-features = false } diff --git a/crates/rapier3d-f64/Cargo.toml b/crates/rapier3d-f64/Cargo.toml index 17390e7..c1d9ce7 100644 --- a/crates/rapier3d-f64/Cargo.toml +++ b/crates/rapier3d-f64/Cargo.toml @@ -7,7 +7,13 @@ documentation = "https://docs.rs/rapier3d" homepage = "https://rapier.rs" repository = "https://github.com/dimforge/rapier" readme = "README.md" -categories = ["science", "game-development", "mathematics", "simulation", "wasm"] +categories = [ + "science", + "game-development", + "mathematics", + "simulation", + "wasm", +] keywords = ["physics", "dynamics", "rigid", "real-time", "impulse_joints"] license = "Apache-2.0" edition = "2021" @@ -21,12 +27,21 @@ dim3 = [] f64 = [] parallel = ["dep:rayon"] simd-stable = ["parry3d-f64/simd-stable", "simba/wide", "simd-is-enabled"] -simd-nightly = ["parry3d-f64/simd-nightly", "simba/portable_simd", "simd-is-enabled"] +simd-nightly = [ + "parry3d-f64/simd-nightly", + "simba/portable_simd", + "simd-is-enabled", +] # Do not enable this feature directly. It is automatically # enabled with the "simd-stable" or "simd-nightly" feature. simd-is-enabled = ["dep:vec_map"] wasm-bindgen = ["instant/wasm-bindgen"] -serde-serialize = ["nalgebra/serde-serialize", "parry3d-f64/serde-serialize", "dep:serde", "bit-vec/serde"] +serde-serialize = [ + "nalgebra/serde-serialize", + "parry3d-f64/serde-serialize", + "dep:serde", + "bit-vec/serde", +] enhanced-determinism = ["simba/libm_force", "parry3d-f64/enhanced-determinism"] debug-render = [] profiler = ["dep:instant"] # Enables the internal profiler. @@ -70,5 +85,6 @@ thiserror = "1" [dev-dependencies] bincode = "1" +serde_json = "1" serde = { version = "1", features = ["derive"] } oorandom = { version = "11", default-features = false } diff --git a/crates/rapier3d/Cargo.toml b/crates/rapier3d/Cargo.toml index 3f45d7b..03947ef 100644 --- a/crates/rapier3d/Cargo.toml +++ b/crates/rapier3d/Cargo.toml @@ -7,7 +7,13 @@ documentation = "https://docs.rs/rapier3d" homepage = "https://rapier.rs" repository = "https://github.com/dimforge/rapier" readme = "README.md" -categories = ["science", "game-development", "mathematics", "simulation", "wasm"] +categories = [ + "science", + "game-development", + "mathematics", + "simulation", + "wasm", +] keywords = ["physics", "dynamics", "rigid", "real-time", "impulse_joints"] license = "Apache-2.0" edition = "2021" @@ -21,12 +27,21 @@ dim3 = [] f32 = [] parallel = ["dep:rayon"] simd-stable = ["parry3d/simd-stable", "simba/wide", "simd-is-enabled"] -simd-nightly = ["parry3d/simd-nightly", "simba/portable_simd", "simd-is-enabled"] +simd-nightly = [ + "parry3d/simd-nightly", + "simba/portable_simd", + "simd-is-enabled", +] # Do not enable this feature directly. It is automatically # enabled with the "simd-stable" or "simd-nightly" feature. simd-is-enabled = ["dep:vec_map"] wasm-bindgen = ["instant/wasm-bindgen"] -serde-serialize = ["nalgebra/serde-serialize", "parry3d/serde-serialize", "dep:serde", "bit-vec/serde"] +serde-serialize = [ + "nalgebra/serde-serialize", + "parry3d/serde-serialize", + "dep:serde", + "bit-vec/serde", +] enhanced-determinism = ["simba/libm_force", "parry3d/enhanced-determinism"] debug-render = [] profiler = ["dep:instant"] # Enables the internal profiler. @@ -70,5 +85,6 @@ thiserror = "1" [dev-dependencies] bincode = "1" +serde_json = "1" serde = { version = "1", features = ["derive"] } oorandom = { version = "11", default-features = false } -- cgit