Cargo.toml
| 1 | [package] |
| 2 | name = "otproto" |
| 3 | description = "OTP/1 wire protocol for opentracker: codec + AEAD. No I/O, no async." |
| 4 | version.workspace = true |
| 5 | edition.workspace = true |
| 6 | rust-version.workspace = true |
| 7 | license.workspace = true |
| 8 | repository.workspace = true |
| 9 | |
| 10 | [dependencies] |
| 11 | chacha20poly1305 = { version = "0.10", default-features = false, features = ["alloc"] } |
| 12 | hkdf = "0.12" |
| 13 | sha2 = { version = "0.10", default-features = false } |
| 14 | thiserror.workspace = true |
| 15 | serde = { workspace = true, optional = true } |
| 16 | |
| 17 | [dev-dependencies] |
| 18 | proptest = "1" |
| 19 | serde_json.workspace = true |
| 20 | hex.workspace = true |
| 21 | serde = { workspace = true } |
| 22 | |
| 23 | [features] |
| 24 | default = [] |
| 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. |
| 27 | serde = ["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]] |
| 33 | name = "gen_vectors" |
| 34 | required-features = ["serde"] |
| 35 |