[workspace] resolver = "2" members = [ "mass-props", ] [workspace.package] authors = ["Mo Bitar "] repository = "https://codeberg.org/mo8it/polyhedral_mass_properties" license = "AGPL-3.0" edition = "2021" [package] name = "polyhedral_mass_properties" description = "Calculation of mass properties for triangle meshes" version = "0.2.2" authors.workspace = true repository.workspace = true license.workspace = true edition.workspace = true keywords = ["trimesh", "inertia", "mass"] include = [ "/src/", "/LICENSE.txt", "/README.md", ] [features] # Enable the usage of the standard library. std = [] # Use FMA instructions for better performance. Needs to be compiled with `RUSTFLAGS="-C target-cpu=native"`. fma = ["std"] # Implement `Serialize` and `Deserialize` for `Inertia` and `MassProperties`. serde = ["dep:serde"] # Enable calculating the mass properties for gltf/glb files. gltf = ["std", "dep:gltf"] [dependencies] gltf = { version = "1.4.1", default-features = false, features = ["utils", "import"], optional = true } serde = { version = "1.0.207", features = ["derive"], optional = true } [dev-dependencies] divan = "0.1.14" gltf = { version = "1.4.1", default-features = false, features = ["utils", "import"] } parry3d-f64 = "0.17.0" rayon = "1.10.0" [[bench]] name = "algorithm" harness = false [profile.release] lto = true codegen-units = 1 strip = "debuginfo" panic = "abort" [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"]