18 unstable releases (4 breaking)

0.21.2 Jan 8, 2025
0.21.1 Nov 15, 2024
0.21.0 Sep 4, 2024
0.20.1 Jul 31, 2024
0.17.1 Jan 18, 2023

#2 in #multiversx

Download history 509/week @ 2024-10-30 388/week @ 2024-11-06 687/week @ 2024-11-13 673/week @ 2024-11-20 642/week @ 2024-11-27 490/week @ 2024-12-04 998/week @ 2024-12-11 400/week @ 2024-12-18 131/week @ 2024-12-25 337/week @ 2025-01-01 1023/week @ 2025-01-08 922/week @ 2025-01-15 761/week @ 2025-01-22 929/week @ 2025-01-29 758/week @ 2025-02-05 681/week @ 2025-02-12

3,234 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

~69–440KB