summaryrefslogtreecommitdiffstats
path: root/src/pancakes
diff options
context:
space:
mode:
authorhybrid <hybrid@hybridlabs.cc>2026-11-11 17:16:48 +0300
committerhybrid <hybrid@hybridlabs.cc>2026-11-11 17:16:48 +0300
commit9dea46b5e66eb54746b251d8950b2367c49be23d (patch)
treefdebf3880f2f25a1351a220e771da84ea32f07e2 /src/pancakes
parent59e457f7d6267ac2591837085b388d7c15ed2004 (diff)
downloadrust-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.toml8
-rw-r--r--src/pancakes/src/main.rs9
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();
+}