| 1 |
[package] |
| 2 |
|
| 3 |
name = "errno" |
| 4 |
version = "0.3.14" |
| 5 |
authors = ["Chris Wong <[email protected]>", "Dan Gohman <[email protected]>"] |
| 6 |
|
| 7 |
license = "MIT OR Apache-2.0" |
| 8 |
edition = "2018" |
| 9 |
documentation = "https://docs.rs/errno" |
| 10 |
repository = "https://github.com/lambda-fairy/rust-errno" |
| 11 |
description = "Cross-platform interface to the `errno` variable." |
| 12 |
categories = ["no-std", "os"] |
| 13 |
rust-version = "1.56" |
| 14 |
|
| 15 |
[target.'cfg(unix)'.dependencies] |
| 16 |
libc = { version = "0.2", default-features = false } |
| 17 |
|
| 18 |
[target.'cfg(windows)'.dependencies.windows-sys] |
| 19 |
version = ">=0.52, <0.62" |
| 20 |
features = [ |
| 21 |
"Win32_Foundation", |
| 22 |
"Win32_System_Diagnostics_Debug", |
| 23 |
] |
| 24 |
|
| 25 |
[target.'cfg(target_os="wasi")'.dependencies] |
| 26 |
libc = { version = "0.2", default-features = false } |
| 27 |
|
| 28 |
[target.'cfg(target_os="hermit")'.dependencies] |
| 29 |
libc = { version = "0.2", default-features = false } |
| 30 |
|
| 31 |
[features] |
| 32 |
default = ["std"] |
| 33 |
std = ["libc/std"] |
| 34 |
|
| 35 |
# TODO: Remove this exemption when Cygwin support lands in Rust stable |
| 36 |
# https://github.com/rust-lang/rust/pull/134999 |
| 37 |
[lints.rust.unexpected_cfgs] |
| 38 |
level = "warn" |
| 39 |
check-cfg = ['cfg(target_os, values("cygwin"))'] |