17 unstable releases (4 breaking)

new 0.21.1 Nov 15, 2024
0.20.1 Jul 31, 2024
0.18.6 Feb 2, 2024
0.18.3 Dec 18, 2023
0.17.1 Jan 18, 2023

#36 in Magic Beans

Download history 1066/week @ 2024-07-29 914/week @ 2024-08-05 783/week @ 2024-08-12 948/week @ 2024-08-19 1321/week @ 2024-08-26 963/week @ 2024-09-02 559/week @ 2024-09-09 702/week @ 2024-09-16 685/week @ 2024-09-23 987/week @ 2024-09-30 564/week @ 2024-10-07 656/week @ 2024-10-14 715/week @ 2024-10-21 454/week @ 2024-10-28 524/week @ 2024-11-04 550/week @ 2024-11-11

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

~70–440KB