[package]
edition = "2024"
rust-version = "1.96"
name = "hiss"
version = "0.4.0"
authors = ["Nicolas Di Prima <nicolas@primetype.co.uk>"]
build = false
exclude = [
"/site",
"/hiss-macros",
"/hiss-interop",
"/.github",
"/scripts",
"/CLAUDE.md",
"/TODO.md",
"/deny.toml",
"/.gitignore",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Static, type-level Noise Protocol Framework with pluggable hardware-backed crypto."
homepage = "https://primetype.co.uk/hiss/"
documentation = "https://docs.rs/hiss"
readme = "README.md"
keywords = [
"noise",
"handshake",
"secure-enclave",
"x25519",
"keychain",
]
categories = [
"cryptography",
"network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/primetype/hiss"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
default-target = "x86_64-unknown-linux-gnu"
targets = ["aarch64-apple-darwin"]
[features]
default = ["x25519-cryptoxide"]
x25519-cryptoxide = ["cryptoxide/x25519"]
[lib]
name = "hiss"
path = "src/lib.rs"
[[example]]
name = "quickstart"
path = "examples/quickstart.rs"
[[example]]
name = "tcp_ikpsk1_ceremony"
path = "examples/tcp_ikpsk1_ceremony.rs"
[[example]]
name = "tcp_xx_channel"
path = "examples/tcp_xx_channel.rs"
[[test]]
name = "macro_ui"
path = "tests/macro_ui.rs"
[[test]]
name = "noise_cacophony"
path = "tests/noise_cacophony.rs"
[[test]]
name = "noise_kat"
path = "tests/noise_kat.rs"
[[test]]
name = "noise_macro"
path = "tests/noise_macro.rs"
[[test]]
name = "noise_macro_shapes"
path = "tests/noise_macro_shapes.rs"
[[test]]
name = "noise_negative"
path = "tests/noise_negative.rs"
[[test]]
name = "primitive_diag"
path = "tests/primitive_diag.rs"
[[test]]
name = "scripted_rng_smoke"
path = "tests/scripted_rng_smoke.rs"
[[test]]
name = "x448_handshake"
path = "tests/x448_handshake.rs"
[[bench]]
name = "noise"
path = "benches/noise.rs"
harness = false
[dependencies.cryptoxide]
version = ">=0.6.3, <0.7"
features = [
"aes-gcm",
"chacha",
"poly1305",
"blake2",
"sha2",
"hmac",
"ed25519",
]
default-features = false
[dependencies.eccoxide]
version = ">=0.4.3, <0.5"
features = [
"p256r1",
"table",
"x25519",
"x448",
]
default-features = false
[dependencies.hex]
version = "0.4"
[dependencies.hiss-macros]
version = "0.3.2"
[dependencies.packtool]
version = "0.6"
[dependencies.rand_core]
version = "0.10"
[dependencies.thiserror]
version = "2"
[dev-dependencies.base64]
version = "0.23"
[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]
[dev-dependencies.proptest]
version = "1.6"
[dev-dependencies.rand]
version = "0.10"
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tokio]
version = "1.50"
features = [
"macros",
"rt",
"rt-multi-thread",
"net",
"signal",
"time",
"sync",
"io-util",
"fs",
]
[dev-dependencies.trybuild]
version = "1.0"
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.core-foundation]
version = "0.10"
features = []
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.security-framework]
version = "3.5"
features = ["OSX_10_15"]
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.security-framework-sys]
version = "2.15"