Skip to main content

box3d_rust/
lib.rs

1//! Pure Rust port of [Box3D](https://github.com/erincatto/box3d), Erin Catto's 3D physics
2//! engine for games.
3//!
4//! The port targets exact behavioral match with the C source pinned in the
5//! `box3d-cpp-reference/` submodule: same algorithms, same `f32` arithmetic, same edge
6//! cases, including Box3D's hand-rolled cross-platform-deterministic trigonometry.
7//!
8//! Porting has just begun — modules land whole, in dependency order, together with their
9//! portion of the upstream C test suite. See the repository README for live status.
10
11/// Crate version, exposed so demos and downstream tools can report the exact port build.
12pub const VERSION: &str = env!("CARGO_PKG_VERSION");
13
14#[cfg(test)]
15mod tests {
16    use super::*;
17
18    #[test]
19    fn version_matches_cargo_manifest() {
20        assert_eq!(VERSION, env!("CARGO_PKG_VERSION"));
21        assert!(!VERSION.is_empty());
22    }
23}