diff --git a/utshell-0.5/Cargo.toml b/utshell-0.5/Cargo.toml index eb71a8084604725d417176bfbd89f1c6bde35ea0..b4ccb0a5245cca20686efbc61ca6b989ffe48e82 100644 --- a/utshell-0.5/Cargo.toml +++ b/utshell-0.5/Cargo.toml @@ -98,7 +98,8 @@ members=[ "r_variables", "r_arrayfunc", "r_error", - "r_expr", + "r_expr", + "r_input", ] [dependencies] @@ -177,7 +178,7 @@ members=[ r_variables = {path = "./r_variables"} r_error = {path = "./r_error"} r_expr = {path = "./r_expr"} - + r_input = {path = "./r_input"} intl_pluralrules = "7.0.2" tinystr = "=0.7.1" diff --git a/utshell-0.5/r_input/Cargo.toml b/utshell-0.5/r_input/Cargo.toml new file mode 100644 index 0000000000000000000000000000000000000000..3ecf3b51de6a794cadcbc86da0593e1d8bc777d2 --- /dev/null +++ b/utshell-0.5/r_input/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "r_input" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/utshell-0.5/r_input/src/lib.rs b/utshell-0.5/r_input/src/lib.rs new file mode 100644 index 0000000000000000000000000000000000000000..7d12d9af8195bf5e19d10c7b592b359ccd014149 --- /dev/null +++ b/utshell-0.5/r_input/src/lib.rs @@ -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); + } +}