[package]
edition = "2024"
rust-version = "1.88"
name = "rawether"
version = "0.1.0"
build = false
include = [
"/src/**",
"/examples/**",
"/tests/**",
"/Cargo.toml",
"/README.md",
"/CHANGELOG.md",
"/THREAT_MODEL.md",
"/SECURITY.md",
"/LICENSE-APACHE",
"/LICENSE-MIT",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Raw layer-2 Ethernet I/O: AF_PACKET with TPACKET_V3 rings, hardware timestamps, SO_TXTIME and classic BPF on Linux; BPF devices on macOS and FreeBSD."
homepage = "https://hupe1980.github.io/rawether/"
documentation = "https://docs.rs/rawether"
readme = "README.md"
keywords = [
"ethernet",
"af-packet",
"raw-socket",
"bpf",
"tsn",
]
categories = [
"network-programming",
"os::linux-apis",
"os::macos-apis",
"os::freebsd-apis",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/hupe1980/rawether"
[package.metadata.docs.rs]
targets = [
"x86_64-unknown-linux-gnu",
"aarch64-apple-darwin",
]
[lib]
name = "rawether"
path = "src/lib.rs"
[[example]]
name = "echo"
path = "examples/echo.rs"
[[example]]
name = "lldp"
path = "examples/lldp.rs"
[[example]]
name = "sniff"
path = "examples/sniff.rs"
[[test]]
name = "drop_capabilities"
path = "tests/drop_capabilities.rs"
harness = false
[[test]]
name = "veth"
path = "tests/veth.rs"
[dependencies.libc]
version = "0.2.191"
[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
many_single_char_names = "allow"
missing_errors_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
panic = "deny"
too_many_lines = "allow"
undocumented_unsafe_blocks = "deny"
unwrap_used = "deny"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_op_in_unsafe_fn = "deny"
unused_qualifications = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(fuzzing)"]