1
Fork 0
mirror of https://github.com/Steffo99/micronfig.git synced 2024-11-27 18:34:23 +00:00

Initialize Rust crate

This commit is contained in:
Steffo 2023-04-27 13:23:18 +00:00 committed by GitHub
parent 8fead28080
commit 4cb8c266da
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 0 deletions

8
Cargo.toml Normal file
View file

@ -0,0 +1,8 @@
[package]
name = "micronfig"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

14
src/lib.rs Normal file
View file

@ -0,0 +1,14 @@
pub fn add(left: usize, right: usize) -> usize {
left + right
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}