Skip to content

Add Rust fping implementation as optional dependency-free alternative #205

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

RohitKochhar
Copy link

This implementation provides better performance and eliminates the need for the system fping package while maintaining full compatibility with existing configurations.

Key features:

  • Drop-in replacement with automatic fallback to system fping
  • Same output format and interface as original fping
  • No external dependencies when Rust extension is built
  • Complete test coverage and example configuration
  • Build script for easy compilation

The implementation uses system ping commands internally to avoid raw socket permission requirements while still providing a native Rust experience.

This implementation provides better performance and eliminates the need for
the system fping package while maintaining full compatibility with existing
configurations.

Key features:
- Drop-in replacement with automatic fallback to system fping
- Same output format and interface as original fping
- No external dependencies when Rust extension is built
- Complete test coverage and example configuration
- Build script for easy compilation

The implementation uses system ping commands internally to avoid raw socket
permission requirements while still providing a native Rust experience.
@grizz grizz requested a review from vegu August 15, 2025 15:12
RohitKochhar and others added 2 commits August 17, 2025 20:49
Implements a comprehensive fping-compatible CLI interface that provides
a drop-in replacement for the traditional fping utility using vaping's
high-performance Rust implementation.

Key features:
- Full fping command-line compatibility with all major options
- Real-time verbose count mode with cumulative statistics
- Proper timeout handling (1 second default)
- Exit code compatibility with original fping
- Comprehensive test suite with 25+ test cases
- Complete documentation with examples

Files added:
- src/vaping/fping_cli.py - Main CLI implementation
- tests/test_fping_cli.py - Comprehensive test suite
- docs/fping-cli.md - User documentation

Files modified:
- src/lib.rs - Enhanced Rust implementation with timeout parameter
- src/vaping/cli.py - Integration as vaping subcommand
- README.md - Updated with fping command documentation
- mkdocs.yml - Added documentation to navigation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants