diff --git a/src/lib.rs b/src/lib.rs index ceaccdc..89a38b4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -215,9 +215,13 @@ //! arguments like so: //! //! ``` -//! use amethyst_core::Transform; -//! use specs_physics::systems::SyncBodiesToPhysicsSystem; -//! SyncBodiesToPhysicsSystem::::default(); +//! // This code will only compile if the amethyst feature is enabled +//! #[cfg(amethyst)] +//! { +//! use amethyst_core::Transform; +//! use specs_physics::systems::SyncBodiesToPhysicsSystem; +//! SyncBodiesToPhysicsSystem::::default(); +//! } //! ``` //! //! Alternatively to building your own `Dispatcher`, you can always fall back on