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 Oct 17, 2023
1 parent 0a6c7d9 commit d291780
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.61"
# libraries.
no_log_capture = []
read_buf = ["rustls/read_buf"]
capi = []

[dependencies]
# Keep in sync with RUSTLS_CRATE_VERSION in build.rs
Expand All @@ -36,3 +37,15 @@ crate-type = ["lib", "staticlib"]

[dev-dependencies]
regex = "1.9.6"

[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 d291780

Please sign in to comment.