Add dirs dependency to nu-engine (#2922)

* Add dirs dependency to nu-engine

* Dir feature should be added to root features
This commit is contained in:
Coen Fox 2021-01-13 08:18:13 +11:00 committed by GitHub
parent dfb1e22559
commit a636f161a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

1
Cargo.lock generated
View File

@ -3320,6 +3320,7 @@ dependencies = [
"async-trait",
"bytes 0.5.6",
"derive-new",
"dirs 3.0.1",
"dunce",
"encoding_rs",
"filesize",

View File

@ -64,7 +64,7 @@ nu-test-support = {version = "0.25.2", path = "./crates/nu-test-support"}
[features]
ctrlc-support = ["nu-cli/ctrlc", "nu-command/ctrlc"]
directories-support = ["nu-cli/directories", "nu-cli/dirs", "nu-command/directories", "nu-command/dirs", "nu-data/directories", "nu-data/dirs"]
directories-support = ["nu-cli/directories", "nu-cli/dirs", "nu-command/directories", "nu-command/dirs", "nu-data/directories", "nu-data/dirs", "nu-engine/dirs"]
git-support = ["nu-cli/git2", "nu-command/git2"]
ptree-support = ["nu-cli/ptree", "nu-command/ptree"]
rich-benchmark = ["nu-cli/rich-benchmark", "nu-command/rich-benchmark"]

View File

@ -21,6 +21,7 @@ async-recursion = "0.3.1"
async-trait = "0.1.40"
bytes = "0.5.6"
derive-new = "0.5.8"
dirs = {version = "3.0.1", optional = true}
dunce = "1.0.1"
encoding_rs = "0.8.24"
filesize = "0.2.0"