Skip to content

Conversation

@cpu
Copy link
Member

@cpu cpu commented Mar 28, 2024

cpu added 2 commits March 28, 2024 15:21
Presently we pre-generate the rustls.h header file using `cbindgen`,
commit the result to `src/rustls.h`, and check that the generated result
matches the checked-in result in CI.

The new experimental cargo-c build regenerates its own header file using
`cbindgen` by default unless told to do otherwise. We'd prefer it didn't
do this because we're using a `cbindgen` feature that requires nightly
rust.

This commit updates the `Cargo.toml` capi metadata to tell cargo-c to
skip generation of its own header file. We then configure the
pre-generated checked-in header file as an asset to be copied into the
install include directory.

This better matches how the `Makefile` build allowed building the static
lib without needing nightly rust or `cbindgen`.
@cpu cpu self-assigned this Mar 28, 2024
@cpu cpu requested review from ctz and jsha March 28, 2024 19:28
@cpu cpu merged commit b7b3162 into rustls:rel-0.12 Mar 29, 2024
@cpu cpu deleted the cpu-0.12.2-prep branch March 29, 2024 13:31
@cpu
Copy link
Member Author

cpu commented Mar 29, 2024

  • Created v0.12.2 tag.
  • Published rustls-ffi v0.12.2 at registry crates-io.
  • Created 0.12.2 GitHub release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants