nushell/crates/nu-command/src
Filip Andersson b70766e6f5
Boxes record for smaller Value enum. (#12252)
<!--
if this PR closes one or more issues, you can automatically link the PR
with
them by using one of the [*linking
keywords*](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword),
e.g.
- this PR should close #xxxx
- fixes #xxxx

you can also mention related issues, PRs or discussions!
-->

# Description
<!--
Thank you for improving Nushell. Please, check our [contributing
guide](../CONTRIBUTING.md) and talk to the core team before making major
changes.

Description of your pull request goes here. **Provide examples and/or
screenshots** if your changes affect the user experience.
-->
Boxes `Record` inside `Value` to reduce memory usage, `Value` goes from
`72` -> `56` bytes after this change.
# User-Facing Changes
<!-- List of all changes that impact the user experience here. This
helps us keep track of breaking changes. -->

# Tests + Formatting
<!--
Don't forget to add tests that cover your changes.

Make sure you've run and fixed any issues with these commands:

- `cargo fmt --all -- --check` to check standard code formatting (`cargo
fmt --all` applies these changes)
- `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used` to
check that you're using the standard code style
- `cargo test --workspace` to check that all tests pass (on Windows make
sure to [enable developer
mode](https://learn.microsoft.com/en-us/windows/apps/get-started/developer-mode-features-and-debugging))
- `cargo run -- -c "use std testing; testing run-tests --path
crates/nu-std"` to run the tests for the standard library

> **Note**
> from `nushell` you can also use the `toolkit` as follows
> ```bash
> use toolkit.nu # or use an `env_change` hook to activate it
automatically
> toolkit check pr
> ```
-->

# After Submitting
<!-- If your PR had any user-facing changes, update [the
documentation](https://github.com/nushell/nushell.github.io) after the
PR is merged, if necessary. This will help us keep the docs up to date.
-->
2024-03-26 17:17:44 +02:00
..
bytes Debugger experiments (#11441) 2024-03-08 20:21:35 +02:00
charting Boxes record for smaller Value enum. (#12252) 2024-03-26 17:17:44 +02:00
conversions Boxes record for smaller Value enum. (#12252) 2024-03-26 17:17:44 +02:00
database Initial --params implementation (#12249) 2024-03-24 15:40:21 -05: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 Boxes record for smaller Value enum. (#12252) 2024-03-26 17:17:44 +02:00
experimental Bump windows from 0.48.0 to 0.52.0 (#11325) 2023-12-21 18:49:15 +01:00
filesystem cleanup coreutils tagging (#12286) 2024-03-25 17:13:46 -05:00
filters Boxes record for smaller Value enum. (#12252) 2024-03-26 17:17:44 +02:00
formats Boxes record for smaller Value enum. (#12252) 2024-03-26 17:17:44 +02: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 Boxes record for smaller Value enum. (#12252) 2024-03-26 17:17:44 +02:00
math Boxes record for smaller Value enum. (#12252) 2024-03-26 17:17:44 +02:00
misc IO and redirection overhaul (#11934) 2024-03-14 15:51:55 -05:00
network Boxes record for smaller Value enum. (#12252) 2024-03-26 17:17:44 +02:00
path ls, rm, cp, open, touch, mkdir: Don't expand tilde if input path is quoted string or a variable. (#12232) 2024-03-25 10:08:38 +08: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 Initial --params implementation (#12249) 2024-03-24 15:40:21 -05:00
strings Change default algorithm in detect columns (#12277) 2024-03-26 13:57:55 +08:00
system cleanup coreutils tagging (#12286) 2024-03-25 17:13:46 -05:00
viewers Boxes record for smaller Value enum. (#12252) 2024-03-26 17:17:44 +02:00
default_context.rs Initial implementation for uutils uname (#11684) 2024-03-25 16:51:50 -05:00
example_test.rs Initial --params implementation (#12249) 2024-03-24 15:40:21 -05:00
lib.rs Initial --params implementation (#12249) 2024-03-24 15:40:21 -05: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