]> git.bitcoin.ninja Git - ldk-c-bindings/commitdiff
Ignore async functions as mapping them would be substantial work
authorMatt Corallo <git@bluematt.me>
Sat, 24 Dec 2022 05:01:45 +0000 (05:01 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 24 Dec 2022 22:59:55 +0000 (22:59 +0000)
c-bindings-gen/src/main.rs

index 903ebfc5089f05217e13412af677cb4999ef7e14..f5a7656c0af60aecba2729388b9d503087d89ae8 100644 (file)
@@ -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!(); }