v0.16.1

domcyrus/rustnetv0.16.1Nov 22, 2025by github-actions[bot]

AI Summary

Maintenance release adding cross-platform network interface statistics monitoring and fixing eBPF cross-compilation issues. Enables native FreeBSD VM builds for reliable compilation.

Key Highlights

  • Network Interface Statistics with real-time monitoring
  • Cross-Compilation Fixes for eBPF builds
  • Native FreeBSD VM builds using vmactions/freebsd-vm
  • Cross-platform support for Linux, macOS, Windows, and FreeBSD

New Features

  • Network Interface Statistics monitoring
  • Cross-platform interface-level metrics (packets, bytes, errors)
  • eBPF cross-compilation fixes
  • Native FreeBSD builds

Full Release Notes

### Added
- *Network Interface Statistics*: Real-time monitoring of network interface statistics across all platforms
    - Cross-platform support for Linux, macOS, Windows, and FreeBSD
    - Display of interface-level metrics including packets sent/received, bytes transferred, and errors
    -  Platform-specific implementations optimized for each operating system
    - New interface statistics module with dedicated platform handlers
    - TCP network analytics 🎉 :)

### Fixed
- **Cross-Compilation**: Fixed eBPF build issues when cross-compiling to non-Linux platforms
  - Made `libbpf-cargo` an optional build dependency
  - Fixed `build.rs` to check TARGET environment variable instead of host platform
  - Prevents Linux-specific dependencies from being built for FreeBSD, macOS, and Windows
- **FreeBSD Build**: Switched from cross-compilation to native FreeBSD VM builds
  - Uses `vmactions/freebsd-vm` for native FreeBSD compilation
  - Eliminates cross-compilation sysroot and library linking issues
  - Ensures FreeBSD builds work reliably with native package manager

**Full Changelog**: https://github.com/domcyrus/rustnet/compare/v0.16.0...v0.16.1