18 unstable releases (4 breaking)

new 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

#60 in Magic Beans

Download history 699/week @ 2024-09-20 822/week @ 2024-09-27 735/week @ 2024-10-04 642/week @ 2024-10-11 719/week @ 2024-10-18 449/week @ 2024-10-25 571/week @ 2024-11-01 397/week @ 2024-11-08 742/week @ 2024-11-15 688/week @ 2024-11-22 566/week @ 2024-11-29 688/week @ 2024-12-06 828/week @ 2024-12-13 239/week @ 2024-12-20 161/week @ 2024-12-27 584/week @ 2025-01-03

2,010 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