diff --git a/Cargo.toml b/Cargo.toml index 85749ad..217f426 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,5 +18,6 @@ bevy = "0.11" bevy_framepace = { version = "0.13", default-features = false } [features] -default = ["debug"] +default = ["debug", "camera"] debug = ["bevy/bevy_gizmos"] +camera = ["bevy/bevy_render"] diff --git a/src/lib.rs b/src/lib.rs index bfb540c..785be0f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -90,7 +90,6 @@ use bevy::{math::DVec3, prelude::*, reflect::TypePath, transform::TransformSyste use propagation::propagate_transforms; use std::marker::PhantomData; -pub mod camera; pub mod grid_cell; pub mod precision; pub mod propagation; @@ -100,6 +99,9 @@ pub use grid_cell::GridCell; #[cfg(feature = "debug")] pub mod debug; +#[cfg(feature = "camera")] +pub mod camera; + use precision::*; /// Add this plugin to your [`App`] for floating origin functionality.