#smart-contracts #blockchain #multiversx

no-std multiversx-sc-codec

Lightweight binary serializer/deserializer, written especially for MultiversX smart contracts

23 releases

Uses new Rust 2024

0.24.0 Dec 18, 2025
0.23.1 Jul 24, 2025
0.22.1 May 26, 2025
0.22.0 Mar 11, 2025
0.17.1 Jan 18, 2023

#3 in #multiversx

Download history 807/week @ 2025-10-16 1078/week @ 2025-10-23 640/week @ 2025-10-30 580/week @ 2025-11-06 543/week @ 2025-11-13 703/week @ 2025-11-20 845/week @ 2025-11-27 805/week @ 2025-12-04 416/week @ 2025-12-11 801/week @ 2025-12-18 354/week @ 2025-12-25 382/week @ 2026-01-01 395/week @ 2026-01-08 482/week @ 2026-01-15 359/week @ 2026-01-22 419/week @ 2026-01-29

1,699 downloads per month
Used in 22 crates (6 directly)

GPL-3.0-only

130KB
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

~125–345KB