diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..3d2e538 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,15 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "cuddle-components" +version = "0.1.0" + +[[package]] +name = "dagger-components" +version = "0.1.0" + +[[package]] +name = "dagger-cuddle-please" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml index a287f57..c1b93a5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,6 @@ [workspace] members = [ - + "crates/cuddle-components", + "crates/dagger-components", + "crates/dagger-cuddle-please" ] \ No newline at end of file diff --git a/crates/cuddle-components/.gitignore b/crates/cuddle-components/.gitignore new file mode 100644 index 0000000..4fffb2f --- /dev/null +++ b/crates/cuddle-components/.gitignore @@ -0,0 +1,2 @@ +/target +/Cargo.lock diff --git a/crates/cuddle-components/Cargo.toml b/crates/cuddle-components/Cargo.toml new file mode 100644 index 0000000..fda371e --- /dev/null +++ b/crates/cuddle-components/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "cuddle-components" +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/crates/cuddle-components/src/lib.rs b/crates/cuddle-components/src/lib.rs new file mode 100644 index 0000000..7d12d9a --- /dev/null +++ b/crates/cuddle-components/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); + } +} diff --git a/crates/dagger-components/Cargo.toml b/crates/dagger-components/Cargo.toml new file mode 100644 index 0000000..68163d5 --- /dev/null +++ b/crates/dagger-components/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "dagger-components" +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/crates/dagger-components/src/lib.rs b/crates/dagger-components/src/lib.rs new file mode 100644 index 0000000..7d12d9a --- /dev/null +++ b/crates/dagger-components/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); + } +} diff --git a/crates/dagger-cuddle-please/Cargo.toml b/crates/dagger-cuddle-please/Cargo.toml new file mode 100644 index 0000000..e45546e --- /dev/null +++ b/crates/dagger-cuddle-please/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "dagger-cuddle-please" +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/crates/dagger-cuddle-please/src/lib.rs b/crates/dagger-cuddle-please/src/lib.rs new file mode 100644 index 0000000..7d12d9a --- /dev/null +++ b/crates/dagger-cuddle-please/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); + } +}