Skip to content

Commit b9efd55

Browse files
committed
feat(sys): generate string constants as CStr
Breaking, as it changes the type of all the string constants in the bindings.
1 parent 16da8a4 commit b9efd55

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nginx-sys/build/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ fn generate_binding(nginx_build_dir: PathBuf) {
4646
// Bindings will not compile on Linux without block listing this item
4747
// It is worth investigating why this is
4848
.blocklist_item("IPPORT_RESERVED")
49+
.generate_cstr(true)
4950
// The input header we would like to generate bindings for.
5051
.header("build/wrapper.h")
5152
.clang_args(clang_args)

0 commit comments

Comments
 (0)