diff options
| author | Sébastien Crozet <sebcrozet@dimforge.com> | 2022-05-31 11:49:36 +0200 |
|---|---|---|
| committer | Sébastien Crozet <sebcrozet@dimforge.com> | 2022-05-31 11:49:36 +0200 |
| commit | 10ca3474e67d53d3d1ec306dd2973d95043ba666 (patch) | |
| tree | 73258de799a6904c16d5f027dcd8d3c163387298 /crates/rapier2d | |
| parent | fb1bfc762c89cd8c5bd745a82998c1662a1bf196 (diff) | |
| download | rapier-10ca3474e67d53d3d1ec306dd2973d95043ba666.tar.gz rapier-10ca3474e67d53d3d1ec306dd2973d95043ba666.tar.bz2 rapier-10ca3474e67d53d3d1ec306dd2973d95043ba666.zip | |
Make the`instant` dependency optional, behind a `profiler` cargo feature
Diffstat (limited to 'crates/rapier2d')
| -rw-r--r-- | crates/rapier2d/Cargo.toml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/rapier2d/Cargo.toml b/crates/rapier2d/Cargo.toml index d9eb7e9..df32e54 100644 --- a/crates/rapier2d/Cargo.toml +++ b/crates/rapier2d/Cargo.toml @@ -29,6 +29,7 @@ wasm-bindgen = [ "instant/wasm-bindgen" ] serde-serialize = [ "nalgebra/serde-serialize", "parry2d/serde-serialize", "serde", "bit-vec/serde", "arrayvec/serde" ] enhanced-determinism = [ "simba/libm_force", "parry2d/enhanced-determinism", "indexmap" ] debug-render = [ ] +profiler = [ "instant" ] # Enables the internal profiler. # Feature used for debugging only. debug-disable-legitimate-fe-exceptions = [ ] @@ -45,7 +46,7 @@ required-features = [ "dim2", "f32" ] [dependencies] vec_map = { version = "0.8", optional = true } -instant = { version = "0.1", features = [ "now" ]} +instant = { version = "0.1", features = [ "now" ], optional = true } num-traits = "0.2" nalgebra = "0.31" parry2d = "0.9" |
