12 个版本

0.2.1 2024年2月19日
0.2.0 2023年10月24日
0.1.5 2022年6月27日
0.1.0 2022年5月24日
0.0.1 2021年10月2日

#173 in Operating systems

Download history · Rust 包仓库 23/week @ 2024-03-11 · Rust 包仓库 55/week @ 2024-03-18 · Rust 包仓库 67/week @ 2024-03-25 · Rust 包仓库 118/week @ 2024-04-01 · Rust 包仓库 83/week @ 2024-04-08 · Rust 包仓库 77/week @ 2024-04-15 · Rust 包仓库 80/week @ 2024-04-22 · Rust 包仓库 54/week @ 2024-04-29 · Rust 包仓库 54/week @ 2024-05-06 · Rust 包仓库 64/week @ 2024-05-13 · Rust 包仓库 33/week @ 2024-05-20 · Rust 包仓库 13/week @ 2024-05-27 · Rust 包仓库 15/week @ 2024-06-03 · Rust 包仓库 19/week @ 2024-06-10 · Rust 包仓库 8/week @ 2024-06-17 · Rust 包仓库 16/week @ 2024-06-24 · Rust 包仓库

59 每月下载量
用于 6 个 crates (3 直接)

MIT/Apache

16KB
362 行代码

maintenance: actively developed

errno-no-std

跨平台接口到 errno 变量。

errno crate 的改进版本。

示例

use errno::{Errno, errno, set_errno};

// Get the current value of errno
let e = errno();

// Set the current value of errno
set_errno(e);

// Extract the error code as an i32
let code = e.0;

// Display a human-friendly error message
println!("Error {}: {}", code, e);

lib.rs:

Crate 功能

  • "std" 默认启用。禁用以使库 #![no_std].

依赖项

~0–315KB