Cargo.toml
⎇
Raw
1[package]
2name = "otproto"
3description = "OTP/1 wire protocol for opentracker: codec + AEAD. No I/O, no async."
4version.workspace = true
5edition.workspace = true
6rust-version.workspace = true
7license.workspace = true
8repository.workspace = true
9
10[dependencies]
11chacha20poly1305 = { version = "0.10", default-features = false, features = ["alloc"] }
12hkdf = "0.12"
13sha2 = { version = "0.10", default-features = false }
14thiserror.workspace = true
15serde = { workspace = true, optional = true }
16
17[dev-dependencies]
18proptest = "1"
19serde_json.workspace = true
20hex.workspace = true
21serde = { workspace = true }
22
23[features]
24default = []
25# Serde impls for the wire structs. Used by the vector generator and by
26# otserver when it hands protocol structs to the JSON API.
27serde = ["dep:serde"]
28
29# `cargo run -p otproto --features serde --example gen_vectors`
30# Written as an example rather than a bin so it can use serde_json/hex from
31# dev-dependencies without dragging them into the library's dependency tree.
32[[example]]
33name = "gen_vectors"
34required-features = ["serde"]
35