xorpio

Crates.ioxorpio
lib.rsxorpio
version
sourcesrc
created_at2024-11-29 22:40:22.766662
updated_at2024-11-30 01:47:25.623389
descriptionno_std / libc-free bindings for Linux userspace IO
homepage
repository
max_upload_size
id1466122
Cargo.toml error:TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
(xorps)

documentation

README

xorpio

no_std / libc-free bindings for Linux userspace IO

🚧 This project is currently under development 🚧

Example Usage

#![no_std]
#![no_main]

use xorpio::epoll::Epoll;

fn run() -> Result<(), xorpio::Errno> {
    let ev = Epoll::new()?;
    let () = ev.close()?;
    Ok(())
}

#[panic_handler]
fn panic(_info: &core::panic::PanicInfo) -> ! {
    xorpio::process::exit(1)
}

#[no_mangle]
pub extern "C" fn _start() -> ! {
    let code = match run() {
        Ok(()) => 0,
        Err(_) => 1,
    };

    xorpio::process::exit(code);
}
Commit count: 0

cargo fmt