pb-mapper-cli 0.12.0

Unified CLI and relay server for pb-mapper
# 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.99.1"
name = "pb-mapper-cli"
version = "0.12.0"
authors = ["L_B__"]
build = false
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unified CLI and relay server for pb-mapper"
homepage = "https://github.com/acking-you/pb-mapper"
documentation = "https://docs.rs/pb-mapper-cli"
readme = "README.md"
keywords = [
    "proxy",
    "tunnel",
    "relay",
    "tcp",
    "udp",
]
categories = [
    "command-line-utilities",
    "network-programming",
]
license = "MIT"
repository = "https://github.com/acking-you/pb-mapper"

[features]
default = [
    "p2p",
    "relay-quic",
    "port-mapping",
]
p2p = [
    "pb-mapper-client/p2p",
    "pb-mapper-server/p2p",
]
port-mapping = [
    "p2p",
    "pb-mapper-client/port-mapping",
]
relay-quic = [
    "pb-mapper-client/relay-quic",
    "pb-mapper-server/relay-quic",
    "pb-mapper-protocol/relay-quic",
]
udp-timeout = [
    "pb-mapper-client/udp-timeout",
    "pb-mapper-server/udp-timeout",
]

[[bin]]
name = "pb-mapper"
path = "src/bin/pb-mapper.rs"
doc = false

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

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

[[example]]
name = "relay_transport_bench"
path = "examples/relay_transport_bench.rs"
required-features = ["relay-quic"]

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

[[test]]
name = "e2e"
path = "tests/e2e/main.rs"

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

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

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

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

[[test]]
name = "regression"
path = "tests/regression/main.rs"

[[test]]
name = "regression_cli"
path = "tests/regression_cli/main.rs"

[[test]]
name = "regression_client"
path = "tests/regression_client/main.rs"

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

[dependencies.better_mimalloc_rs]
version = "0.1.2"
features = ["config"]

[dependencies.clap]
version = "4.5"
features = ["derive"]

[dependencies.pb-mapper-auth]
version = "0.12.0"

[dependencies.pb-mapper-client]
version = "0.12.0"

[dependencies.pb-mapper-core]
version = "0.12.0"

[dependencies.pb-mapper-protocol]
version = "0.12.0"

[dependencies.pb-mapper-server]
version = "0.12.0"

[dependencies.serde_json]
version = "1.0"
features = ["std"]
default-features = false

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

[dependencies.tokio-util]
version = "0.7"

[dependencies.tracing]
version = "0.1.40"

[dependencies.tracing-subscriber]
version = "0.3.18"
features = [
    "env-filter",
    "fmt",
    "json",
]
default-features = true

[dev-dependencies.quinn]
version = "0.12.0"
features = [
    "runtime-tokio",
    "rustls-ring",
    "fast-apple-datapath",
]
default-features = false
package = "quinn-plus"

[dev-dependencies.uni-stream]
version = "0.3.5"

[lints.clippy]
expect_used = "deny"
unwrap_used = "deny"