Cargo Features

[dependencies]
parry2d = { version = "0.13.7", default-features = false, features = ["std", "required-features", "dim2", "f32", "serde-serialize", "rkyv-serialize", "bytemuck-serialize", "simd-stable", "simd-nightly", "enhanced-determinism", "cuda", "parallel", "simd-is-enabled"] }
default = required-features, std

These default features are set whenever parry2d is added without default-features = false somewhere in the dependency tree.

std default = rustc-hash, slab, spade

Enables std of arrayvec, nalgebra, and simba

Affects parry2d::transformation, query::epa, query_dispatcher::PersistentQueryDispatcher, composite_shape::SimdCompositeShape, heightfield2::HeightField, heightfield3::HeightField, shape::Shape.clone_box, shape::Shape.as_composite_shape, cuda_array::CudaArray2, cuda_array::CudaArray1, utils::hashmap, heightfield2::CudaHeightField, heightfield3::CudaHeightField, shape::RoundConvexPolyhedron, shape::RoundConvexPolygon

required-features default = dim2, f32
dim2 required-features

Affects parry2d::math, clip_segment_segment::clip_segment_segment_with_normal, contact_manifold::ContactManifold.points, contact_manifolds_capsule_capsule::contact_manifold_capsule_capsule, epa::epa2, nonlinear_rigid_motion::NonlinearRigidMotion.angvel, sat_cuboid_segment::segment_cuboid_find_local_separating_normal_oneway, sat_cuboid_triangle::triangle_support_map_find_local_separating_normal_oneway, sat_cuboid_triangle::triangle_cuboid_find_local_separating_normal_oneway, time_of_impact_heightfield_shape::time_of_impact_heightfield_shape, convex_hull2::convex_hull2, utils::push_xy_arc, ccw_face_normal::ccw_face_normal, utils::point_in_triangle, shape::RoundConvexPolygon

f32 required-features
serde-serialize = serde

Enables serde of arrayvec, serde-serialize of nalgebra

Affects hashmap::serialize_hashmap_capacity, hashmap::deserialize_hashmap_capacity

rkyv-serialize

Enables rkyv-serialize of nalgebra, validation of rkyv, rkyv-serialize of simba

bytemuck-serialize = bytemuck

Enables convert-bytemuck of nalgebra

simd-stable = simd-is-enabled

Enables wide of simba

simd-nightly = simd-is-enabled

Enables packed_simd of simba

enhanced-determinism = indexmap

Enables libm_force of simba

Affects hashmap::FxHashMap32

cuda = cust, cust_core

Enables cuda of nalgebra

Affects qbvh::CudaQbvh, qbvh::CudaQbvhPtr, heightfield2::CudaHeightFieldPtr, heightfield3::CudaHeightFieldPtr, trimesh::CudaTriMesh, trimesh::CudaTriMeshPtr, array::CudaStorage, array::CudaStoragePtr, heightfield2::CudaHeightField, heightfield3::CudaHeightField

parallel = rayon

Affects visitor::ParallelSimdSimultaneousVisitor

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.

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

slab std
serde serde-serialize?
rkyv rkyv-serialize?
indexmap enhanced-determinism?

Enables indexmap ^1

rustc-hash std
cust_core cuda?
spade std
rayon parallel?
bytemuck bytemuck-serialize?
cust not cuda cuda?