mirror of
https://github.com/Cuprate/cuprate.git
synced 2024-11-16 15:58:17 +00:00
Boog900
159c8a3b48
* levin: fix fragmented messages & use bitflags * levin: add a method to fragment a message * levin: add tests for fragmented messages and fix issues * fix docs * tests: don't include bytes length * levin: add support for sending fragmented / dummy messages * fmt * add fragmented handshake tests. * fix handshake detection when fragmented and alt (non-monero) protocol info * add tracing logs * remove `already_built`, this was an old way I was thinking of sending raw buckets * clippy * clippy 2 * Update net/levin/src/message.rs Co-authored-by: hinto-janai <hinto.janai@protonmail.com> * review comments * add timeout to tests * Update net/levin/src/header.rs Co-authored-by: hinto-janai <hinto.janai@protonmail.com> --------- Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
27 lines
No EOL
840 B
TOML
27 lines
No EOL
840 B
TOML
[package]
|
|
name = "levin-cuprate"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "A crate for working with the Levin protocol in Rust."
|
|
license = "MIT"
|
|
authors = ["Boog900"]
|
|
repository = "https://github.com/Cuprate/cuprate/tree/main/net/levin"
|
|
|
|
[features]
|
|
default = []
|
|
tracing = ["dep:tracing", "tokio-util/tracing"]
|
|
|
|
[dependencies]
|
|
thiserror = { workspace = true }
|
|
bytes = { workspace = true, features = ["std"] }
|
|
bitflags = { workspace = true }
|
|
tokio-util = { workspace = true, features = ["codec"]}
|
|
|
|
tracing = { workspace = true, features = ["std"], optional = true }
|
|
|
|
[dev-dependencies]
|
|
proptest = { workspace = true }
|
|
rand = { workspace = true, features = ["std", "std_rng"] }
|
|
tokio-util = { workspace = true, features = ["io-util"]}
|
|
tokio = { workspace = true, features = ["full"] }
|
|
futures = { workspace = true, features = ["std"] } |