raw-ether 0.2.2

Raw Ethernet on Linux, macOS and Windows: MAC addresses, interfaces, frames with hardware time stamps, PTP hardware clocks and captures
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.95"
name = "raw-ether"
version = "0.2.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Raw Ethernet on Linux, macOS and Windows: MAC addresses, interfaces, frames with hardware time stamps, PTP hardware clocks and captures"
readme = "README.md"
keywords = [
    "ethernet",
    "raw-socket",
    "ptp",
    "timestamping",
    "tsn",
]
categories = [
    "network-programming",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/scrambletools/gptp"

[features]
default = ["std"]
std = [
    "dep:libc",
    "dep:windows-sys",
]

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

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

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

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

[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dependencies.libc]
version = "0.2"
optional = true

[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
    "Win32_Foundation",
    "Win32_NetworkManagement_IpHelper",
    "Win32_NetworkManagement_Ndis",
    "Win32_Networking_WinSock",
    "Win32_System_LibraryLoader",
    "Win32_System_SystemInformation",
    "Win32_System_Threading",
]
optional = true

[lints.clippy.all]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "deny"