1 个稳定版本

1.0.0 2022年9月12日

#1021 in Unix APIs

0BSD 许可证

18KB
416 代码行

Rust 的 FreeBSD 错误号

此库定义了一个 Error 结构体,用于表示从 FreeBSD 系统调用返回的错误号。

从 Bazel 工作区依赖 freebsd-errno

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

http_archive(
    name = "rust_posix_errno",
    sha256 = "0c86c849ff673372fe6415d4004a233565b57b2884ea49d3b725dd1296cc2529",
    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"],
)

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

从 Cargo 工作区依赖 freebsd-errno

[dependencies]
freebsd-errno = { version = "1.0.0" }

依赖项