Skip to content

Commit 76542bb

Browse files
committed
Initial cargo-c support
1 parent ea8c871 commit 76542bb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Cargo.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ rust-version = "1.57"
2020
# libraries.
2121
no_log_capture = []
2222
read_buf = ["rustls/read_buf"]
23+
capi = []
2324

2425
[dependencies]
2526
# Keep in sync with RUSTLS_CRATE_VERSION in build.rs
@@ -34,3 +35,16 @@ num_enum = "0.5.10"
3435
[lib]
3536
name = "rustls_ffi"
3637
crate-type = ["lib", "staticlib"]
38+
39+
40+
[package.metadata.capi.header]
41+
name = "rustls"
42+
subdirectory = false
43+
44+
[package.metadata.capi.library]
45+
name = "rustls"
46+
rustflags = "-Cmetadata=rustls-ffi"
47+
48+
[package.metadata.capi.pkg_config]
49+
name = "rustls"
50+
filename = "rustls"

0 commit comments

Comments
 (0)