19 unstable releases (5 breaking)

new 0.22.0 Mar 11, 2025
0.21.1 Nov 15, 2024
0.20.1 Jul 31, 2024
0.18.6 Feb 2, 2024
0.17.1 Jan 18, 2023

#2 in #multiversx

Download history 721/week @ 2024-11-18 644/week @ 2024-11-25 466/week @ 2024-12-02 927/week @ 2024-12-09 584/week @ 2024-12-16 218/week @ 2024-12-23 208/week @ 2024-12-30 1039/week @ 2025-01-06 817/week @ 2025-01-13 866/week @ 2025-01-20 804/week @ 2025-01-27 747/week @ 2025-02-03 654/week @ 2025-02-10 709/week @ 2025-02-17 1076/week @ 2025-02-24 636/week @ 2025-03-03

3,146 downloads per month
Used in 21 crates (5 directly)

GPL-3.0-only

125KB
3.5K SLoC

Smart contract standard codec

crates.io

Lightweight binary serializer/deserializer, written especially for MultiversX smart contracts.

Designed to:

  • produce minimal WASM bytecode
  • be fast
  • avoid data copy as much as possible

Largely inspired by the Parity SCALE codec, but a completely different format and implementation.

For more info about the serialization format, see the developer reference.

no-std

Being designed for MultiversX smart contracts, it needs to be able to run in a no-std environment.

It is also safe to run in a regular std environment.

The types provided by default all work without an allocator. To use an allocator, pass feature flag "alloc".

Dependencies

~145–380KB