Registry / other / libudev-sys

libudev-sys

JSON →
library0.1.4rscratesunverified

FFI bindings to libudev.

# Cargo.toml [dependencies] libudev-sys = "0.1.4"
INSTALL
IMPORT
SIG · LIBUDEV-SYS
L
libudev-sys
otherrustv0.1.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

udev_new
use libudev_sys::udev_new;

Creates a new libudev context using FFI bindings.

use libudev_sys::udev_new; fn main() { unsafe { let udev = udev_new(); if !udev.is_null() { println!("libudev context created"); } } }
Debug
Known issues
gotchaRequires libudev development libraries installed on the system.
fix
Install libudev-dev (Linux) or equivalent.
affects: >=0.1.0
Upgrade
Version history
0.1.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
libudev-sys — cargo add libudev-sys · libregistry