aegix-rs 0.1.0

Aegix SDK for Rust
Documentation
//! # Aegix RS
//!
//! A Rust library providing useful functionality.

/// A simple function that returns a greeting message.
///
/// # Examples
///
/// ```
/// use aegix_rs::hello;
///
/// let greeting = hello("world");
/// assert_eq!(greeting, "Hello, world!");
/// ```
pub fn hello(name: &str) -> String {
    format!("Hello, {}!", name)
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn test_hello() {
        assert_eq!(hello("world"), "Hello, world!");
        assert_eq!(hello("Rust"), "Hello, Rust!");
    }
}