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 0 | 0 | 0 | 0 |
0.3.14 - This version is safe to use because it has no known security vulnerabilities at this time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform
Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.
Apache-2.0 - Apache License 2.0Cross-platform interface to the errno variable. Works on Rust 1.56 or newer.
Documentation is available at https://docs.rs/errno.
Add to your Cargo.toml:
[dependencies]
errno = "0.3"The standard library provides Error::last_os_error which fetches errno in the same way.
This crate provides these extra features:
#![no_std] supportset_errno functionextern crate errno;
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);Enable #![no_std] support by disabling the default std feature:
[dependencies]
errno = { version = "0.3", default-features = false }The Error impl will be unavailable.