From 62e2f82d1421295555634ad67d012a7b6b29c84e Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 4 Sep 2023 11:48:35 +0100 Subject: [PATCH] W --- Cargo.toml | 11 ++++++++--- macros/Cargo.toml | 11 +++++++++++ macros/lib.rs | 6 ++++++ 3 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 macros/Cargo.toml create mode 100644 macros/lib.rs diff --git a/Cargo.toml b/Cargo.toml index c68f178..f0f74a9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 index 0000000..95e750e --- /dev/null +++ b/macros/Cargo.toml @@ -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 index 0000000..32cd5cd --- /dev/null +++ b/macros/lib.rs @@ -0,0 +1,6 @@ + + + +#[proc_macro] +fn foo(proc_macro::TokenStream) -> proc_macro::TokenStream { +} -- 2.30.2