Add locally defined crates as "dependencies" without `extern crate`
[ldk-c-bindings] / c-bindings-gen / src / types.rs
index 18accad08bb60d76a3f3dbc4c42ff1dba6e8b153..c104fb35ff47c86f5857ce3c787877294bc97eb6 100644 (file)
@@ -701,6 +701,7 @@ impl FullLibraryAST {
                                                        let modname = if module != "" {
                                                                module.clone() + "::" + &modident
                                                        } else {
+                                                               self.dependencies.insert(m.ident);
                                                                modident.clone()
                                                        };
                                                        self.load_module(modname, m.attrs, m.content.unwrap().1);