nushell/crates/nu-command/src
Devyn Cairns adf38c7c76
Msgpack commands (#12664)
# Description

I thought about bringing `nu_plugin_msgpack` in, but that is MPL with a
clause that prevents other licenses, so rather than adapt that code I
decided to take a crack at just doing it straight from `rmp` to `Value`
without any `rmpv` in the middle. It seems like it's probably faster,
though I can't say for sure how much with the plugin overhead.

@IanManske I started on a `Read` implementation for `RawStream` but just
specialized to `from msgpack` here, but I'm thinking after release maybe
we can polish it up and make it a real one. It works!

# User-Facing Changes
New commands:

- `from msgpack`
- `from msgpackz`
- `to msgpack`
- `to msgpackz`

# Tests + Formatting
Pretty thorough tests added for the format deserialization, with a
roundtrip for serialization. Some example tests too for both `from
msgpack` and `to msgpack`.

- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`


# After Submitting
- [ ] update release notes
2024-04-26 06:23:16 -05:00
..
bytes Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
charting Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
conversions Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
database Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
date Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
debug Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
env Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
experimental Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
filesystem Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
filters each signature fix (#12666) 2024-04-25 22:47:30 +02:00
formats Msgpack commands (#12664) 2024-04-26 06:23:16 -05:00
generators Fix example wording in seq date (#12665) 2024-04-25 22:12:42 +02:00
hash Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
help Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
math Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
misc Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
network Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
path Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
platform Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
random Range refactor (#12405) 2024-04-06 09:04:56 -05:00
removed Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
shells Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
stor Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
strings Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
system Remove deprecated flags on run-external (#12659) 2024-04-25 14:17:21 +00:00
viewers Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
default_context.rs Msgpack commands (#12664) 2024-04-26 06:23:16 -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 Rename Value::CustomValue to Value::Custom (#12309) 2024-03-27 22:10:56 +01:00