[dependencies.libp2p-core]
version = "0.43.0"
[dependencies.libp2p-identity]
features = ["peerid"]
version = "0.2.10"
[dependencies.libp2p-swarm]
version = "0.46.0"
[dependencies.memory-stats]
features = ["always_use_statm"]
version = "1"
[dependencies.sysinfo]
version = "0.33"
[dependencies.tracing]
version = "0.1.41"
[dev-dependencies.libp2p-identify]
version = "0.46.0"
[lib]
name = "libp2p_memory_connection_limits"
path = "src/lib.rs"
[lints.clippy]
dbg_macro = "warn"
manual_let_else = "warn"
type_complexity = "allow"
unnecessary_wraps = "warn"
used_underscore_binding = "warn"
[lints.clippy.pedantic]
level = "allow"
priority = -1
[lints.rust]
unreachable_pub = "warn"
[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["network-programming", "asynchronous"]
description = "Memory usage based connection limits for libp2p."
edition = "2021"
keywords = ["peer-to-peer", "libp2p", "networking"]
license = "MIT"
name = "libp2p-memory-connection-limits"
readme = false
repository = "https://github.com/libp2p/rust-libp2p"
rust-version = "1.83.0"
version = "0.4.0"
[[test]]
name = "max_bytes"
path = "tests/max_bytes.rs"
[[test]]
name = "max_percentage"
path = "tests/max_percentage.rs"