irontide-session 1.0.1

BitTorrent session management: peers, torrents, and piece selection
Documentation
# 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 = "irontide-session"
version = "1.0.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "BitTorrent session management: peers, torrents, and piece selection"
homepage = "https://codeberg.org/alan090/irontide"
readme = false
keywords = [
    "bittorrent",
    "torrent",
    "peer-to-peer",
    "p2p",
    "download",
]
categories = ["network-programming"]
license = "GPL-3.0-or-later"
repository = "https://codeberg.org/alan090/irontide"
resolver = "2"

[features]
default = []
io-uring = [
    "irontide-storage/io-uring",
    "dep:io-uring",
]
iocp = [
    "irontide-storage/iocp",
    "dep:windows-sys",
]
test-util = []

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

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

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

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

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

[[bench]]
name = "disk_bench"
path = "benches/disk_bench.rs"
harness = false

[dependencies.argon2]
version = "0.5"
features = [
    "alloc",
    "password-hash",
]
default-features = false

[dependencies.async-trait]
version = "0.1"

[dependencies.bitflags]
version = "2"
features = ["serde"]

[dependencies.bytes]
version = "1"

[dependencies.dashmap]
version = "6"

[dependencies.directories]
version = "5"

[dependencies.futures]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.ipnet]
version = "2.10"
features = ["serde"]

[dependencies.irontide-bencode]
version = "1"

[dependencies.irontide-core]
version = "1"

[dependencies.irontide-dht]
version = "1"

[dependencies.irontide-nat]
version = "1"

[dependencies.irontide-storage]
version = "1"

[dependencies.irontide-tracker]
version = "1"

[dependencies.irontide-utp]
version = "1"

[dependencies.irontide-wire]
version = "1"

[dependencies.libc]
version = "0.2"

[dependencies.notify-debouncer-full]
version = "0.7"

[dependencies.notify-rust]
version = "4.11"

[dependencies.parking_lot]
version = "0.12"

[dependencies.rand_core]
version = "0.6"
features = ["getrandom"]

[dependencies.reqwest]
version = "0.12"
features = ["rustls-tls"]
default-features = false

[dependencies.rustc-hash]
version = "2"

[dependencies.rustls]
version = "0.23"
features = ["ring"]

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_bytes]
version = "0.11"

[dependencies.slab]
version = "0.4"

[dependencies.smallvec]
version = "1"

[dependencies.socket2]
version = "0.5"
features = ["all"]

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2"

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

[dependencies.tokio-rustls]
version = "0.26"

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

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2"

[dependencies.zeroize]
version = "1.8"
features = ["derive"]

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.pretty_assertions]
version = "1"

[dev-dependencies.proptest]
version = "1"

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio]
version = "1"
features = [
    "full",
    "full",
    "test-util",
]

[target.'cfg(target_os = "linux")'.dependencies.io-uring]
version = "0.7"
optional = true

[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
version = "0.59"
features = [
    "Win32_Foundation",
    "Win32_System_IO",
    "Win32_System_Threading",
]
optional = true

[lints.clippy]
await_holding_lock = "deny"
cast_possible_truncation = "deny"
cast_possible_wrap = "deny"
cast_precision_loss = "deny"
cast_sign_loss = "deny"
large_enum_variant = "warn"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "deny"
or_fun_call = "deny"
redundant_clone = "deny"
return_self_not_must_use = "deny"
similar_names = "allow"
struct_excessive_bools = "allow"
too_many_lines = "allow"
unchecked_time_subtraction = "deny"
use_self = "deny"

[lints.clippy.pedantic]
level = "warn"
priority = -1