# 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"
name = "mtorrent-utils"
version = "0.5.2"
authors = ["Mikhail Vasilyev <mikail.vasilyev@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Miscellaneous utilities for BitTorrent protocol"
readme = "README.md"
keywords = [
    "bittorrent",
    "torrent",
    "bencode",
    "bencoding",
]
categories = [
    "asynchronous",
    "data-structures",
    "network-programming",
    "parser-implementations",
]
license = "Apache-2.0"
repository = "https://github.com/DanglingPointer/mtorrent"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

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

[dependencies.bytes]
version = "1.11"

[dependencies.derive_more]
version = "2.1"
features = [
    "from",
    "display",
    "debug",
    "deref",
]

[dependencies.igd-next]
version = "0.17"
features = ["aio_tokio"]

[dependencies.local_async_utils]
version = "0.2.13"
features = ["tokio"]

[dependencies.log]
version = "0.4"

[dependencies.rand]
version = "0.10"
features = ["thread_rng"]
default-features = false

[dependencies.socket2]
version = "0.6"
default-features = false

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.51"
features = [
    "rt",
    "net",
    "time",
    "io-util",
    "sync",
    "macros",
]

[dev-dependencies.simple_logger]
version = "5"
features = ["threads"]

[dev-dependencies.static_assertions]
version = "1.1"

[dev-dependencies.tokio-test]
version = "0.4"

[target."cfg(not(windows))".dependencies.libc]
version = "0.2"

[target."cfg(not(windows))".dependencies.sysinfo]
version = "0.38"

[target."cfg(windows)".dependencies.ipconfig]
version = "0.3"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(coverage)"]
