projects
/
ldk-c-bindings
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09bc0bf
)
Ignore async functions as mapping them would be substantial work
author
Matt Corallo
<git@bluematt.me>
Sat, 24 Dec 2022 05:01:45 +0000
(
05:01
+0000)
committer
Matt Corallo
<git@bluematt.me>
Sat, 24 Dec 2022 22:59:55 +0000
(22:59 +0000)
c-bindings-gen/src/main.rs
patch
|
blob
|
history
diff --git
a/c-bindings-gen/src/main.rs
b/c-bindings-gen/src/main.rs
index 903ebfc5089f05217e13412af677cb4999ef7e14..f5a7656c0af60aecba2729388b9d503087d89ae8 100644
(file)
--- a/
c-bindings-gen/src/main.rs
+++ b/
c-bindings-gen/src/main.rs
@@
-1360,6
+1360,7
@@
fn writeln_impl<W: std::io::Write>(w: &mut W, w_uses: &mut HashSet<String, NonRa
ExportStatus::NoExport|ExportStatus::TestOnly => continue,
ExportStatus::NotImplementable => panic!("(C-not implementable) must only appear on traits"),
}
+ if m.sig.asyncness.is_some() { continue; }
let mut meth_gen_types = gen_types.push_ctx();
assert!(meth_gen_types.learn_generics(&m.sig.generics, types));
if m.defaultness.is_some() { unimplemented!(); }