Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "netdev"
version = "0.37.3"
version = "0.38.0"
authors = ["shellrow <[email protected]>"]
edition = "2021"
edition = "2024"
description = "Cross-platform library for network interface"
repository = "https://github.com/shellrow/netdev"
readme = "README.md"
Expand All @@ -17,14 +17,14 @@ ipnet = { version = "2.11" }
[target.'cfg(unix)'.dependencies]
libc = "0.2"

[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies]
netlink-packet-core = "0.8"
netlink-packet-route = "0.25"
netlink-sys = "0.8"

[target.'cfg(target_os = "android")'.dependencies]
# DL Open
dlopen2 = { version = "0.5", default-features = false }
once_cell = "1"
# netlink
netlink-packet-core = "0.7"
netlink-packet-route = "0.22.0"
netlink-sys = "0.8"

[target.'cfg(windows)'.dependencies.windows-sys]
version = "0.59"
Expand Down Expand Up @@ -73,3 +73,4 @@ required-features = ["gateway"]
[[example]]
name = "stats"
path = "examples/stats.rs"
required-features = ["gateway"]
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[license-badge]: https://img.shields.io/crates/l/netdev.svg
[examples-url]: https://github.com/shellrow/netdev/tree/main/examples
[doc-url]: https://docs.rs/netdev/latest/netdev
[doc-interface-url]: https://docs.rs/netdev/latest/netdev/interface/struct.Interface.html
[doc-interface-url]: https://docs.rs/netdev/latest/netdev/interface/interface/struct.Interface.html
[netdev-github-url]: https://github.com/shellrow/netdev
[default-net-github-url]: https://github.com/shellrow/default-net
[default-net-crates-io-url]: https://crates.io/crates/default-net
Expand Down Expand Up @@ -32,7 +32,7 @@ This project was rebranded from [default-net][default-net-crates-io-url] by the
Add `netdev` to your dependencies
```toml:Cargo.toml
[dependencies]
netdev = "0.37"
netdev = "0.38"
```

For more details, see [examples][examples-url] or [doc][doc-url].
Expand All @@ -58,9 +58,17 @@ For more details, see [examples][examples-url] or [doc][doc-url].
- 13.4.1
- 11.6
- Windows
- 11 24H2 26100.6584
- 11 23H2 22631.4602
- 11 Pro 22H2 22621.3155
- 11 22H2 22621.3155
- 10 21H2 19044.1586
- FreeBSD
- 14
- Android (arm64)
- 16.0
- Android (x86_64)
- 16.0
- iOS
- 18.6.2
- 18.1.1
Loading