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 authored and cpu committed Aug 2, 2023
1 parent 5d0b71b commit cd2544a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ rust-version = "1.60"
# 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,15 @@ log = "0.4.17"
[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 cd2544a

Please sign in to comment.