diff --git a/Cargo.toml b/Cargo.toml index a21326e6d2..0da7125255 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -63,7 +63,7 @@ subprocess = "0.1.18" mime = "0.3.13" regex = "1.2.1" pretty-hex = "0.1.0" -neso = "0.5.0" +neso = { version = "0.5.0", optional = true } crossterm = "0.10.2" tempfile = "3.1.0" image = "0.22.1" @@ -79,6 +79,9 @@ rawkey = {version = "0.1.2", optional = true } clipboard = {version = "0.5", optional = true } shellexpand = "1.0.0" +[features] +raw-key = ["rawkey", "neso"] + [dev-dependencies] pretty_assertions = "0.6.1" diff --git a/README.md b/README.md index b44121d271..08c2911054 100644 --- a/README.md +++ b/README.md @@ -41,12 +41,12 @@ cargo +nightly install nu You can also install Nu with all the bells and whistles: ``` -cargo +nightly install nu --features rawkey,clipboard +cargo +nightly install nu --features raw-key,clipboard ``` The following optional features are currently supported: -* **rawkey** - direct keyboard input, which creates a smoother experience in viewing text and binaries +* **raw-key** - direct keyboard input, which creates a smoother experience in viewing text and binaries * **clipboard** - integration with the native clipboard via the `clip` command ## Docker