diff --git a/Cargo.toml b/Cargo.toml index bd4b1dc..eab96ae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,7 +26,10 @@ serde = { version = "1.0.197", features = ["derive"], default-features = false } mockall = "0.11.0" [features] -default = [] +default = ["example"] +# Mocks for doc examples +example = [] + strict = [] diff --git a/src/lib.rs b/src/lib.rs index 4464753..9314b46 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -83,14 +83,13 @@ extern crate alloc; pub mod can; pub mod config; -pub mod status; - +#[cfg(feature = "example")] +pub mod example; pub mod filter; pub mod message; - -pub mod example; #[cfg(test)] pub(crate) mod mocks; mod registers; +pub mod status; #[cfg(test)] mod tests;