[package]
edition = "2024"
rust-version = "1.96"
name = "beaconcrypt"
version = "0.5.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cryptographic transport for C2 channels"
readme = "README.md"
license-file = "LICENSE"
repository = "https://github.com/0xd6cb6d73/beaconcrypt"
[package.metadata.maturin]
name = "beaconcrypt"
bindings = "pyo3"
[features]
all = [
"gobinds",
"pybinds",
"cbinds",
]
beacon = ["pqxdh"]
cbinds = [
"beacon",
"server",
"pqxdh",
]
default = [
"beacon",
"server",
"pqxdh",
]
gobinds = ["cbinds"]
pqxdh = []
pybinds = [
"dep:pyo3",
"beacon",
"server",
"pqxdh",
]
server = [
"pqxdh",
"dep:serde",
"dep:serde_json",
]
[lib]
name = "beaconcrypt"
crate-type = [
"cdylib",
"staticlib",
"rlib",
]
path = "src/lib.rs"
[[example]]
name = "rust"
path = "examples/rust/main.rs"
required-features = [
"pqxdh",
"beacon",
"server",
]
[[test]]
name = "beacon"
path = "tests/beacon.rs"
required-features = [
"pqxdh",
"beacon",
"server",
]
[[test]]
name = "construction"
path = "tests/construction.rs"
[[test]]
name = "protocol"
path = "tests/protocol.rs"
required-features = [
"pqxdh",
"beacon",
"server",
]
[[test]]
name = "raw_receive"
path = "tests/raw_receive.rs"
[[test]]
name = "record_opening"
path = "tests/record_opening.rs"
[[test]]
name = "registration_completion"
path = "tests/registration_completion.rs"
[[test]]
name = "registration_response_alias"
path = "tests/registration_response_alias.rs"
[[test]]
name = "rooterberg"
path = "tests/rooterberg.rs"
required-features = ["pqxdh"]
[[test]]
name = "server"
path = "tests/server.rs"
required-features = [
"pqxdh",
"beacon",
"server",
]
[[test]]
name = "wycheproof"
path = "tests/wycheproof.rs"
required-features = ["pqxdh"]
[dependencies.beaconcrypt-core]
version = "0.1.0"
[dependencies.capnp]
version = "0.26"
[dependencies.libsodium-rs]
version = "=0.2.4"
[dependencies.pyo3]
version = "0.29.0"
features = [
"abi3-py311",
"experimental-inspect",
]
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dependencies.serde_json]
version = "1"
optional = true
[dependencies.zeroize]
version = "1.9"
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1"
[build-dependencies.capnpc]
version = "0.26"
[build-dependencies.cbindgen]
version = "0.29"