nushell/crates/nu-command/src
Stefan Holderbach ec528c0626
Refactor source cache into CachedFile struct (#12240)
# Description
Get rid of two parallel `Vec`s in `StateDelta` and `EngineState`, that
also duplicated span information. Use a struct with documenting fields.

Also use `Arc<str>` and `Arc<[u8]>` for the allocations as they are
never modified and cloned often (see #12229 for the first improvement).
This also makes the representation more compact as no capacity is
necessary.

# User-Facing Changes
API breakage on `EngineState`/`StateWorkingSet`/`StateDelta` that should
not really affect plugin authors.
2024-03-20 19:43:50 +01:00
..
bytes Debugger experiments (#11441) 2024-03-08 20:21:35 +02:00
charting Fix histogram error message (#12197) 2024-03-13 19:00:45 +01:00
conversions Fix broken build: replace value_string() straggler (#12237) 2024-03-19 07:52:49 -05:00
database Make custom value type handling more consistent (#12230) 2024-03-19 11:09:59 +01:00
date Adjust examples in date commands (#12055) 2024-03-03 15:10:50 -06:00
debug Refactor source cache into CachedFile struct (#12240) 2024-03-20 19:43:50 +01:00
env IO and redirection overhaul (#11934) 2024-03-14 15:51:55 -05:00
experimental Bump windows from 0.48.0 to 0.52.0 (#11325) 2023-12-21 18:49:15 +01:00
filesystem Adjust permissions using umask in mkdir (#12207) 2024-03-14 16:43:42 -05:00
filters Fix zip signature to mention closure input type (#12216) 2024-03-16 16:01:09 -05:00
formats Fix usage of --tabs flag while converting to json (#12115) (#12251) 2024-03-20 11:55:51 -05:00
generators IO and redirection overhaul (#11934) 2024-03-14 15:51:55 -05:00
hash adjust some commansd input_output type (#11436) 2024-01-15 16:58:26 +08:00
help Fix ignored clippy lints (#12160) 2024-03-11 19:46:04 +01:00
math allow math avg to work with durations (#11598) 2024-01-21 08:41:23 -06:00
misc IO and redirection overhaul (#11934) 2024-03-14 15:51:55 -05:00
network Fix ignored clippy lints (#12160) 2024-03-11 19:46:04 +01:00
path Add Value::coerce_str (#11885) 2024-02-18 17:47:10 +01:00
platform Fix inaccurate sleep duration (#12235) 2024-03-20 16:45:33 +08:00
random Name the Value conversion functions more clearly (#11851) 2024-02-17 18:14:16 +00:00
removed Enforce required, optional, and rest positional arguments start with an uppercase and end with a period. (#11285) 2023-12-15 14:32:37 +08:00
shells Enforce required, optional, and rest positional arguments start with an uppercase and end with a period. (#11285) 2023-12-15 14:32:37 +08:00
stor Add Value::coerce_str (#11885) 2024-02-18 17:47:10 +01:00
strings remove str escape-glob command (#12241) 2024-03-20 14:15:02 +01:00
system Make EngineState clone cheaper with Arc on all of the heavy objects (#12229) 2024-03-19 19:07:00 +01:00
viewers IO and redirection overhaul (#11934) 2024-03-14 15:51:55 -05:00
default_context.rs remove str escape-glob command (#12241) 2024-03-20 14:15:02 +01:00
example_test.rs Add interleave command for reading multiple streams in parallel (#11955) 2024-03-01 16:56:37 -06:00
lib.rs Simplify the feature gates for stor commands (#11416) 2023-12-24 13:31:46 +01:00
progress_bar.rs remove cp-old (#11622) 2024-01-24 07:38:15 +08:00
sort_utils.rs Add Value::coerce_str (#11885) 2024-02-18 17:47:10 +01:00