push-packet 0.1.0

Packet-inspection and routing library for Linux, built on eBPF XDP and AF_XDP with aya.
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"
rust-version = "1.85"
name = "push-packet"
version = "0.1.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Packet-inspection and routing library for Linux, built on eBPF XDP and AF_XDP with aya."
homepage = "https://github.com/ct-b/push-packet"
readme = "README.md"
keywords = [
    "ebpf",
    "networking",
    "aya",
    "af-xdp",
    "xdp",
]
categories = [
    "network-programming",
    "os::linux-apis",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ct-b/push-packet"
resolver = "2"

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

[features]
build-ebpf = [
    "dep:aya-build",
    "dep:cargo_metadata",
    "dep:push-packet-ebpf",
    "dep:anyhow",
]
default = ["linear"]
linear = ["push-packet-common/linear"]

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

[[example]]
name = "histogram"
path = "examples/histogram/main.rs"

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

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

[dependencies.aya]
version = "0.13.1"
default-features = false

[dependencies.crossbeam-queue]
version = "0.3.12"

[dependencies.ipnet]
version = "2.12.0"
default-features = false

[dependencies.nix]
version = "0.31.2"
features = [
    "net",
    "poll",
    "sched",
]
default-features = false

[dependencies.push-packet-common]
version = "0.1.0"
features = ["user"]

[dependencies.thiserror]
version = "2.0.18"
default-features = false

[dependencies.xdpilone]
version = "1.3.0"

[dev-dependencies.clap]
version = "4.6.1"
features = ["derive"]

[dev-dependencies.color-eyre]
version = "0.6.5"

[dev-dependencies.etherparse]
version = "0.20.1"

[dev-dependencies.ratatui]
version = "0.30.0"

[dev-dependencies.serial_test]
version = "3.4.0"

[build-dependencies.anyhow]
version = "1"
optional = true
default-features = true

[build-dependencies.aya-build]
version = "0.1.3"
optional = true
default-features = false

[build-dependencies.cargo_metadata]
version = "0.23.1"
optional = true
default-features = false

[build-dependencies.push-packet-ebpf]
version = "0.1.0"
optional = true