Skip to content

Commit

Permalink
Move the language configuration to cbindgen.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-zero committed Mar 10, 2023
1 parent 02d80cc commit ea8c871
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,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)
Expand Down
1 change: 1 addition & 0 deletions cbindgen.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include_guard = "RUSTLS_H"
language = "C"

usize_is_size_t = true

Expand Down

0 comments on commit ea8c871

Please sign in to comment.