1[package]
2
3name = "errno"
4version = "0.3.8"
5authors = ["Chris Wong <lambda.fairy@gmail.com>"]
6
7license = "MIT OR Apache-2.0"
8edition = "2018"
9documentation = "https://docs.rs/errno"
10repository = "https://github.com/lambda-fairy/rust-errno"
11description = "Cross-platform interface to the `errno` variable."
12categories = ["no-std", "os"]
13rust-version = "1.56"
14
15[target.'cfg(unix)'.dependencies]
16libc = { version = "0.2", default-features = false }
17
18[target.'cfg(windows)'.dependencies.windows-sys]
19version = "0.52"
20features = [
21 "Win32_Foundation",
22 "Win32_System_Diagnostics_Debug",
23]
24
25[target.'cfg(target_os="wasi")'.dependencies]
26libc = { version = "0.2", default-features = false }
27
28[target.'cfg(target_os="hermit")'.dependencies]
29libc = { version = "0.2", default-features = false }
30
31[features]
32default = ["std"]
33std = ["libc/std"]
34