[package]
edition = "2024"
name = "agave-xdp"
version = "4.2.2"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Agave XDP implementation"
homepage = "https://anza.xyz/"
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"]
all-features = true
rustdoc-args = ["--cfg=docsrs"]
[features]
agave-unstable-api = []
[lib]
name = "agave_xdp"
path = "src/lib.rs"
[[test]]
name = "netlink_snapshot"
path = "tests/netlink_snapshot.rs"
required-features = ["agave-unstable-api"]
[[test]]
name = "route_monitor"
path = "tests/route_monitor.rs"
required-features = ["agave-unstable-api"]
[[test]]
name = "router_snapshot"
path = "tests/router_snapshot.rs"
required-features = ["agave-unstable-api"]
[[test]]
name = "transmitter_smoke"
path = "tests/transmitter_smoke.rs"
required-features = ["agave-unstable-api"]
[dependencies.agave-cpu-utils]
version = "=4.2.2"
features = ["agave-unstable-api"]
[dependencies.arc-swap]
version = "1.9.1"
[dependencies.bytes]
version = "1.12.0"
[dependencies.crossbeam-channel]
version = "0.5.15"
[dependencies.libc]
version = "0.2.186"
[dependencies.log]
version = "0.4.32"
[dependencies.thiserror]
version = "2.0.18"
[target.'cfg(target_os = "linux")'.dependencies.agave-xdp-ebpf]
version = "=4.2.2"
features = ["agave-unstable-api"]
[target.'cfg(target_os = "linux")'.dependencies.arrayvec]
version = "0.7.6"
[target.'cfg(target_os = "linux")'.dependencies.aya]
version = "0.14"
[target.'cfg(target_os = "linux")'.dependencies.caps]
version = "0.5.6"
[target.'cfg(target_os = "linux")'.dependencies.crossbeam-queue]
version = "0.3.12"
[target.'cfg(target_os = "linux")'.dev-dependencies.aya]
version = "0.14"
features = ["test-helpers"]
[target.'cfg(target_os = "linux")'.dev-dependencies.nix]
version = "0.31.3"
features = [
"net",
"poll",
"socket",
]
[lints.clippy]
arithmetic_side_effects = "deny"
default_trait_access = "deny"
manual_let_else = "deny"
new_without_default = "allow"
uninlined_format_args = "deny"
used_underscore_binding = "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"))',
]