# 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 = "syncular-ssp2"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Syncular v2 SSP2 wire codec, implemented from SPEC.md alone (language-neutrality POC)"
readme = false
license = "Apache-2.0"
repository = "https://github.com/syncular/syncular"

[features]
default = []
e2ee = [
    "dep:aes-gcm",
    "dep:x25519-dalek",
    "dep:hkdf",
    "dep:sha2",
    "dep:rand_core",
]

[lib]
name = "ssp2"
path = "src/lib.rs"

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

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

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

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

[dependencies.rand_core]
version = "0.6"
features = ["getrandom"]
optional = true

[dependencies.serde_json]
version = "1"

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

[dependencies.x25519-dalek]
version = "2"
features = ["static_secrets"]
optional = true
