Cargo Features

[dependencies]
nu-command = { version = "0.110.0", default-features = false, features = ["os", "js", "network", "native-tls", "rustls-tls", "plugin", "sqlite", "trash-support"] }
default = network, os, rustls-tls

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

os default plugin? = crossterm, js, notify-debouncer-full, open, os_pipe, reedline, uu_cp, uu_mkdir, uu_mktemp, uu_mv, uu_touch, uu_uname, uu_whoami, which

Enables os of nu-engine, nu-protocol, and nu-utils

Affects impl_rustls::native_certs

js os = getrandom, rand, uuid

The dependencies listed below need 'getrandom'.
They work with JS (usually with wasm-bindgen) or regular OS support.
Hence they are also put under the 'os' feature to avoid repetition.

Enables js of getrandom ^0.2

network default = dns-lookup, multipart-rs, update-informer, ureq, uuid

These dependencies require networking capabilities, especially the http interface requires openssl which is not easy to embed into wasm,
using rustls could solve this issue.

Affects network::tls

native-tls

Enables native-tls, native-tls of update-informer and ureq =3.0.12

rustls-tls default

Enables webpki-roots, rustls =0.23.28 and rustls-native-certs, rustls-tls of update-informer and rustls of ureq =3.0.12

ureq:

SUPPORTED FEATURES

plugin = os

Enables plugin of nu-parser

sqlite = rusqlite
trash-support = trash

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.

crossterm os
dns-lookup network
multipart-rs network

Enables multipart-rs ^0.1.13

notify-debouncer-full os

Enables notify-debouncer-full ^0.3

open os
os_pipe os
rand js?
getrandom js?

Enables getrandom ^0.2

reedline os
rusqlite sqlite?

Enables rusqlite ^0.37

update-informer native-tls? network rustls-tls
ureq native-tls? network rustls-tls

Enables ureq =3.0.12

uu_cp os
uu_mkdir os
uu_mktemp os
uu_mv os
uu_touch os
uu_uname os
uu_whoami os
uuid js? network
which os
trash not android ios trash-support?