diff --git a/Makefile b/Makefile index 20599d11..0f708639 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,7 @@ target: mkdir -p $@ src/rustls.h: src/*.rs cbindgen.toml - cbindgen --lang C > $@ + cbindgen > $@ target/$(PROFILE)/librustls_ffi.a: src/*.rs Cargo.toml RUSTFLAGS="-C metadata=rustls-ffi" ${CARGO} build $(CARGOFLAGS) diff --git a/cbindgen.toml b/cbindgen.toml index 1a1b977a..335688d7 100644 --- a/cbindgen.toml +++ b/cbindgen.toml @@ -1,4 +1,5 @@ include_guard = "RUSTLS_H" +language = "C" usize_is_size_t = true