chiark / gitweb /
W
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 4 Sep 2023 10:48:35 +0000 (11:48 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 4 Sep 2023 10:48:35 +0000 (11:48 +0100)
Cargo.toml
macros/Cargo.toml [new file with mode: 0644]
macros/lib.rs [new file with mode: 0644]

index c68f178b087024fcf09f8e8329e1797c0ce02959..f0f74a9c2d3fe704f955bc2d1fa4945ac95ebfb8 100644 (file)
@@ -6,9 +6,14 @@ edition = "2021"
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
 [dependencies]
-downcast-rs = "1"
-dumpster = "0.1.1"
-futures = "0.3.28"
+foo-macros = { version = "0.1.0", path = "macros" }
+
+[workspace]
+members = "macros"
+
+#downcast-rs = "1"
+#dumpster = "0.1.1"
+#futures = "0.3.28"
 #parking_lot = "0.12.1"
 #tokio = { version = "1", features = ["full"] }
 #serde-value = "0.7"
diff --git a/macros/Cargo.toml b/macros/Cargo.toml
new file mode 100644 (file)
index 0000000..95e750e
--- /dev/null
@@ -0,0 +1,11 @@
+[package]
+
+name = "foo-macros"
+version = "0.1.0"
+edition = "2021"
+
+proc_macro = true
+
+[dependencies]
+syn = "1"
+proc_macro2 = "1"
diff --git a/macros/lib.rs b/macros/lib.rs
new file mode 100644 (file)
index 0000000..32cd5cd
--- /dev/null
@@ -0,0 +1,6 @@
+
+
+
+#[proc_macro]
+fn foo(proc_macro::TokenStream) -> proc_macro::TokenStream {
+}