mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 01:43:47 +01:00
f4940e115f
# Description This changes the serialization of custom values within the plugin protocol to use MessagePack instead of bincode, removing the dependency on bincode entirely. Bincode does not seem to be very maintained anymore, and the externally tagged enum representation doesn't seem to always work now even though it should. Since we use MessagePack already anyway for the plugin protocol, this seems like an obvious choice. This uses the unnamed variant of the serialization rather than the named variant, which is what the plugin protocol in general uses. The unnamed variant does not include field names, which aren't really required here, so this should give us something that's more or less as efficient as bincode is. Should fix #13743. # User-Facing Changes - Will need to recompile plugins (but always do anyway) - Doesn't technically break the plugin protocol (custom value data is a black box / plugin implementation specific), but breaks compatibility between `nu-plugin-engine` and `nu-plugin` so they do need to both be updated to match. # Tests + Formatting All tests pass. # After Submitting - [ ] release notes
28 lines
661 B
TOML
28 lines
661 B
TOML
[package]
|
|
authors = ["The Nushell Project Developers"]
|
|
description = "Protocol type definitions for Nushell plugins"
|
|
repository = "https://github.com/nushell/nushell/tree/main/crates/nu-plugin-protocol"
|
|
edition = "2021"
|
|
license = "MIT"
|
|
name = "nu-plugin-protocol"
|
|
version = "0.97.2"
|
|
|
|
[lib]
|
|
bench = false
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
nu-protocol = { path = "../nu-protocol", version = "0.97.2", features = ["plugin"] }
|
|
nu-utils = { path = "../nu-utils", version = "0.97.2" }
|
|
|
|
rmp-serde = { workspace = true }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
semver = "1.0"
|
|
typetag = "0.2"
|
|
|
|
[features]
|
|
default = ["local-socket"]
|
|
local-socket = []
|