[package] name = "tokio-boring" version = { workspace = true } authors = ["Alex Crichton ", "Ivan Nikulin "] license = "MIT OR Apache-2.0" edition = { workspace = true } repository = { workspace = true } homepage = "https://github.com/cloudflare/boring" documentation = "https://docs.rs/tokio-boring" description = """ An implementation of SSL streams for Tokio backed by BoringSSL """ [package.metadata.docs.rs] features = ["rpk", "pq-experimental"] rustdoc-args = ["--cfg", "docsrs"] [features] # Use a FIPS-validated version of boringssl. fips = ["boring/fips", "boring-sys/fips"] # Use a FIPS build of BoringSSL, but don't set "fips-compat". # # As of boringSSL commit a430310d6563c0734ddafca7731570dfb683dc19, we no longer # need to make exceptions for the types of BufLen, ProtosLen, and ValueLen, # which means the "fips-compat" feature is no longer needed. # # TODO(cjpatton) Delete this feature and modify "fips" so that it doesn't imply # "fips-compat". fips-no-compat = ["boring/fips-no-compat"] # Link with precompiled FIPS-validated `bcm.o` module. fips-link-precompiled = ["boring/fips-link-precompiled", "boring-sys/fips-link-precompiled"] # Enables experimental post-quantum crypto (https://blog.cloudflare.com/post-quantum-for-all/) pq-experimental = ["boring/pq-experimental"] # Enables Raw public key API (https://datatracker.ietf.org/doc/html/rfc7250) rpk = ["boring/rpk"] [dependencies] boring = { workspace = true } boring-sys = { workspace = true } tokio = { workspace = true } [dev-dependencies] futures = { workspace = true } tokio = { workspace = true, features = [ "full" ] } anyhow = { workspace = true }