diff --git a/backyard/Cargo.lock b/backyard/Cargo.lock new file mode 100644 index 0000000..4773c20 --- /dev/null +++ b/backyard/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "backyard" +version = "0.1.0" diff --git a/backyard/Cargo.toml b/backyard/Cargo.toml new file mode 100644 index 0000000..6e904ab --- /dev/null +++ b/backyard/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "backyard" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/backyard/src/garden.rs b/backyard/src/garden.rs new file mode 100644 index 0000000..6c7f9b1 --- /dev/null +++ b/backyard/src/garden.rs @@ -0,0 +1 @@ +pub mod vegetables; diff --git a/backyard/src/garden/vegetables.rs b/backyard/src/garden/vegetables.rs new file mode 100644 index 0000000..b00f785 --- /dev/null +++ b/backyard/src/garden/vegetables.rs @@ -0,0 +1,2 @@ +#[derive(Debug)] +pub struct Asparagus {} diff --git a/backyard/src/main.rs b/backyard/src/main.rs new file mode 100644 index 0000000..0d9a0ca --- /dev/null +++ b/backyard/src/main.rs @@ -0,0 +1,8 @@ +use crate::garden::vegetables::Asparagus; + +pub mod garden; + +fn main() { + let plant = Asparagus {}; + println!("I'm growing {plant:?}!"); +}