Ignore async functions as mapping them would be substantial work
[ldk-c-bindings] / 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!(); }