# 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 = "sealwd"
version = "0.2.1"
authors = ["Thomas Zuyev"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Secure password and token management library for Rust, featuring hashing, encryption, and random generation."
documentation = "https://docs.rs/sealwd"
readme = "README.md"
keywords = [
    "secure",
    "secret",
    "password",
    "token",
    "auth",
]
categories = [
    "cryptography",
    "security",
]
license = "Apache-2.0"
repository = "https://codeberg.org/bolderaysky/sealwd"

[features]
default = [
    "encryption",
    "sqlx",
    "sqlx_postgres",
]
encryption = [
    "aes-gcm-siv",
    "chacha20poly1305",
    "aead",
]
serde = [
    "dep:serde",
    "serde-big-array",
]
sqlx = ["dep:sqlx"]
sqlx_postgres = ["sqlx?/postgres"]

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

[dependencies.aead]
version = "0.5.2"
optional = true

[dependencies.aes-gcm-siv]
version = "0.11.1"
optional = true

[dependencies.argon2]
version = "0.5.3"
features = ["std"]

[dependencies.base64]
version = "0.22.1"

[dependencies.blake3]
version = "1.8.3"

[dependencies.chacha20poly1305]
version = "0.10.1"
optional = true

[dependencies.rand]
version = "0.9.2"
features = ["os_rng"]

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

[dependencies.serde-big-array]
version = "0.5.1"
optional = true

[dependencies.sqlx]
version = "0.8.6"
features = ["derive"]
optional = true

[dependencies.thiserror]
version = "2.0.17"

[dependencies.zeroize]
version = "1.8.2"
features = ["zeroize_derive"]
