nushell/crates
Raphael Gaschignard d8f13b36b1
Allow for stacks to have parents (#11654)
This is another attempt on #11288 

This allows for a `Stack` to have a parent stack (behind an `Arc`). This
is being added to avoid constant stack copying in REPL code.

Concretely the following changes are included here:
- `Stack` can now have a `parent_stack`, pointing to another stack
- variable lookups can fallback to this parent stack (env vars and
everything else is still copied)
- REPL code has been reworked so that we use parenting rather than
cloning. A REPL-code-specific trait helps to ensure that we do not
accidentally trigger a full clone of the main stack
- A property test has been added to make sure that parenting "looks the
same" as cloning for consumers of `Stack` objects

---------

Co-authored-by: Raphael Gaschignard <rtpg@rokkenjima.local>
Co-authored-by: Ian Manske <ian.manske@pm.me>
2024-03-09 17:55:39 +01:00
..
nu_plugin_custom_values Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu_plugin_example Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu_plugin_formats Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu_plugin_gstat Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu_plugin_inc Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu_plugin_python Improve the error message for a plugin version mismatch (#12122) 2024-03-08 06:04:22 -06:00
nu_plugin_query Bump scraper from 0.18.1 to 0.19.0 (#12060) 2024-03-07 08:23:28 +08:00
nu_plugin_stream_example Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu-cli Allow for stacks to have parents (#11654) 2024-03-09 17:55:39 +01:00
nu-cmd-base Allow for stacks to have parents (#11654) 2024-03-09 17:55:39 +01:00
nu-cmd-dataframe Debugger experiments (#11441) 2024-03-08 20:21:35 +02:00
nu-cmd-extra Debugger experiments (#11441) 2024-03-08 20:21:35 +02:00
nu-cmd-lang Debugger experiments (#11441) 2024-03-08 20:21:35 +02:00
nu-color-config Debugger experiments (#11441) 2024-03-08 20:21:35 +02:00
nu-command fix ls with empty string (#12086) 2024-03-08 22:49:41 +01:00
nu-engine Debugger experiments (#11441) 2024-03-08 20:21:35 +02:00
nu-explore Debugger experiments (#11441) 2024-03-08 20:21:35 +02:00
nu-glob Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu-json remove repetitive word (#12117) 2024-03-08 15:29:20 +08:00
nu-lsp Introduce workspace dependencies (#12043) 2024-03-07 14:40:31 -08:00
nu-parser Introduce workspace dependencies (#12043) 2024-03-07 14:40:31 -08:00
nu-path Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu-plugin Debugger experiments (#11441) 2024-03-08 20:21:35 +02:00
nu-pretty-hex Introduce workspace dependencies (#12043) 2024-03-07 14:40:31 -08:00
nu-protocol Allow for stacks to have parents (#11654) 2024-03-09 17:55:39 +01:00
nu-std Debugger experiments (#11441) 2024-03-08 20:21:35 +02:00
nu-system Bump windows from 0.52.0 to 0.54.0 (#12037) 2024-03-07 16:36:28 -08:00
nu-table Introduce workspace dependencies (#12043) 2024-03-07 14:40:31 -08:00
nu-term-grid Bump version to 0.91.1 (#12085) 2024-03-06 23:08:14 +01:00
nu-test-support Update tests Playground (#12134) 2024-03-08 20:31:21 -08:00
nu-utils Introduce workspace dependencies (#12043) 2024-03-07 14:40:31 -08:00
README.md

Nushell core libraries and plugins

These sub-crates form both the foundation for Nu and a set of plugins which extend Nu with additional functionality.

Foundational libraries are split into two kinds of crates:

  • Core crates - those crates that work together to build the Nushell language engine
  • Support crates - a set of crates that support the engine with additional features like JSON support, ANSI support, and more.

Plugins are likewise also split into two types:

  • Core plugins - plugins that provide part of the default experience of Nu, including access to the system properties, processes, and web-connectivity features.
  • Extra plugins - these plugins run a wide range of different capabilities like working with different file types, charting, viewing binary data, and more.