Cargo Features

[dependencies]
nstd = { version = "0.10.0", default-features = false, features = ["std", "clib", "nstd_core", "nstd_alloc", "nstd_audio", "nstd_collections", "nstd_env", "nstd_events", "nstd_fs", "nstd_gl", "nstd_gui", "nstd_image", "nstd_input", "nstd_io", "nstd_math", "nstd_net", "nstd_os", "nstd_os_alloc", "nstd_os_def", "nstd_os_io", "nstd_os_thread", "nstd_proc", "nstd_rand", "nstd_string", "nstd_thread", "nstd_time", "nstd_vec"] }
default = nstd_core, std

These default features are set whenever nstd is added without default-features = false somewhere in the dependency tree.

std default nstd_alloc? nstd_audio? nstd_collections? nstd_env? nstd_events? nstd_fs? nstd_gl? nstd_gui? nstd_image? nstd_input? nstd_io? nstd_math? nstd_net? nstd_os? nstd_os_alloc? nstd_os_def? nstd_os_io? nstd_os_thread? nstd_proc? nstd_rand? nstd_string? nstd_thread? nstd_time? nstd_vec?
clib
nstd_core default nstd_image? nstd_input? nstd_os_alloc? nstd_os_io? nstd_proc? nstd_rand? nstd_thread? = cty, platforms

Affects nstd::core

nstd_alloc nstd_vec? = nstd_os_alloc, std

Affects nstd::alloc

nstd_audio = cpal, nstd_fs, rodio, std

Affects nstd::audio

nstd_collections = nstd_math, nstd_vec, std

Affects nstd::collections

nstd_env = nstd_string, std

Affects nstd::env

nstd_events nstd_gui? = nstd_input, std

Affects nstd::events

nstd_fs nstd_audio? = nstd_io, std

Affects nstd::fs

nstd_gl = futures, nstd_gui, nstd_string, std, wgpu

Enables spirv of wgpu ^0.12

wgpu:

**Note:** In the documentation, if you see that an item depends on a backend,
it means that the item is only available when that backend is enabled _and_ the backend is supported on the current platform.

### Shading language support
--------------------------------------------------------------------

Enable accepting SPIR-V shaders as input.

Affects nstd::gl

nstd_gui nstd_gl? = nstd_events, nstd_image, std

Affects nstd::gui

nstd_image nstd_gui? = image, nstd_core, std

Affects nstd::image

nstd_input nstd_events? = nstd_core, std, winit

Affects nstd::input

nstd_io nstd_fs? = nstd_string, std

Affects nstd::io

nstd_math nstd_collections? = std

Affects nstd::math

nstd_net = nstd_string, std

Affects nstd::net

nstd_os nstd_os_alloc? nstd_os_def? nstd_os_io? nstd_os_thread? = std

Affects nstd::os

nstd_os_alloc nstd_alloc? = libc, nstd_core, nstd_os, std, windows-sys

Enables Win32_Foundation and Win32_System_Memory of windows-sys ^0.35

Affects linux::alloc, windows::alloc

nstd_os_def nstd_os_io? = nstd_os, std

Affects windows::def

nstd_os_io = nstd_core, nstd_os, nstd_os_def, std, windows-sys

Enables Win32_Foundation, Win32_Globalization and Win32_System_Console of windows-sys ^0.35

Affects windows::io

nstd_os_thread = nstd_os, std, windows-sys

Enables Win32_System_Threading of windows-sys ^0.35

Affects windows::thread

nstd_proc = nstd_core, std

Affects nstd::proc

nstd_rand = nstd_core, rand, std

Affects nstd::rand

nstd_string nstd_env? nstd_gl? nstd_io? nstd_net? = nstd_vec, std

Affects nstd::string

nstd_thread = nstd_core, std

Affects nstd::thread

nstd_time = chrono, std

Affects nstd::time

nstd_vec nstd_collections? nstd_string? = nstd_alloc, std

Affects nstd::vec

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

chrono nstd_time?
cpal nstd_audio?

Enables cpal ^0.13

cty nstd_core
futures nstd_gl?
image nstd_image?

Enables image ^0.24

platforms nstd_core

Enables platforms ^2.0

rand nstd_rand?
rodio nstd_audio?

Enables rodio ^0.15

wgpu nstd_gl?

Enables wgpu ^0.12

winit nstd_input?

Enables winit ^0.26

libc linux nstd_os_alloc?
windows-sys win nstd_os_alloc? nstd_os_io? nstd_os_thread?

Enables windows-sys ^0.35