-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
83 lines (74 loc) · 2.79 KB
/
Cargo.toml
File metadata and controls
83 lines (74 loc) · 2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[package]
name = "nstd-sys"
version = "0.13.0"
edition = "2021"
license = "MIT"
homepage = "https://github.com/RustEnthusiast/nstd"
repository = "https://github.com/RustEnthusiast/nstd"
description = "Cross platform general purpose C library written in Rust."
readme = "README.md"
keywords = ["api", "ffi", "no_std", "no-std"]
categories = ["no-std", "no-std::no-alloc"]
[package.metadata.docs.rs]
features = ["nstd"]
rustdoc-args = ["--cfg", "doc_cfg"]
[package.metadata.capi]
library.name = "nstd"
pkg_config.name = "libnstd"
pkg_config.filename = "nstd"
header.generation = false
install.include.asset = [{from = "include/**/*", to = ""}]
[profile.dev]
panic = "abort"
[profile.release]
lto = true
overflow-checks = true
panic = "abort"
strip = true
[features]
default = ["core", "std"]
std = []
capi = ["nstdapi/capi"]
link = ["capi", "nstdapi/link"]
nstd = [
"alloc", "core", "cstring", "env", "fs", "heap_ptr", "io", "math", "mutex", "os",
"os_unix_alloc", "os_unix_io", "os_unix_mutex", "os_unix_shared_lib", "os_unix_time",
"os_windows_alloc", "os_windows_shared_lib", "os_windows_str", "proc", "shared_lib",
"shared_ptr", "string", "thread", "time", "timed_mutex", "vec"
]
alloc = ["core", "libc", "os_windows_alloc"]
core = []
cstring = ["core", "vec"]
env = ["alloc", "core", "io", "std", "string", "vec"]
fs = ["alloc", "core", "io", "os_unix_io", "std", "string", "time", "vec"]
heap_ptr = ["core"]
io = ["alloc", "core", "os_unix_io", "std", "string", "vec"]
math = ["std"]
mutex = ["alloc", "core", "heap_ptr", "std"]
os = ["windows-sys"]
os_unix_alloc = ["core", "libc", "os"]
os_unix_io = ["core", "errno", "libc", "os", "string", "vec"]
os_unix_mutex = ["core", "heap_ptr", "libc", "os", "os_unix_time", "thread"]
os_unix_shared_lib = ["core", "libc", "os"]
os_unix_time = ["core", "libc", "os"]
os_windows_alloc = ["core", "libc", "os", "windows-sys/Win32_System_Memory"]
os_windows_shared_lib = ["core", "os", "windows-sys/Win32_System_LibraryLoader"]
os_windows_str = ["alloc", "core", "os", "vec", "windows-sys/Win32_Globalization"]
proc = ["alloc", "core", "io", "std"]
shared_lib = ["alloc", "core", "cstring", "libc", "os_windows_shared_lib", "os_windows_str", "vec"]
shared_ptr = ["core"]
string = ["core", "vec"]
thread = ["alloc", "core", "heap_ptr", "io", "std"]
time = ["core", "os_unix_time", "std"]
timed_mutex = ["capi", "cc", "core", "heap_ptr", "os_unix_mutex", "thread"]
vec = ["alloc", "core"]
[dependencies]
cfg-if = "1.0"
libc = { version = "0.2", optional = true, default-features = false }
nstdapi = "0.2"
[target.'cfg(unix)'.dependencies]
errno = { version = "0.3", optional = true, default-features = false }
[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.48", optional = true, features = ["Win32_Foundation"] }
[build-dependencies]
cc = { version = "1.0", optional = true }