# 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 = "2018" name = "mainline" version = "3.0.0" authors = ["nuh.dev"] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Simple, robust, BitTorrent's Mainline DHT implementation" homepage = "https://github.com/pubky/mainline" readme = "README.md" keywords = [ "bittorrent", "torrent", "dht", "kademlia", "mainline", ] categories = ["network-programming"] license = "MIT" repository = "https://github.com/pubky/mainline" [package.metadata.docs.rs] all-features = true [lib] name = "mainline" path = "src/lib.rs" [[example]] name = "announce_peer" path = "examples/announce_peer.rs" [[example]] name = "bootstrap" path = "examples/bootstrap.rs" [[example]] name = "custom_server" path = "examples/custom_server.rs" [[example]] name = "get_immutable" path = "examples/get_immutable.rs" [[example]] name = "get_mutable" path = "examples/get_mutable.rs" [[example]] name = "get_peers" path = "examples/get_peers.rs" [[example]] name = "put_immutable" path = "examples/put_immutable.rs" [[example]] name = "put_mutable" path = "examples/put_mutable.rs" [dependencies.bytes] version = "1.5.0" [dependencies.crc] version = "3.0.1" [dependencies.ed25519-dalek] version = "2.1.0" [dependencies.flume] version = "0.11.0" features = [] default-features = false [dependencies.lru] version = "0.12.2" default-features = false [dependencies.rand] version = "0.8.5" [dependencies.serde] version = "1.0.133" features = ["derive"] [dependencies.serde_bencode] version = "^0.2.4" [dependencies.serde_bytes] version = "0.11.5" [dependencies.sha1_smol] version = "1.0.0" [dependencies.thiserror] version = "1.0.49" [dependencies.tracing] version = "0.1" [dev-dependencies.clap] version = "4.4.8" features = ["derive"] [dev-dependencies.futures] version = "0.3.29" [dev-dependencies.tracing-subscriber] version = "0.3" [features] async = ["flume/async"] default = [] [lints.clippy] unwrap_used = "deny"