# 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 = "2021"
name = "s2-simple-secrets"
version = "1.5.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Simple Secrets — inject secrets into subprocesses without ambient environment exposure"
homepage = "https://github.com/ags-slc/s2"
readme = "README.md"
keywords = [
    "secrets",
    "security",
    "cli",
    "encryption",
]
categories = ["command-line-utilities"]
license = "MIT"
repository = "https://github.com/ags-slc/s2"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/s2-{ target }.tar.gz"

[features]
default = ["provider-ssm"]
provider-ssm = [
    "dep:aws-config",
    "dep:aws-sdk-ssm",
    "dep:tokio",
]
provider-vault = ["dep:reqwest"]

[[bin]]
name = "s2"
path = "src/main.rs"

[[test]]
name = "check_test"
path = "tests/check_test.rs"

[[test]]
name = "encrypted_test"
path = "tests/encrypted_test.rs"

[[test]]
name = "exec_test"
path = "tests/exec_test.rs"

[[test]]
name = "init_set_unset_test"
path = "tests/init_set_unset_test.rs"

[[test]]
name = "list_test"
path = "tests/list_test.rs"

[[test]]
name = "migrate_test"
path = "tests/migrate_test.rs"

[[test]]
name = "redact_test"
path = "tests/redact_test.rs"

[[test]]
name = "scan_test"
path = "tests/scan_test.rs"

[dependencies.age]
version = "0.11"
features = ["armor"]

[dependencies.aho-corasick]
version = "1"

[dependencies.anyhow]
version = "1"

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

[dependencies.aws-sdk-ssm]
version = "1"
optional = true

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.clap_complete]
version = "4"

[dependencies.ignore]
version = "0.4"

[dependencies.nix]
version = "0.29"
features = [
    "process",
    "fs",
    "signal",
]

[dependencies.regex]
version = "1"

[dependencies.reqwest]
version = "0.12"
features = [
    "blocking",
    "json",
]
optional = true

[dependencies.secrecy]
version = "0.10"
features = ["serde"]

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["rt"]
optional = true

[dependencies.toml]
version = "0.8"

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

[dev-dependencies.assert_cmd]
version = "2"

[dev-dependencies.predicates]
version = "3"

[dev-dependencies.tempfile]
version = "3"

[target.'cfg(target_os = "linux")'.dependencies.keyring]
version = "3"
features = ["linux-native"]

[target.'cfg(target_os = "macos")'.dependencies.keyring]
version = "3"
features = ["apple-native"]

[target.'cfg(target_os = "macos")'.dependencies.security-framework]
version = "3"
