# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "boring2"
version = "4.11.1"
authors = [
    "Steven Fackler <sfackler@gmail.com>",
    "Ivan Nikulin <ifaaan@gmail.com>",
]
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "BoringSSL bindings"
documentation = "https://docs.rs/boring2"
readme = "README.md"
keywords = [
    "crypto",
    "tls",
    "ssl",
    "dtls",
]
categories = [
    "cryptography",
    "api-bindings",
]
license = "Apache-2.0"
repository = "https://github.com/cloudflare/boring"

[package.metadata.docs.rs]
features = [
    "rpk",
    "pq-experimental",
    "underscore-wildcards",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[lib]
name = "boring2"
path = "src/lib.rs"

[[example]]
name = "fips_enabled"
path = "examples/fips_enabled.rs"

[[example]]
name = "mk_certs"
path = "examples/mk_certs.rs"

[dependencies.bitflags]
version = "2.4"

[dependencies.boring-sys]
version = "4.11.0"
package = "boring-sys2"

[dependencies.foreign-types]
version = "0.5"

[dependencies.libc]
version = "0.2"

[dependencies.once_cell]
version = "1.0"

[dependencies.openssl-macros]
version = "0.1.1"

[dev-dependencies.hex]
version = "0.4"

[dev-dependencies.rusty-hook]
version = "^0.11"

[features]
fips = [
    "fips-compat",
    "boring-sys/fips",
]
fips-compat = []
fips-link-precompiled = ["boring-sys/fips-link-precompiled"]
kx-client-nist-required = ["kx-safe-default"]
kx-client-pq-preferred = [
    "kx-safe-default",
    "kx-client-pq-supported",
]
kx-client-pq-supported = ["kx-safe-default"]
kx-safe-default = []
pq-experimental = ["boring-sys/pq-experimental"]
rpk = ["boring-sys/rpk"]
underscore-wildcards = ["boring-sys/underscore-wildcards"]
