nrc1

Crates.ionrc1
lib.rsnrc1
version1.0.0
created_at2025-10-21 18:19:37.090085+00
updated_at2025-10-21 18:19:37.090085+00
descriptionFirst simple crate made by student
homepage
repositoryhttps://github.com/rpertsov/nrc1
max_upload_size
id1894235
size7,423,450
(rpertsov)

documentation

README

nrc1

First simple crate made by student.
Contains a library with basic functions: add, max, and an example of usage in a binary file.


How to launch

cargo run

You can also pass two numbers as arguments:

cargo run -- 2 3

Usage Example

use nrc1::{add, max};

fn main() {
    println!("2 + 3 = {}", add(2, 3));
    println!("max(5, 10) = {}", max(5, 10));
}

Testing

cargo test

License

MIT OR Apache-2.0

Commit count: 0

cargo fmt