Skip to main content

craftty_ink/
lib.rs

1//! A declarative terminal styling library.
2
3#![forbid(unsafe_code)]
4#![warn(missing_docs)]
5
6/// Returns the crate version.
7pub fn version() -> &'static str {
8    env!("CARGO_PKG_VERSION")
9}
10
11#[cfg(test)]
12mod tests {
13    use super::*;
14
15    #[test]
16    fn version_is_valid() {
17        assert!(!version().is_empty());
18    }
19}