2 stable releases

Uses old Rust 2015

1.0.1 Sep 8, 2022
1.0.0 Sep 6, 2022

#822 in Unix APIs

Download history 203/week @ 2023-12-07 82/week @ 2023-12-14 53/week @ 2023-12-21 324/week @ 2023-12-28 200/week @ 2024-01-04 183/week @ 2024-01-11 209/week @ 2024-01-18 167/week @ 2024-01-25 162/week @ 2024-02-01 214/week @ 2024-02-08 204/week @ 2024-02-15 269/week @ 2024-02-22 261/week @ 2024-02-29 295/week @ 2024-03-07 260/week @ 2024-03-14 186/week @ 2024-03-21

1,057 downloads per month
Used in 2 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