Skip to content

Commit 92678ba

Browse files
committed
Fix remote serialize to use named fields.
1 parent f470aaf commit 92678ba

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66

77
### Fixed
88

9+
# 0.1.30
10+
11+
### Fixed
12+
- Use named field for remote protocol to fix serialize issue.
13+
914
# 0.1.29
1015

1116
### Added

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ tracing = { version = "0.1", default-features = false, features = ["std"] }
3333
tracing-subscriber = "0.3"
3434
dashmap = "6.0.1"
3535

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

3939
[profile.release]
4040
lto = "fat"

hydra-macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "hydra-macros"
3-
version = "0.1.29"
3+
version = "0.1.30"
44
edition = "2021"
55
license.workspace = true
66
repository.workspace = true

hydra-websockets/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "hydra-websockets"
3-
version = "0.1.29"
3+
version = "0.1.30"
44
edition = "2021"
55
readme = "./README.md"
66
license.workspace = true

hydra/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "hydra"
3-
version = "0.1.29"
3+
version = "0.1.30"
44
edition = "2021"
55
readme.workspace = true
66
license.workspace = true

hydra/src/serialize.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use serde::Serialize;
55

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

1111
/// Deserializes a value.

0 commit comments

Comments
 (0)