1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/// Useful functionality for command-line interfaces.
///
/// Features CLI prompts, colored & stacked outputs.
#[cfg(feature = "cli")]
pub mod cli;

/// Common error type for the Rood library as well as for most Purposed projects.
#[cfg(feature = "errors")]
pub mod error;

#[cfg(feature = "errors")]
pub use error::{Cause, CausedResult, Error};

/// Regroupment of system utilities, filesystem stuff, and portable wrappers around platform-specific
/// functionality.
#[cfg(feature = "sys")]
pub mod sys;

#[cfg(test)]
mod tests {
    #[test]
    fn it_works() {
        assert_eq!(2 + 2, 4);
    }
}