Skip to content

Commit ea8c871

Browse files
committed
Move the language configuration to cbindgen.toml
1 parent 02d80cc commit ea8c871

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ target:
3939
mkdir -p $@
4040

4141
src/rustls.h: src/*.rs cbindgen.toml
42-
cbindgen --lang C > $@
42+
cbindgen > $@
4343

4444
target/$(PROFILE)/librustls_ffi.a: src/*.rs Cargo.toml
4545
RUSTFLAGS="-C metadata=rustls-ffi" ${CARGO} build $(CARGOFLAGS)

cbindgen.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
include_guard = "RUSTLS_H"
2+
language = "C"
23

34
usize_is_size_t = true
45

0 commit comments

Comments
 (0)