//! # My Crate //! //! `my_crate` is a collection of utilities to make performing certain calculations more convenient. pub use mybox::hello; /// Adds one to the number given. /// /// # Examples /// ``` /// let arg = 5; /// let answer = my_crate::add_one(arg); /// assert_eq!(6, answer); /// ``` pub fn add_one(x: i32) -> i32 { x + 1 } pub mod mybox { pub fn hello() { println!("Hello, box!"); } } #[cfg(feature = "eth")] pub mod eth { pub fn hello() { println!("Hello, mod!"); } }