Cargo Features
[dependencies]
rapier2d = { version = "0.30.1", default-features = false, features = ["dim2", "f32", "parallel", "simd-stable", "simd-nightly", "simd-is-enabled", "serde-serialize", "enhanced-determinism", "debug-render", "profiler", "debug-disable-legitimate-fe-exceptions", "dev-remove-slow-accessors"] }
- default = dim2, f32
-
These default features are set whenever
rapier2dis added withoutsomewhere in the dependency tree.default-features = false - dim2 default
-
Affects
solver_body::SolverPose.padding,rapier2d::math.MAX_MANIFOLD_POINTS,rapier2d::math.Jacobian,rapier2d::math.JacobianView,rapier2d::math.JacobianViewMut,rapier2d::math.TangentImpulse,rapier2d::math.SPATIAL_DIM,rapier2d::math.ANG_DIM,outlines::instances… - f32 default
- parallel
-
Enables rayon
- simd-stable = simd-is-enabled
-
Enables simd-stable of parry2d, wide of simba
- simd-nightly = simd-is-enabled
-
Enables simd-nightly of parry2d, portable_simd of simba
- simd-is-enabled simd-nightly? simd-stable?
-
Do not enable this feature directly. It is automatically enabled with the "simd-stable" or "simd-nightly" feature.
Enables vec_map
Affects
joint_constraint_builder::JointConstraintBuilderSimd,joint_constraints_set::JointConstraintsSet.simd_velocity_constraints,joint_constraints_set::JointConstraintsSet.simd_velocity_constraints_builder… - serde-serialize
-
Enables serde, serde of arrayvec and bit-vec, serde-serialize of nalgebra and parry2d
Affects
utils::serde… - enhanced-determinism
-
Enables enhanced-determinism of parry2d, libm_force of simba
- debug-render
- profiler
-
Enables the internal profiler.
Enables web-time
- debug-disable-legitimate-fe-exceptions
-
Feature used for debugging only.
- dev-remove-slow-accessors
-
Feature used for development and debugging only.
Do not enable this unless you are working on the engine internals.