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 Mar 10, 2023
1 parent ea8c871 commit 76542bb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Cargo.toml
Expand Up @@ -20,6 +20,7 @@ rust-version = "1.57"
# libraries.
no_log_capture = []
read_buf = ["rustls/read_buf"]
capi = []

[dependencies]
# Keep in sync with RUSTLS_CRATE_VERSION in build.rs
Expand All @@ -34,3 +35,16 @@ num_enum = "0.5.10"
[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 76542bb

Please sign in to comment.