Eliminate unsafe code blocks and manual pointer arithmetic in Linux-specific receive paths by utilizing nix for socket options and control message parsing. This improves safety and maintainability while preserving the existing kernel RX timestamp and traffic class functionality.
30 lines
841 B
TOML
30 lines
841 B
TOML
[package]
|
|
name = "irtt-client"
|
|
version = "0.4.0"
|
|
description = "IRTT-compatible Rust client library"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
repository.workspace = true
|
|
homepage.workspace = true
|
|
readme.workspace = true
|
|
keywords = ["irtt", "networking", "latency", "rtt"]
|
|
categories = ["network-programming"]
|
|
|
|
[dependencies]
|
|
irtt-proto.workspace = true
|
|
socket2 = { version = "0.6.5", features = ["all"] }
|
|
thiserror = "2.0.20"
|
|
tokio = { version = "1", default-features = false, features = ["rt", "net", "time", "sync"], optional = true}
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
nix = { version = "0.31", default-features = false, features = ["net", "uio"], optional = true }
|
|
|
|
[features]
|
|
default = []
|
|
ancillary = ["dep:nix"]
|
|
tokio = ["dep:tokio"]
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|