mirror of
https://github.com/nushell/nushell
synced 2024-11-15 17:27:58 +00:00
46eebc644c
# Description Make sure that our different crates that contain commands can be compiled in parallel. This can under certain circumstances accelerate the compilation with sufficient multithreading available. ## Details - Move `help` commands from `nu-cmd-lang` back to `nu-command` - This also makes sense as the commands are implemented in an ANSI-terminal specific way - Make `nu-cmd-lang` only a dev dependency for `nu-command` - Change context creation helpers for `nu-cmd-extra` and `nu-cmd-dataframe` to have a consistent api used in `src/main.rs`:`get_engine_state()` - `nu-command` now indepedent from `nu-cmd-extra` and `nu-cmd-dataframe` that are now dependencies of `nu` directly. (change to internal features) - Fix tests that previously used `nu-command::create_default_context()` with replacement functions ## From scratch compilation times: just debug (dev) build and default features ``` cargo clean --profile dev && cargo build --timings ``` ### before ![grafik](https://github.com/nushell/nushell/assets/15833959/e49f1f42-2e53-4a6c-bc23-625b686af1bc) ### after ![grafik](https://github.com/nushell/nushell/assets/15833959/8dec4723-e625-4a86-b91e-e6e808f64726) # User-Facing Changes None direct, only change to compilation on multithreaded jobs expected. # Tests + Formatting Tests that previously chose to use `nu-command` for their scope will still use `nu-cmd-lang` + `nu-command` (command list in the granularity at the time)
44 lines
1.4 KiB
TOML
44 lines
1.4 KiB
TOML
[package]
|
|
authors = ["The Nushell Project Developers"]
|
|
description = "CLI-related functionality for Nushell"
|
|
repository = "https://github.com/nushell/nushell/tree/main/crates/nu-cli"
|
|
edition = "2021"
|
|
license = "MIT"
|
|
name = "nu-cli"
|
|
version = "0.81.1"
|
|
|
|
[lib]
|
|
bench = false
|
|
|
|
[dev-dependencies]
|
|
nu-cmd-lang = { path = "../nu-cmd-lang", version = "0.81.1" }
|
|
nu-test-support = { path = "../nu-test-support", version = "0.81.1" }
|
|
rstest = { version = "0.17.0", default-features = false }
|
|
|
|
[dependencies]
|
|
nu-command = { path = "../nu-command", version = "0.81.1" }
|
|
nu-engine = { path = "../nu-engine", version = "0.81.1" }
|
|
nu-path = { path = "../nu-path", version = "0.81.1" }
|
|
nu-parser = { path = "../nu-parser", version = "0.81.1" }
|
|
nu-protocol = { path = "../nu-protocol", version = "0.81.1" }
|
|
nu-utils = { path = "../nu-utils", version = "0.81.1" }
|
|
nu-color-config = { path = "../nu-color-config", version = "0.81.1" }
|
|
nu-ansi-term = "0.47.0"
|
|
reedline = { version = "0.20.0", features = ["bashisms", "sqlite"]}
|
|
|
|
atty = "0.2"
|
|
chrono = { default-features = false, features = ["std"], version = "0.4" }
|
|
crossterm = "0.26"
|
|
fancy-regex = "0.11"
|
|
fuzzy-matcher = "0.3"
|
|
is_executable = "1.0"
|
|
log = "0.4"
|
|
miette = { version = "5.9", features = ["fancy-no-backtrace"] }
|
|
once_cell = "1.17"
|
|
percent-encoding = "2"
|
|
sysinfo = "0.29"
|
|
unicode-segmentation = "1.10"
|
|
ahash = "0.8.3"
|
|
|
|
[features]
|
|
plugin = []
|