Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ rust.unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(feature, values("dim2", "dim3", "f32", "f64"))',
# "wavefront" is only used for 3D crates.
'cfg(feature, values("wavefront"))',
# "encase" is only used in f32 crates.
'cfg(feature, values("encase"))'
] }

[workspace.lints.clippy]
Expand Down
2 changes: 2 additions & 0 deletions crates/parry2d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ parallel = ["rayon"]
alloc = ["nalgebra/alloc", "hashbrown"]
spade = ["dep:spade", "alloc"]
improved_fixed_point_support = []
encase = [ "dep:encase", "nalgebra/encase" ]

# Do not enable this feature directly. It is automatically
# enabled with the "simd-stable" or "simd-nightly" feature.
Expand Down Expand Up @@ -93,6 +94,7 @@ thiserror = { version = "2", default-features = false }
ena = { version = "0.14.3", optional = true, default-features = false }
smallvec = "1"
foldhash = { version = "0.2", default-features = false }
encase = { version = "0.12", optional = true }

[dev-dependencies]
simba = { version = "0.9", default-features = false }
Expand Down
2 changes: 2 additions & 0 deletions crates/parry3d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ wavefront = ["obj"]
alloc = ["nalgebra/alloc", "hashbrown"]
spade = ["dep:spade", "alloc"]
improved_fixed_point_support = []
encase = [ "dep:encase", "nalgebra/encase" ]

# Do not enable this feature directly. It is automatically
# enabled with the "simd-stable" or "simd-nightly" feature.
Expand Down Expand Up @@ -97,6 +98,7 @@ ena = { version = "0.14.3", optional = true, default-features = false }
smallvec = "1"
static_assertions = "1"
foldhash = { version = "0.2", default-features = false }
encase = { version = "0.12", optional = true }

# NOTE: needed only for element_min for SIMD BVH ray-casting.
# can be removed once `wide` supports it (and allows filtering-out the
Expand Down
1 change: 1 addition & 0 deletions src/shape/ball.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ use crate::shape::SupportMap;
/// ```
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "bytemuck", derive(bytemuck::Pod, bytemuck::Zeroable))]
#[cfg_attr(feature = "encase", derive(encase::ShaderType))]
#[cfg_attr(
feature = "rkyv",
derive(rkyv::Archive, rkyv::Deserialize, rkyv::Serialize),
Expand Down
1 change: 1 addition & 0 deletions src/shape/capsule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use rkyv::{bytecheck, CheckBytes};
#[derive(Copy, Clone, Debug)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "bytemuck", derive(bytemuck::Pod, bytemuck::Zeroable))]
#[cfg_attr(feature = "encase", derive(encase::ShaderType))]
#[cfg_attr(
feature = "rkyv",
derive(rkyv::Archive, rkyv::Deserialize, rkyv::Serialize, CheckBytes),
Expand Down
1 change: 1 addition & 0 deletions src/shape/cuboid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ use rkyv::{bytecheck, CheckBytes};
/// ```
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "bytemuck", derive(bytemuck::Pod, bytemuck::Zeroable))]
#[cfg_attr(feature = "encase", derive(encase::ShaderType))]
#[cfg_attr(
feature = "rkyv",
derive(rkyv::Archive, rkyv::Deserialize, rkyv::Serialize, CheckBytes),
Expand Down
1 change: 1 addition & 0 deletions src/shape/cylinder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ use rkyv::{bytecheck, CheckBytes};
/// ```
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "bytemuck", derive(bytemuck::Pod, bytemuck::Zeroable))]
#[cfg_attr(feature = "encase", derive(encase::ShaderType))]
#[cfg_attr(
feature = "rkyv",
derive(rkyv::Archive, rkyv::Deserialize, rkyv::Serialize, CheckBytes),
Expand Down
1 change: 1 addition & 0 deletions src/shape/segment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ use rkyv::{bytecheck, CheckBytes};
/// ```
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "bytemuck", derive(bytemuck::Pod, bytemuck::Zeroable))]
#[cfg_attr(feature = "encase", derive(encase::ShaderType))]
#[cfg_attr(
feature = "rkyv",
derive(rkyv::Archive, rkyv::Deserialize, rkyv::Serialize, CheckBytes),
Expand Down
1 change: 1 addition & 0 deletions src/shape/triangle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ use rkyv::{bytecheck, CheckBytes};
/// ```
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "bytemuck", derive(bytemuck::Pod, bytemuck::Zeroable))]
#[cfg_attr(feature = "encase", derive(encase::ShaderType))]
#[cfg_attr(
feature = "rkyv",
derive(rkyv::Archive, rkyv::Deserialize, rkyv::Serialize, CheckBytes),
Expand Down