]> git.bitcoin.ninja Git - ldk-c-bindings/commitdiff
Add missing C++ header for LDK::Str
authorMatt Corallo <git@bluematt.me>
Thu, 23 Sep 2021 02:59:04 +0000 (02:59 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 23 Sep 2021 20:02:54 +0000 (20:02 +0000)
c-bindings-gen/src/main.rs

index 46ae0e75fc5580262901f91af19f68b16dfe728d..f56f30ff34e04c2d360822b1d2aa670d4e0b083a 100644 (file)
@@ -1904,6 +1904,9 @@ fn main() {
        writeln!(header_file, "#endif").unwrap();
        writeln!(cpp_header_file, "#include <string.h>\nnamespace LDK {{").unwrap();
 
+       // Write a few manually-defined types into the C++ header file
+       write_cpp_wrapper(&mut cpp_header_file, "Str", true, None);
+
        // First parse the full crate's ASTs, caching them so that we can hold references to the AST
        // objects in other datastructures:
        let mut lib_src = String::new();