# 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.56.0"
name = "ockam_vault"
version = "0.78.0"
authors = ["Ockam Developers"]
publish = true
description = """
A software-only Ockam Vault implementation.
"""
homepage = "https://github.com/build-trust/ockam"
readme = "README.md"
keywords = [
    "ockam",
    "crypto",
    "cryptography",
    "authentication",
    "no-std",
]
categories = [
    "cryptography",
    "asynchronous",
    "authentication",
    "no-std",
    "algorithms",
]
license = "Apache-2.0"
repository = "https://github.com/build-trust/ockam/tree/develop/implementations/rust/ockam/ockam_vault"
resolver = "2"

[lib]
crate-type = ["rlib"]
path = "src/lib.rs"

[dependencies.aes-gcm]
version = "0.9"
features = ["aes"]
default-features = false

[dependencies.arrayref]
version = "0.3"

[dependencies.cfg-if]
version = "1.0.0"

[dependencies.curve25519-dalek]
version = "3.1"
default-features = false

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

[dependencies.hex]
version = "0.4"
default-features = false

[dependencies.hkdf]
version = "0.12"
default-features = false

[dependencies.minicbor]
version = "0.19.0"
features = ["derive"]

[dependencies.ockam_core]
version = "^0.82.0"
default_features = false

[dependencies.ockam_macros]
version = "^0.30.0"
default-features = false

[dependencies.ockam_node]
version = "^0.85.0"
default_features = false

[dependencies.p256]
version = "0.13.2"
default_features = false

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

[dependencies.rand_pcg]
version = "0.3.1"
optional = true
default-features = false

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

[dependencies.serde_cbor]
version = "0.11.2"
optional = true

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

[dependencies.thiserror]
version = "1.0.38"
optional = true

[dependencies.tracing]
version = "0.1"
features = ["attributes"]
default-features = false

[dependencies.x25519-dalek]
version = "1.0"
default_features = false

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

[dev-dependencies.data-encoding]
version = "2.4.0"
features = ["alloc"]

[dev-dependencies.serde_bare]
version = "0.5.0"

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.tokio]
version = "1.28"
features = ["full"]

[dev-dependencies.trybuild]
version = "1.0"
features = ["diff"]

[features]
alloc = [
    "ockam_node/alloc",
    "aes-gcm/alloc",
    "p256/ecdsa",
    "p256/pem",
]
default = [
    "std",
    "storage",
]
no_std = [
    "ockam_node/no_std",
    "rand_pcg",
    "x25519-dalek/u32_backend",
    "aes-gcm/heapless",
    "aes-gcm/force-soft",
    "aes-gcm/stream",
    "serde/derive",
]
std = [
    "ockam_macros/std",
    "ockam_node/std",
    "aes-gcm/alloc",
    "aes-gcm/std",
    "rand/std",
    "rand/std_rng",
    "tracing/std",
    "x25519-dalek/std",
    "x25519-dalek/u64_backend",
    "alloc",
    "p256/std",
]
storage = [
    "ockam_node/storage",
    "std",
    "serde",
    "serde_cbor",
]
vault_tests = []
