# 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 = "2021"
rust-version = "1.75.0"
name = "dig-peer-selector"
version = "0.5.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Self-optimizing peer-selection middleware for the DIG Node — the pure decision + learning layer between dig-download and the discovery layers (dig-dht / dig-gossip / dig-nat). Maintains a dynamic peer registry, learns each peer's throughput/RTT/reliability + saturation point + a relayed penalty from the REAL measured outcome of every transfer (measured-only, non-gameable), and ranks a candidate subset per content request to minimize P99 latency without thundering-herd. No user-facing knobs; re-uses the transport-verified peer_id = SHA-256(TLS SPKI DER)."
readme = "README.md"
keywords = [
"p2p",
"peer-selection",
"download",
"scheduling",
"dig",
]
categories = ["network-programming"]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/DIG-Network/dig-peer-selector"
[lib]
name = "dig_peer_selector"
path = "src/lib.rs"
[[test]]
name = "conformance"
path = "tests/conformance.rs"
[dependencies.dig-dht]
version = "0.5.1"
[dependencies.dig-nat]
version = "0.11"
[dependencies.rand]
version = "0.8"
[dependencies.rand_pcg]
version = "0.3"
[dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1"
[profile.release]
overflow-checks = true