oxabl-cache-crypto 0.4.0

Client-side cryptography for the oxabl-cache remote compile cache: key hierarchy, seal and open, signatures.
Documentation
# 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.99"
name = "oxabl-cache-crypto"
version = "0.4.0"
build = false
exclude = [
    "tests/",
    "examples/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Client-side cryptography for the oxabl-cache remote compile cache: key hierarchy, seal and open, signatures."
readme = "README.md"
keywords = [
    "oxabl",
    "abl",
    "cache",
    "encryption",
]
categories = ["development-tools::build-utils"]
license = "MIT"
repository = "https://github.com/oxabl-project/oxabl-cache"

[features]
default = ["seal"]
portable = [
    "dep:getrandom",
    "dep:p256",
    "dep:rsa",
]
seal = [
    "dep:aws-lc-rs",
    "dep:zstd",
]

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

[dependencies.age]
version = "0.12"
default-features = false

[dependencies.aws-lc-rs]
version = "1"
optional = true

[dependencies.base64]
version = "0.22"

[dependencies.blake3]
version = "1"

[dependencies.ed25519-dalek]
version = "3"
features = ["zeroize"]
default-features = false

[dependencies.getrandom]
version = "0.4"
optional = true

[dependencies.oxabl-cache-format]
version = "0.4.0"

[dependencies.p256]
version = "0.13"
features = [
    "ecdsa",
    "std",
]
optional = true
default-features = false

[dependencies.rsa]
version = "0.9"
features = [
    "std",
    "sha2",
]
optional = true
default-features = false

[dependencies.serde_json]
version = "1"

[dependencies.subtle]
version = "2"

[dependencies.zeroize]
version = "1"
features = ["derive"]

[dependencies.zstd]
version = "0.13"
features = ["zdict_builder"]
optional = true
default-features = false

[dev-dependencies.nix]
version = "0.31"
features = ["resource"]
default-features = false

[lints.clippy]
all = "warn"

[lints.rust]
unsafe_code = "forbid"