4 releases
Uses new Rust 2024
new 0.2.1 | May 7, 2025 |
---|---|
0.2.0 | May 6, 2025 |
0.1.1 | Apr 30, 2025 |
0.1.0 | Apr 30, 2025 |
#2059 in Command line utilities
233 downloads per month
42KB
852 lines
fifd-rs
This is a Rust implementation of the Go library IncSW/fifd. fifd
is used to find file descriptors.
Description
fifd
(Find Invalid File Descriptors) is a utility library for detecting and finding invalid or unexpectedly open file descriptors in a process. This Rust version aims to provide similar functionality to the original Go version, leveraging Rust's safety and performance benefits.
Installation
Add this library to your Cargo.toml
file:
[dependencies]
fifd = "0.1.0" # Please replace with the latest version
Then run cargo build
.
Usage
// Basic usage example (adjust according to the actual API)
// use fifd;
fn main() {
// Find invalid file descriptors for the current process
// match fifd::find_invalid_fds() {
// Ok(fds) => {
// if fds.is_empty() {
// println!("No invalid file descriptors found.");
// } else {
// println!("Found the following invalid file descriptors: {:?}", fds);
// }
// }
// Err(e) => {
// eprintln!("Error finding file descriptors: {}", e);
// }
// }
println!("fifd-rs: Feature under development."); // Temporary placeholder
}
(Note: The usage example above is hypothetical. Please modify it according to the library's actual API.)
Original Project
- Go Version: https://github.com/IncSW/fifd
License
This project is licensed under the [License Name] License. See the LICENSE
file for details. (It is recommended to keep the license consistent with the original Go project, e.g., MIT or Apache 2.0).
Dependencies
~135KB