sanstun 0.1.0

A fast, sans-IO implementation of the WireGuard® protocol
Documentation
# 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 = "2024"
rust-version = "1.89"
name = "sanstun"
version = "0.1.0"
authors = ["Firezone, Inc."]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A fast, sans-IO implementation of the WireGuard® protocol"
readme = "README.md"
license = "BSD-3-Clause"
repository = "https://github.com/firezone/sanstun"

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

[[test]]
name = "it"
path = "tests/it/main.rs"

[[bench]]
name = "blake2s"
path = "benches/blake2s.rs"
harness = false

[[bench]]
name = "chacha20poly1305"
path = "benches/chacha20poly1305.rs"
harness = false

[[bench]]
name = "data_path"
path = "benches/data_path.rs"
harness = false

[[bench]]
name = "handshake"
path = "benches/handshake.rs"
harness = false

[[bench]]
name = "x25519_public_key"
path = "benches/x25519_public_key.rs"
harness = false

[[bench]]
name = "x25519_shared_key"
path = "benches/x25519_shared_key.rs"
harness = false

[dependencies.blake2]
version = "0.11.0"

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

[dependencies.hmac]
version = "0.13"

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

[dependencies.ring]
version = "0.17"

[dependencies.subtle]
version = "2.6.1"

[dependencies.tracing]
version = "0.1.44"

[dependencies.x25519-dalek]
version = "3.0.0"
features = [
    "reusable_secrets",
    "static_secrets",
]

[dependencies.zeroize]
version = "1.5.6"

[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]

[dev-dependencies.etherparse]
version = "0.21"

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

[dev-dependencies.x25519-dalek]
version = "3.0.0"
features = ["getrandom"]

[profile.bench]
lto = true
codegen-units = 1

[profile.release]
lto = true
codegen-units = 1