diff options
| author | hybrid <hybrid@hybridlabs.cc> | 2026-11-11 17:16:48 +0300 |
|---|---|---|
| committer | hybrid <hybrid@hybridlabs.cc> | 2026-11-11 17:16:48 +0300 |
| commit | 9dea46b5e66eb54746b251d8950b2367c49be23d (patch) | |
| tree | fdebf3880f2f25a1351a220e771da84ea32f07e2 /src/pancakes | |
| parent | 59e457f7d6267ac2591837085b388d7c15ed2004 (diff) | |
| download | rust-book-main.tar.gz rust-book-main.tar.bz2 rust-book-main.zip | |
add: supertraits, ext_traits, pancakes, hello, hello_macromain
Diffstat (limited to '')
| -rw-r--r-- | src/pancakes/Cargo.toml | 8 | ||||
| -rw-r--r-- | src/pancakes/src/main.rs | 9 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/pancakes/Cargo.toml b/src/pancakes/Cargo.toml new file mode 100644 index 0000000..e4edd51 --- /dev/null +++ b/src/pancakes/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "pancakes" +version = "0.1.0" +edition = "2024" + +[dependencies] +hello_macro = { path = "../../libs/hello_macro" } +hello_macro_derive = { path = "../../libs/hello_macro/hello_macro_derive" }
\ No newline at end of file diff --git a/src/pancakes/src/main.rs b/src/pancakes/src/main.rs new file mode 100644 index 0000000..468c30a --- /dev/null +++ b/src/pancakes/src/main.rs @@ -0,0 +1,9 @@ +use hello_macro::HelloMacro; +use hello_macro_derive::HelloMacro; + +#[derive(HelloMacro)] +struct Pancakes; + +fn main() { + Pancakes::hello_macro(); +} |
