Skip to content

Commit

Permalink
#5 add example crate feature to remove example code
Browse files Browse the repository at this point in the history
  • Loading branch information
HusseinAbdelhamid committed Oct 1, 2024
1 parent 0b95c28 commit ff9450d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []


7 changes: 3 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit ff9450d

Please sign in to comment.