solana-net-utils 4.0.3

Solana Network Utilities
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 = "solana-net-utils"
version = "4.0.3"
authors = ["Anza Maintainers <maintainers@anza.xyz>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Solana Network Utilities"
homepage = "https://anza.xyz/"
documentation = "https://docs.rs/solana-net-utils"
readme = false
license = "Apache-2.0"
repository = "https://github.com/anza-xyz/agave"
resolver = "2"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

[features]
agave-unstable-api = []
dev-context-only-utils = [
    "dep:pcap-file",
    "dep:hxdmp",
]
shuttle-test = [
    "dep:shuttle",
    "solana-svm-type-overrides/shuttle-test",
]

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

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

[dependencies.anyhow]
version = "1.0.102"

[dependencies.bincode]
version = "1.3.3"

[dependencies.bytes]
version = "1.11.1"

[dependencies.cfg-if]
version = "1.0.4"

[dependencies.dashmap]
version = "5.5.3"
features = ["raw-api"]

[dependencies.hxdmp]
version = "0.2.1"
optional = true

[dependencies.itertools]
version = "0.14.0"

[dependencies.log]
version = "0.4.29"

[dependencies.nix]
version = "0.31.1"
features = ["socket"]

[dependencies.pcap-file]
version = "2.0.0"
optional = true

[dependencies.rand]
version = "0.9.2"

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

[dependencies.shuttle]
version = "0.7.1"
optional = true

[dependencies.socket2]
version = "0.6.2"

[dependencies.solana-serde]
version = "3.0.0"

[dependencies.solana-svm-type-overrides]
version = "=4.0.3"
features = ["agave-unstable-api"]

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

[dependencies.url]
version = "2.5.8"

[dev-dependencies.agave-logger]
version = "=4.0.3"
features = ["agave-unstable-api"]

[lints.clippy]
arithmetic_side_effects = "deny"
default_trait_access = "deny"
manual_let_else = "deny"
used_underscore_binding = "deny"

[lints.rust]
boxed_slice_into_iter = "deny"
dependency_on_unit_never_type_fallback = "deny"
deprecated_safe_2024 = "deny"
impl_trait_overcaptures = "deny"
missing_unsafe_on_extern = "deny"
never_type_fallback_flowing_into_unsafe = "deny"
rust_2024_guarded_string_incompatible_syntax = "deny"
rust_2024_incompatible_pat = "deny"
rust_2024_prelude_collisions = "deny"
static_mut_refs = "deny"
unsafe_attr_outside_unsafe = "deny"
unsafe_op_in_unsafe_fn = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    'cfg(target_os, values("solana"))',
    'cfg(feature, values("frozen-abi", "no-entrypoint"))',
    'cfg(target_arch, values("sbf"))',
]