From c3be96c6d4e2f7215120ea2819da16696f6e5758 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Thu, 23 Sep 2021 02:59:04 +0000 Subject: [PATCH] Add missing C++ header for LDK::Str --- c-bindings-gen/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/c-bindings-gen/src/main.rs b/c-bindings-gen/src/main.rs index 46ae0e7..f56f30f 100644 --- a/c-bindings-gen/src/main.rs +++ b/c-bindings-gen/src/main.rs @@ -1904,6 +1904,9 @@ fn main() { writeln!(header_file, "#endif").unwrap(); writeln!(cpp_header_file, "#include \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(); -- 2.39.5