# 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 = "basil-keystore-backend"
version = "0.7.1"
authors = ["info@openbasil.org"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Optional Basil key-store backends over db-keystore and 1Password."
homepage = "https://github.com/openbasil/basil"
documentation = "https://docs.rs/basil-keystore-backend"
readme = "README.md"
keywords = [
    "basil",
    "keystore",
    "keyring",
    "onepassword",
    "secrets",
]
categories = [
    "cryptography",
    "authentication",
]
license = "Apache-2.0"
repository = "https://github.com/openbasil/basil"

[features]
db-keystore = [
    "dep:db-keystore",
    "dep:keyring-core",
]
default = []
onepassword = [
    "dep:serde",
    "dep:serde_json",
    "dep:url",
    "dep:percent-encoding",
]

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

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

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

[dependencies.basil]
version = "0.7.1"

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

[dependencies.db-keystore]
version = "0.4.3"
optional = true

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

[dependencies.keyring-core]
version = "1.0"
optional = true

[dependencies.percent-encoding]
version = "2.3"
optional = true

[dependencies.rand]
version = "0.8"

[dependencies.serde]
version = "1"
features = [
    "alloc",
    "derive",
    "std",
]
optional = true
default-features = false

[dependencies.serde_json]
version = "1"
features = [
    "alloc",
    "arbitrary_precision",
    "std",
]
optional = true
default-features = false

[dependencies.thiserror]
version = "2.0.18"

[dependencies.url]
version = "2.5"
optional = true

[dependencies.zero-secrets]
version = "0.2.0"

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

[lints.clippy.expect_used]
level = "deny"
priority = 0

[lints.clippy.get_unwrap]
level = "deny"
priority = 0

[lints.clippy.indexing_slicing]
level = "deny"
priority = 0

[lints.clippy.missing_errors_doc]
level = "allow"
priority = 0

[lints.clippy.nursery]
level = "deny"
priority = -1

[lints.clippy.panic]
level = "deny"
priority = 0

[lints.clippy.panic_in_result_fn]
level = "deny"
priority = 0

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

[lints.clippy.todo]
level = "deny"
priority = 0

[lints.clippy.unimplemented]
level = "deny"
priority = 0

[lints.clippy.unreachable]
level = "deny"
priority = 0

[lints.clippy.unwrap_used]
level = "deny"
priority = 0

[lints.rust.unsafe_code]
level = "forbid"
priority = 1
