Cargo Features

btls-sys has no features set by default.

[dependencies]
btls-sys = { version = "0.5.4", features = ["fips", "mlkem", "underscore-wildcards", "prefix-symbols"] }
fips

Compile boringssl using the FIPS build flag if building boringssl from scratch.

See https://boringssl.googlesource.com/boringssl/+/master/crypto/fipsmodule/FIPS.md for instructions and more details on the boringssl FIPS flag.

mlkem

Require mlkem.h

underscore-wildcards

Applies a patch (patches/underscore-wildcards.patch) to enable ffi::X509_CHECK_FLAG_UNDERSCORE_WILDCARDS. This feature is necessary in order to compile the bindings for the default branch of boringSSL (deps/boringssl). Alternatively, a version of boringSSL that implements the same feature set can be provided by setting BORING_BSSL{,_FIPS}_SOURCE_PATH.

prefix-symbols

Add a prefix to all symbols in libcrypto and libssl to prevent conflicts with OpenSSL versions that might be linked in the same process.