[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 }