# 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"
rust-version = "1.75.0"
name = "secret-service"
version = "4.0.0"
authors = ["Walther Chen <walther.chen@gmail.com>"]
description = "Library to interface with Secret Service API"
homepage = "https://github.com/hwchen/secret-service-rs.git"
documentation = "https://docs.rs/secret-service"
readme = "README.md"
keywords = [
    "secret-service",
    "password",
    "linux",
    "keychain",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/hwchen/secret-service-rs.git"

[package.metadata.docs.rs]
features = ["rt-tokio-crypto-rust"]

[dependencies.aes]
version = "0.8"
optional = true

[dependencies.cbc]
version = "0.1"
features = [
    "block-padding",
    "alloc",
]
optional = true

[dependencies.futures-util]
version = "0.3"

[dependencies.generic-array]
version = "0.14"

[dependencies.hkdf]
version = "0.12.0"
optional = true

[dependencies.num]
version = "0.4.0"

[dependencies.once_cell]
version = "1"

[dependencies.openssl]
version = "^0.10.40"
optional = true

[dependencies.rand]
version = "0.8.1"

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

[dependencies.sha2]
version = "0.10.0"
optional = true

[dependencies.zbus]
version = "4"
default-features = false

[dev-dependencies.test-with]
version = "0.8"
default-features = false

[dev-dependencies.tokio]
version = "1"
features = [
    "rt",
    "macros",
]

[features]
crypto-openssl = ["dep:openssl"]
crypto-rust = [
    "dep:aes",
    "dep:cbc",
    "dep:sha2",
    "dep:hkdf",
]
rt-async-io-crypto-openssl = [
    "zbus/async-io",
    "crypto-openssl",
]
rt-async-io-crypto-rust = [
    "zbus/async-io",
    "crypto-rust",
]
rt-tokio-crypto-openssl = [
    "zbus/tokio",
    "crypto-openssl",
]
rt-tokio-crypto-rust = [
    "zbus/tokio",
    "crypto-rust",
]
