From: Matt Corallo Date: Sat, 24 Dec 2022 05:01:45 +0000 (+0000) Subject: Ignore async functions as mapping them would be substantial work X-Git-Tag: v0.0.113.0^2~8 X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-c-bindings;a=commitdiff_plain;h=e43afef7dd47763f55a18cff4bdbf1fd4ca4e201 Ignore async functions as mapping them would be substantial work --- diff --git a/c-bindings-gen/src/main.rs b/c-bindings-gen/src/main.rs index 903ebfc..f5a7656 100644 --- a/c-bindings-gen/src/main.rs +++ b/c-bindings-gen/src/main.rs @@ -1360,6 +1360,7 @@ fn writeln_impl(w: &mut W, w_uses: &mut HashSet 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!(); }