[package]
edition = "2024"
name = "cryptex"
version = "2.0.0"
authors = ["Michael Lodder <redmike7@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Cryptex uses system keyrings to store and retrieve secrets
or a local file
"""
homepage = "https://github.com/mikelodder7/cryptex"
documentation = "https://docs.rs/cryptex/"
readme = "README.md"
keywords = [
"secrets",
"vault",
"keyring",
]
categories = []
license = "MIT/Apache-2.0"
repository = "https://github.com/mikelodder7/cryptex"
[features]
default = [
"linux-secret-service",
"macos-keychain",
"windows-credentials",
]
file = [
"argon2",
"chacha20poly1305",
"dirs",
"rusqlite",
]
linux-secret-service = [
"secret-service",
"uzers",
]
macos-keychain = [
"security-framework",
"security-framework-sys",
"core-foundation",
"core-foundation-sys",
"uzers",
]
serde = [
"dep:serde",
"postcard",
]
windows-credentials = ["windows"]
[lib]
name = "cryptex"
crate-type = [
"staticlib",
"rlib",
"cdylib",
]
path = "src/lib.rs"
[[bin]]
name = "cryptex"
path = "src/main.rs"
[[test]]
name = "box"
path = "tests/box.rs"
[[test]]
name = "threads"
path = "tests/threads.rs"
[dependencies.argon2]
version = "0.5"
optional = true
[dependencies.chacha20poly1305]
version = "0.10"
optional = true
[dependencies.clap]
version = "4"
[dependencies.colored]
version = "3.0"
[dependencies.dirs]
version = "6.0"
optional = true
[dependencies.hex]
version = "0.4"
[dependencies.postcard]
version = "1"
features = ["use-std"]
optional = true
[dependencies.rpassword]
version = "7"
[dependencies.rusqlite]
version = "0.38"
features = ["bundled-sqlcipher-vendored-openssl"]
optional = true
[dependencies.serde]
version = "1"
optional = true
[dependencies.subtle]
version = "2"
[dependencies.whoami]
version = "2"
[dependencies.zeroize]
version = "1"
features = ["zeroize_derive"]
[target.'cfg(any(target_os = "macos", target_os = "linux"))'.dependencies.uzers]
version = "0.12"
optional = true
[target.'cfg(target_os = "linux")'.dependencies.secret-service]
version = "5"
features = ["rt-tokio-crypto-rust"]
optional = true
[target.'cfg(target_os = "macos")'.dependencies.core-foundation]
version = "0.10"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.core-foundation-sys]
version = "0.8.7"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.security-framework]
version = "3"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.security-framework-sys]
version = "2.12"
optional = true
[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.62"
features = [
"Win32_Foundation",
"Win32_Security_Credentials",
"Win32_Security_Cryptography",
]
optional = true