2 stable releases

Uses old Rust 2015

1.0.1 Sep 8, 2022
1.0.0 Sep 6, 2022

#906 in Unix APIs

Download history 123/week @ 2024-07-22 334/week @ 2024-07-29 312/week @ 2024-08-05 279/week @ 2024-08-12 356/week @ 2024-08-19 156/week @ 2024-08-26 270/week @ 2024-09-02 296/week @ 2024-09-09 185/week @ 2024-09-16 240/week @ 2024-09-23 190/week @ 2024-09-30 138/week @ 2024-10-07 247/week @ 2024-10-14 222/week @ 2024-10-21 147/week @ 2024-10-28 174/week @ 2024-11-04

796 downloads per month
Used in 3 crates

0BSD license

7KB
86 lines

POSIX error numbers for Rust

This library defines a single type, the Error enum, which represents the symbolic constants for error numbers defined in the POSIX standard.

To depend on posix-errno from a Bazel workspace:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "rust_posix_errno",
    # Obtain the package checksum from the release page:
    # https://github.com/jmillikin/rust-posix-errno/releases/tag/v1.0.1
    sha256 = "",
    strip_prefix = "posix-errno-1.0.1",
    urls = ["https://github.com/jmillikin/rust-posix-errno/releases/download/v1.0.1/posix-errno-1.0.1.tar.xz"],
)

To depend on posix-errno from a Cargo workspace:

[dependencies]
posix-errno = { version = "1.0.1" }

lib.rs:

This library defines a single type, the [Error] enum, which represents the symbolic constants for error numbers defined in the POSIX standard.

No runtime deps