# 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 = "2018"
name = "snow"
version = "0.9.1"
authors = [
    "Jake McGinty <me@jake.su>",
    "trevp",
]
description = "A pure-rust implementation of the Noise Protocol Framework"
homepage = "https://snow.rs"
documentation = "https://snow.rs/doc/snow"
readme = "README.md"
keywords = [
    "noise",
    "protocol",
    "crypto",
]
categories = ["cryptography"]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/mcginty/snow"

[package.metadata.docs.rs]
features = [
    "ring-resolver",
    "libsodium-resolver",
]
all-features = false
no-default-features = false

[[bench]]
name = "benches"
harness = false

[dependencies.aes-gcm]
version = "0.9"
optional = true

[dependencies.blake2]
version = "0.10"
optional = true

[dependencies.byteorder]
version = "1.4"
optional = true

[dependencies.chacha20poly1305]
version = "0.9"
optional = true

[dependencies.curve25519-dalek]
version = "=4.0.0-rc.0"
optional = true

[dependencies.pqcrypto-kyber]
version = "0.7"
optional = true

[dependencies.pqcrypto-traits]
version = "0.3"
optional = true

[dependencies.rand_core]
version = "0.6"
features = [
    "std",
    "getrandom",
]

[dependencies.ring]
version = "^0.16.2"
features = ["std"]
optional = true

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

[dependencies.sodiumoxide]
version = "0.2"
optional = true

[dependencies.subtle]
version = "2.4"

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

[dev-dependencies.criterion]
version = "0.3"

[dev-dependencies.hex]
version = "0.4"

[dev-dependencies.lazy_static]
version = "1.4"

[dev-dependencies.rand]
version = "0.8"

[dev-dependencies.serde]
version = "1.0"

[dev-dependencies.serde_derive]
version = "1.0"

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

[dev-dependencies.x25519-dalek]
version = "1"

[build-dependencies.rustc_version]
version = "0.4"

[features]
default = ["default-resolver"]
default-resolver = [
    "aes-gcm",
    "chacha20poly1305",
    "blake2",
    "sha2",
    "curve25519-dalek",
]
hfs = []
libsodium-accelerated = [
    "libsodium-resolver",
    "default-resolver",
]
libsodium-resolver = [
    "sodiumoxide",
    "byteorder",
]
nightly = [
    "blake2/simd_opt",
    "subtle/nightly",
]
pqclean_kyber1024 = [
    "pqcrypto-kyber",
    "pqcrypto-traits",
    "hfs",
    "default-resolver",
]
ring-accelerated = [
    "ring-resolver",
    "default-resolver",
]
ring-resolver = ["ring"]
risky-raw-split = []
vector-tests = []
xchachapoly = [
    "chacha20poly1305",
    "default-resolver",
]

[badges.travis-ci]
branch = "master"
repository = "mcginty/snow"
