kitgit

tirbofish/dropbear · diff

3a6dcc2 · Thribhu K

feature: cbindgen works now, everything else is still broken

Unverified

diff --git a/Cargo.toml b/Cargo.toml
index 2a94bc3..cc56cb1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -67,6 +67,7 @@ memory-stats = "1.2"
 typetag = "0.2"
 syn = { version = "2.0", features = ["full"] }
 quote = "1.0"
+proc-macro2 = "1.0"
 egui_ltreeview = { version = "0.6", features = ["doc"] }
 dyn-hash = "1.0"
 semver = { version = "1.0", features = ["serde"] }
diff --git a/cbindgen.toml b/cbindgen.toml
index d028744..fc22b72 100644
--- a/cbindgen.toml
+++ b/cbindgen.toml
@@ -5,9 +5,9 @@ include_guard = "DROPBEAR_H"
 line_length = 100
 tab_width = 4
 
-[export]
-prefix = "dropbear_"
-
 [parse]
 parse_deps = true
-include = ["eucalyptus_core"]
\ No newline at end of file
+include = ["eucalyptus_core"]
+
+[parse.expand]
+crates = ["eucalyptus_core", "dropbear_macro"]
\ No newline at end of file
diff --git a/crates/dropbear-macro/Cargo.toml b/crates/dropbear-macro/Cargo.toml
index a4c06a3..cc82086 100644
--- a/crates/dropbear-macro/Cargo.toml
+++ b/crates/dropbear-macro/Cargo.toml
@@ -12,3 +12,4 @@ proc-macro = true
 [dependencies]
 syn.workspace = true
 quote.workspace = true
+proc-macro2.workspace = true
diff --git a/crates/dropbear-macro/src/lib.rs b/crates/dropbear-macro/src/lib.rs
index eeae874..fba3a17 100644
--- a/crates/dropbear-macro/src/lib.rs
+++ b/crates/dropbear-macro/src/lib.rs
@@ -1,6 +1,12 @@
 use proc_macro::TokenStream;
 use quote::quote;
-use syn::{DeriveInput, parse_macro_input, ItemMod, Item, Type, parse_quote, ItemFn, FnArg, ReturnType, PathArguments, GenericArgument};
+use syn::{

Large diffs are not rendered by default. Showing the first 50 of 40428 lines. Show full diff