Skip to content

Using generate_cstr(true) breaks output formatΒ #3047

@gwenn

Description

@gwenn

To reproduce,

Without the following patch, generated bindings are correctly formatted.
But not with:

diff --git a/libsqlite3-sys/build.rs b/libsqlite3-sys/build.rs
index f96d656..53778b7 100644
--- a/libsqlite3-sys/build.rs
+++ b/libsqlite3-sys/build.rs
@@ -533,6 +533,7 @@ mod bindings {
         let mut bindings = bindgen::builder()
             .default_macro_constant_type(bindgen::MacroTypeVariation::Signed)
             .disable_nested_struct_naming()
+           .generate_cstr(true)
             .trust_clang_mangling(false)
             .header(header.clone())
             .parse_callbacks(Box::new(SqliteTypeChooser));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions