started on basic library

main
Guus van Meerveld 8 months ago
parent 314fea6fd4
commit 40a7305fa0

1
.gitignore vendored

@ -0,0 +1 @@
/target

7
Cargo.lock generated

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "sshn-lib"
version = "0.1.0"

@ -0,0 +1,3 @@
[workspace]
members = ["sshn-lib"]

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

@ -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);
}
}
Loading…
Cancel
Save