# 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 = "2024"
name = "rc-crypto"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Crypto library for the RC X509 platform"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/DataDog/libdd-rc"

[features]
dd-source = ["x509-parser/verify"]
default = ["fips"]
fips = [
    "aws-lc-rs/fips",
    "rcgen/aws_lc_rs",
    "rcgen/fips",
    "x509-parser/verify-aws",
]

[lib]
name = "rc_crypto"
path = "src/lib.rs"
bench = false

[[test]]
name = "signature"
path = "tests/signature.rs"

[[bench]]
name = "benches"
path = "benches/benches.rs"
harness = false

[dependencies.aws-lc-rs]
version = "1"
features = ["alloc"]
default-features = false

[dependencies.bytes]
version = "1"

[dependencies.equivalent]
version = "1"

[dependencies.jiff]
version = "0.2.24"

[dependencies.pem]
version = "3"

[dependencies.rcgen]
version = "0.14.7"
features = [
    "pem",
    "x509-parser",
]
default-features = false

[dependencies.smallvec]
version = "1.15.1"

[dependencies.thiserror]
version = "2"

[dependencies.valuable]
version = "0.1"
features = ["derive"]

[dependencies.x509-parser]
version = "0.18"

[dev-dependencies.assert_matches]
version = "1.5.0"

[dev-dependencies.criterion]
version = "0.8"

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

[dev-dependencies.proptest]
version = "1.11"

[dev-dependencies.rc-x509-test-helpers]
version = "0.1.1"

[dev-dependencies.static_assertions]
version = "1.1.0"

[lints.clippy]
clone_on_ref_ptr = "warn"
dbg_macro = "warn"
default_constructed_unit_structs = "allow"
field_reassign_with_default = "allow"
future_not_send = "warn"
todo = "warn"

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "warn"
unused_crate_dependencies = "warn"

[lints.rustdoc]
private_intra_doc_links = "allow"
