diff --git a/presentation/library/Cargo.toml b/presentation/library/Cargo.toml new file mode 100644 index 0000000000000000000000000000000000000000..fc46dddb1dc3237925ea1054e234548100065d3d --- /dev/null +++ b/presentation/library/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "library" +version = "0.1.0" +authors = ["Orestis Malaspinas <orestis.malaspinas@hesge.ch>"] +edition = "2018" + +[dependencies] diff --git a/presentation/library/src/main.rs b/presentation/library/src/main.rs new file mode 100644 index 0000000000000000000000000000000000000000..4431bb13259d7bdd6ec0447c64dc8ea7443ec5d7 --- /dev/null +++ b/presentation/library/src/main.rs @@ -0,0 +1,13 @@ +fn do_something(library: Vec<&str>) { + // Do something with the library +} + +fn main() { + let mut library = Vec::new(); + + library.push("Les fleurs du Mal."); + library.push("Rust Programming."); + + do_something(library); + do_something(library); // redo something +}