netmap-rs 0.3.1

Safe, zero-cost abstractions for Netmap kernel-bypass networking
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 = "2021"
name = "netmap-rs"
version = "0.3.1"
authors = ["Meshack Bahati Ouma <bahatikylemeshack@gmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe, zero-cost abstractions for Netmap kernel-bypass networking"
readme = "README.md"
keywords = [
    "networking",
    "zero-copy",
    "netmap",
    "low-latency",
    "ffi",
]
categories = ["api-bindings"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/meshackbahati/netmap-rs"

[features]
default = []
fallback = ["core_affinity"]
sys = [
    "netmap-min-sys",
    "core_affinity",
    "reed-solomon-erasure",
]
tokio-async = [
    "tokio",
    "netmap-min-sys",
]

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

[[bin]]
name = "bridge"
path = "apps/bridge/main.rs"
required-features = ["sys"]

[[bin]]
name = "ping"
path = "apps/ping/main.rs"
required-features = ["sys"]

[[bin]]
name = "pkt-gen"
path = "apps/pkt-gen/main.rs"
required-features = ["sys"]

[[bin]]
name = "tokio-proxy"
path = "apps/tokio-proxy/main.rs"
required-features = ["tokio-async"]

[[bin]]
name = "vale-ctl"
path = "apps/vale-ctl/main.rs"
required-features = ["sys"]

[[example]]
name = "example"
path = "examples/example.rs"
required-features = ["sys"]

[[example]]
name = "fec"
path = "examples/fec.rs"
required-features = ["sys"]

[[example]]
name = "host_receive"
path = "examples/host_receive.rs"
required-features = ["sys"]

[[example]]
name = "host_transmit"
path = "examples/host_transmit.rs"
required-features = ["sys"]

[[example]]
name = "ping_pong"
path = "examples/ping_pong.rs"
required-features = ["sys"]

[[example]]
name = "pipe_receiver_process"
path = "examples/pipe_receiver_process.rs"
required-features = ["sys"]

[[example]]
name = "pipe_sender_process"
path = "examples/pipe_sender_process.rs"
required-features = ["sys"]

[[example]]
name = "pipe_threads"
path = "examples/pipe_threads.rs"
required-features = ["sys"]

[[example]]
name = "poll_basic"
path = "examples/poll_basic.rs"
required-features = ["sys"]

[[example]]
name = "sliding_window_arq"
path = "examples/sliding_window_arq.rs"
required-features = ["sys"]

[[example]]
name = "thread_per_ring"
path = "examples/thread_per_ring.rs"
required-features = ["sys"]

[[example]]
name = "tokio_pipe_async"
path = "examples/tokio_pipe_async.rs"
required-features = ["tokio-async"]

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

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

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

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

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

[dependencies.bitflags]
version = "2.6"

[dependencies.core_affinity]
version = "0.8"
optional = true

[dependencies.crossbeam]
version = "0.8"
optional = true

[dependencies.libc]
version = "0.2"

[dependencies.netmap-min-sys]
version = "0.3.1"
optional = true

[dependencies.reed-solomon-erasure]
version = "6.0.0"
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.40"
features = [
    "net",
    "io-util",
    "macros",
    "rt",
    "time",
]
optional = true

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

[dev-dependencies.ctrlc]
version = "3.4"
features = ["termination"]

[dev-dependencies.polling]
version = "3.7"

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