peashape 0.3.0

A traffic-shaping middleware for pea2pea nodes: constant-rate or Poisson outbound traffic, automatic frame padding, and priority lanes for cover traffic.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.88"
name = "peashape"
version = "0.3.0"
authors = ["ljedrz <ljedrz@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A traffic-shaping middleware for pea2pea nodes: constant-rate or Poisson outbound traffic, automatic frame padding, and priority lanes for cover traffic."
homepage = "https://github.com/ljedrz/peashape"
documentation = "https://docs.rs/peashape"
readme = "README.md"
keywords = [
    "p2p",
    "networking",
    "privacy",
    "cover-traffic",
    "middleware",
]
categories = [
    "network-programming",
    "asynchronous",
]
license = "CC0-1.0 OR MIT"
repository = "https://github.com/ljedrz/peashape"

[lib]
name = "peashape"
path = "src/lib.rs"

[[example]]
name = "demo"
path = "examples/demo.rs"

[[example]]
name = "mpegts_broadcast"
path = "examples/mpegts_broadcast.rs"

[[example]]
name = "two_nodes"
path = "examples/two_nodes.rs"

[[example]]
name = "webrtc_masquerade"
path = "examples/webrtc_masquerade.rs"

[[test]]
name = "shape"
path = "tests/shape.rs"

[dependencies.bytes]
version = "1"

[dependencies.parking_lot]
version = "0.12"

[dependencies.pea2pea]
version = "0.56"

[dependencies.rand]
version = "0.10"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "time",
    "sync",
]

[dependencies.tokio-util]
version = "0.7"
features = ["codec"]
default-features = false

[dependencies.tracing]
version = "0.1"

[dev-dependencies.futures-util]
version = "0.3"

[dev-dependencies.tokio]
version = "1"
features = ["full"]

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]