WIP: creation-sys-crate-ssv #69
6
crates/services-sesam-vitale-sys/Cargo.toml
Normal file
6
crates/services-sesam-vitale-sys/Cargo.toml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[package]
|
||||||
|
name = "services-sesam-vitale-sys"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
[dependencies]
|
0
crates/services-sesam-vitale-sys/build.rs
Normal file
0
crates/services-sesam-vitale-sys/build.rs
Normal file
14
crates/services-sesam-vitale-sys/src/lib.rs
Normal file
14
crates/services-sesam-vitale-sys/src/lib.rs
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user