[package]
edition = "2024"
name = "irontide-core"
version = "1.0.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core types for BitTorrent: hashes, metainfo, magnets, piece arithmetic"
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]
crypto-aws-lc = ["dep:aws-lc-rs"]
crypto-openssl = ["dep:openssl"]
crypto-ring = ["dep:ring"]
default = ["crypto-aws-lc"]
[lib]
name = "irontide_core"
path = "src/lib.rs"
[[test]]
name = "bep52_conformance"
path = "tests/bep52_conformance.rs"
[[test]]
name = "core_test"
path = "tests/core_test.rs"
[dependencies.aws-lc-rs]
version = "1.16"
optional = true
[dependencies.bytes]
version = "1"
[dependencies.data-encoding]
version = "2"
[dependencies.hex]
version = "0.4"
[dependencies.irontide-bencode]
version = "1"
[dependencies.openssl]
version = "0.10"
optional = true
[dependencies.ring]
version = "0.17"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_bytes]
version = "0.11"
[dependencies.thiserror]
version = "2"
[dependencies.url]
version = "2"
[dev-dependencies.pretty_assertions]
version = "1"
[dev-dependencies.serde]
version = "1"
features = [
"derive",
"derive",
]
[dev-dependencies.tempfile]
version = "3"
[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