Skip to content

Commit

Permalink
Initial cargo-c support
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-zero committed Dec 10, 2022
1 parent 1c1968a commit 5d3e109
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Cargo.toml
Expand Up @@ -19,6 +19,7 @@ links = "rustls_ffi"
# libraries.
no_log_capture = []
read_buf = ["rustls/read_buf"]
capi = []

[dependencies]
# Keep in sync with RUSTLS_CRATE_VERSION in build.rs
Expand All @@ -33,3 +34,16 @@ num_enum = "0.5.4"
[lib]
name = "rustls_ffi"
crate-type = ["lib", "staticlib"]


[package.metadata.capi.header]
name = "rustls"
subdirectory = false

[package.metadata.capi.library]
name = "rustls"
rustflags = "-Cmetadata=rustls-ffi"

[package.metadata.capi.pkg_config]
name = "rustls"
filename = "rustls"

0 comments on commit 5d3e109

Please sign in to comment.