# 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"
rust-version = "1.88"
name = "rite-stdlib"
version = "0.4.1"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Built-in action library for Rite ceremonies (internal to the `rite` CLI; no stable API)"
homepage = "https://ritely.io"
readme = "README.md"
keywords = []
categories = []
license = "GPL-3.0-only"
repository = "https://github.com/rite-ly/rite"
resolver = "2"

[features]
attestation = []
crypto = []
default = [
    "verification",
    "attestation",
    "crypto",
    "pki",
    "openssl",
]
full = [
    "verification",
    "attestation",
    "crypto",
    "pki",
    "openssl",
]
openssl = ["dep:rite-openssl"]
openssl-vendored = [
    "openssl",
    "rite-openssl/vendored",
]
piv = [
    "dep:rite-piv",
    "dep:secrecy",
]
pki = [
    "dep:x509-cert",
    "dep:der",
    "dep:sha1",
    "dep:rsa",
    "dep:p256",
]
verification = [
    "dep:subtle",
    "dep:sysinfo",
]
yubikey = [
    "dep:rite-yubikey",
    "piv",
]

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

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

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

[dependencies.chrono]
version = "0.4.44"
features = [
    "clock",
    "std",
    "serde",
]
default-features = false

[dependencies.der]
version = "0.7.10"
optional = true

[dependencies.p256]
version = "0.14.0"
features = [
    "ecdsa",
    "pkcs8",
]
optional = true

[dependencies.rite-model]
version = "0.4"

[dependencies.rite-openssl]
version = "0.4"
optional = true

[dependencies.rite-piv]
version = "0.4"
optional = true

[dependencies.rite-runtime]
version = "0.4"

[dependencies.rite-sdk]
version = "0.4"

[dependencies.rite-yubikey]
version = "0.4"
optional = true

[dependencies.rsa]
version = "0.9.10"
optional = true

[dependencies.secrecy]
version = "0.10.3"
optional = true

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.149"
features = ["raw_value"]

[dependencies.sha1]
version = "0.11.0"
optional = true

[dependencies.sha2]
version = "0.11.0"

[dependencies.subtle]
version = "2.6.1"
optional = true

[dependencies.sysinfo]
version = "0.39.0"
features = [
    "system",
    "disk",
]
optional = true
default-features = false

[dependencies.x509-cert]
version = "0.2.5"
optional = true

[dev-dependencies.openssl]
version = "0.10.78"

[dev-dependencies.rite-openssl]
version = "0.4"

[lints.clippy]
arithmetic_side_effects = "warn"
dbg_macro = "deny"
expect_used = "warn"
indexing_slicing = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
print_stdout = "warn"
self_named_module_files = "deny"
todo = "deny"
unimplemented = "deny"
unwrap_used = "warn"
wildcard_imports = "deny"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "forbid"
