Skip to content

Commit

Permalink
Fix remote serialize to use named fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
dtzxporter committed Jun 30, 2024
1 parent f470aaf commit 92678ba
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

### Fixed

# 0.1.30

### Fixed
- Use named field for remote protocol to fix serialize issue.

# 0.1.29

### Added
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ tracing = { version = "0.1", default-features = false, features = ["std"] }
tracing-subscriber = "0.3"
dashmap = "6.0.1"

hydra-macros = { version = "0.1.29", path = "./hydra-macros" }
hydra = { version = "0.1.29", path = "./hydra", default-features = false }
hydra-macros = { version = "0.1.30", path = "./hydra-macros" }
hydra = { version = "0.1.30", path = "./hydra", default-features = false }

[profile.release]
lto = "fat"
Expand Down
2 changes: 1 addition & 1 deletion hydra-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hydra-macros"
version = "0.1.29"
version = "0.1.30"
edition = "2021"
license.workspace = true
repository.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion hydra-websockets/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hydra-websockets"
version = "0.1.29"
version = "0.1.30"
edition = "2021"
readme = "./README.md"
license.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion hydra/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hydra"
version = "0.1.29"
version = "0.1.30"
edition = "2021"
readme.workspace = true
license.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion hydra/src/serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use serde::Serialize;

/// Serializes a value.
pub fn serialize_value<T: Serialize>(value: &T) -> Vec<u8> {
rmp_serde::to_vec(value).unwrap()
rmp_serde::to_vec_named(value).unwrap()
}

/// Deserializes a value.
Expand Down

0 comments on commit 92678ba

Please sign in to comment.