Skip to content

Commit fcc0334

Browse files
authored
Merge pull request #2118 from CosmWasm/message-pack
Provide MessagePack serialization
2 parents 6d4aad3 + 1ccc0b5 commit fcc0334

File tree

21 files changed

+7411
-4294
lines changed

21 files changed

+7411
-4294
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,26 @@ and this project adheres to
88

99
## [Unreleased]
1010

11+
### Added
12+
13+
- cosmwasm-std: Add `from_msgpack`, `to_msgpack_vec` and `to_msgpack_binary`.
14+
These functions are meant to be used similarly to their JSON counterparts.
15+
[MessagePack](https://msgpack.org) is a more compact, binary encoding.
16+
([#2118])
17+
18+
[#2118]: https://github.com/CosmWasm/cosmwasm/pull/2118
19+
20+
### Changed
21+
22+
- cosmwasm-std: `Binary`, `HexBinary` and `Checksum` are now encoded as binary
23+
blobs when used together with a "compact" `serde` encoding. A compact encoding
24+
is an encoding that returns `false` from
25+
[`is_human_readable`](https://docs.rs/serde/latest/serde/trait.Serializer.html#method.is_human_readable).
26+
This is to make these types more efficient when used together with the new
27+
[MessagePack](https://msgpack.org) encoding. ([#2118])
28+
29+
[#2118]: https://github.com/CosmWasm/cosmwasm/pull/2118
30+
1131
## [2.1.1] - 2024-07-30
1232

1333
### Fixed

0 commit comments

Comments
 (0)