nushell/crates/nu-test-support/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
..
playground Update tests Playground (#12134) 2024-03-08 20:31:21 -08:00
commands.rs Fix unit tests on Android (#10224) 2023-09-05 20:17:34 +12:00
fs.rs fix clippy (#10659) 2023-10-10 03:31:15 +13:00
lib.rs Allow spreading arguments to commands (#11289) 2023-12-28 15:43:20 +08:00
locale_override.rs Remove once_cell dependency from nu-test-support create. (#8568) 2023-03-22 19:36:52 +01:00
macros.rs Msgpack commands (#12664) 2024-04-26 06:23:16 -05:00
playground.rs Update tests Playground (#12134) 2024-03-08 20:31:21 -08:00