Fix version to show build features after crateification (#9262)

# Description

Addresses missing features per #9261 

# User-Facing Changes

Fixes output of version.  Adds wasi feature output

 # Tests + Formatting

No tests written

Co-authored-by: Robert Waugh <robert@waugh.io>
This commit is contained in:
WMR 2023-05-22 08:42:38 -07:00 committed by GitHub
parent 234ba197d7
commit 8e538c650e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 7 deletions

View File

@ -108,25 +108,25 @@ plugin = [
"nu-engine/plugin", "nu-engine/plugin",
] ]
# extra used to be more useful but now it's the same as default. Leaving it in for backcompat with existing build scripts # extra used to be more useful but now it's the same as default. Leaving it in for backcompat with existing build scripts
extra = ["default"] extra = ["default", "nu-cmd-lang/extra"]
default = ["plugin", "which-support", "trash-support", "sqlite"] default = ["plugin", "which-support", "trash-support", "sqlite"]
stable = ["default"] stable = ["default"]
wasi = [] wasi = ["nu-cmd-lang/wasi"]
# Enable to statically link OpenSSL; otherwise the system version will be used. Not enabled by default because it takes a while to build # Enable to statically link OpenSSL; otherwise the system version will be used. Not enabled by default because it takes a while to build
static-link-openssl = ["dep:openssl"] static-link-openssl = ["dep:openssl", "nu-cmd-lang/static-link-openssl"]
# Stable (Default) # Stable (Default)
which-support = ["nu-command/which-support"] which-support = ["nu-command/which-support", "nu-cmd-lang/which-support"]
trash-support = ["nu-command/trash-support"] trash-support = ["nu-command/trash-support", "nu-cmd-lang/trash-support"]
# Extra # Extra
# Dataframe feature for nushell # Dataframe feature for nushell
dataframe = ["nu-command/dataframe"] dataframe = ["nu-command/dataframe", "nu-cmd-lang/dataframe"]
# SQLite commands for nushell # SQLite commands for nushell
sqlite = ["nu-command/sqlite"] sqlite = ["nu-command/sqlite", "nu-cmd-lang/sqlite"]
[profile.release] [profile.release]
opt-level = "s" # Optimize for size opt-level = "s" # Optimize for size

View File

@ -25,3 +25,13 @@ shadow-rs = { version = "0.21.0", default-features = false }
[build-dependencies] [build-dependencies]
shadow-rs = { version = "0.21.0", default-features = false } shadow-rs = { version = "0.21.0", default-features = false }
[features]
which-support = []
trash-support = []
sqlite = []
dataframe = []
static-link-openssl = []
extra = []
wasi = []

View File

@ -182,6 +182,11 @@ fn features_enabled() -> Vec<String> {
names.push("extra".to_string()); names.push("extra".to_string());
} }
#[cfg(feature = "wasi")]
{
names.push("wasi".to_string());
}
names.sort(); names.sort();
names names