| Crates.io | udevrs |
| lib.rs | udevrs |
| version | 0.5.0 |
| created_at | 2023-12-06 18:40:43.820414+00 |
| updated_at | 2025-07-12 23:32:14.692905+00 |
| description | Pure Rust implementation of the user-land udev library |
| homepage | |
| repository | https://github.com/cr8t/udev |
| max_upload_size | |
| id | 1060318 |
| size | 13,389,648 |
Rust port of the eudev project for interacting with the Linux devfs filesystem.
The project attempts to maintain a public API as close to possible with the original C project.
This library is an init-system independent implementation, just like eudev.
As much as possible, code is written in safe Rust. Some points of interaction with the Linux API require unsafe code.
All unsafe code is wrapped in safe interfaces, and documented with SAFETY comments.
There are no C dependencies.
All Rust structs have a public API that is somewhat close to counterparts in the eudev library.
See library documentation for usage.
To generate documentation locally:
$ cd udev
$ cargo doc --all --open
As the project matures, use-case examples will be added to doc-tests.
libudev API
Currently, there is only a Rust public API. Work is still ongoing to expose remaining subsystems via the top-level API:
Arc<Udev>