16 unstable releases (4 breaking)

0.21.0 Sep 4, 2024
0.20.1 Jul 31, 2024
0.19.0 May 10, 2024
0.18.6 Feb 2, 2024
0.17.1 Jan 18, 2023

#4 in #multiversx

Download history 1058/week @ 2024-06-30 796/week @ 2024-07-07 681/week @ 2024-07-14 420/week @ 2024-07-21 1130/week @ 2024-07-28 873/week @ 2024-08-04 826/week @ 2024-08-11 938/week @ 2024-08-18 1178/week @ 2024-08-25 1129/week @ 2024-09-01 524/week @ 2024-09-08 707/week @ 2024-09-15 688/week @ 2024-09-22 966/week @ 2024-09-29 604/week @ 2024-10-06 669/week @ 2024-10-13

2,963 downloads per month
Used in 16 crates (4 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

~70–440KB