mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 00:48:59 +02:00
Move explore
command out of nu-command
deps (#9421)
# Description For better parallel compilation, make sure that `nu-command` doesn't depend on `nu-explore`. Moves the `nu_protocol::Command` implementation into `nu-explore`. Adds `nu_explore::add_explore_context()` which is used in `main.rs` to add the `explore` command. Minor improvement in compile time ~0.5 sec observed as `nu-command` still blocks on `nu-cmd-lang` as well. ## `cargo build --timings` before  ## `cargo build --timings` after  # User-Facing Changes None
This commit is contained in:
committed by
GitHub
parent
2b181bf69c
commit
604aadc938
@ -43,7 +43,8 @@ fn main() -> Result<()> {
|
||||
|
||||
// Get initial current working directory.
|
||||
let init_cwd = get_init_cwd();
|
||||
let mut engine_state = nu_cli::add_cli_context(create_default_context());
|
||||
let mut engine_state =
|
||||
nu_explore::add_explore_context(nu_cli::add_cli_context(create_default_context()));
|
||||
|
||||
// Custom additions
|
||||
let delta = {
|
||||
|
Reference in New Issue
Block a user