Make neso dependency optional

This commit is contained in:
est31 2019-08-29 01:32:58 +02:00
parent 7ca95ba9dd
commit a7d4a8b065
2 changed files with 6 additions and 3 deletions

View file

@ -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"

View file

@ -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