cocoon 0.5.0

A simple protected container with strong encryption and format validation.
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.85"
name = "cocoon"
version = "0.5.0"
authors = ["Alexander Fadeev <fadeevab.com@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A simple protected container with strong encryption and format validation."
homepage = "https://github.com/fadeevab/cocoon"
documentation = "https://docs.rs/cocoon"
readme = "README.md"
keywords = [
    "encryption",
    "storage",
    "keystore",
    "parser",
    "container",
]
categories = [
    "cryptography",
    "no-std",
    "parser-implementations",
]
license = "MIT"
repository = "https://github.com/fadeevab/cocoon"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
alloc = ["chacha20poly1305/alloc"]
default = ["std"]
getrandom = ["rand/getrandom"]
std = [
    "alloc",
    "rand/std",
]

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

[dependencies.aes-gcm]
version = "0.10"
features = ["aes"]
default-features = false

[dependencies.chacha20poly1305]
version = "0.10"
default-features = false

[dependencies.hmac]
version = "0.11"

[dependencies.pbkdf2]
version = "0.9"
features = [
    "sha2",
    "hmac",
]
default-features = false

[dependencies.rand]
version = "0.8"
features = ["std_rng"]
default-features = false

[dependencies.sha2]
version = "0.9"
default-features = false

[dependencies.thiserror]
version = "1.0.61"
optional = true

[dependencies.zeroize]
version = "1"
default-features = false

[dev-dependencies.borsh]
version = "0.9"

[profile.dev.package.sha2]
opt-level = 3

[profile.test]
opt-level = 3