-
Notifications
You must be signed in to change notification settings - Fork 763
Closed
Description
To reproduce,
- checkout https://github.com/rusqlite/rusqlite
- in
libsqlite3-sys
folder, executeupgrade.sh
script
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));
nyurik and pohzipohzi
Metadata
Metadata
Assignees
Labels
No labels