20 releases

0.22.1 May 26, 2025
0.22.0 Mar 11, 2025
0.21.2 Jan 8, 2025
0.21.1 Nov 15, 2024
0.17.1 Jan 18, 2023

#4 in #multiversx

Download history 650/week @ 2025-02-19 1194/week @ 2025-02-26 747/week @ 2025-03-05 1169/week @ 2025-03-12 766/week @ 2025-03-19 566/week @ 2025-03-26 424/week @ 2025-04-02 697/week @ 2025-04-09 430/week @ 2025-04-16 829/week @ 2025-04-23 526/week @ 2025-04-30 614/week @ 2025-05-07 421/week @ 2025-05-14 594/week @ 2025-05-21 277/week @ 2025-05-28 391/week @ 2025-06-04

1,839 downloads per month
Used in 22 crates (6 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

~135–370KB