30 releases (15 breaking)

0.16.0 Dec 15, 2022
0.14.0 Oct 13, 2022
0.12.0 Jul 8, 2022
0.10.0 Mar 17, 2022
0.1.1 Jul 18, 2020

#1770 in Magic Beans

Download history 29/week @ 2024-01-20 26/week @ 2024-01-27 20/week @ 2024-02-03 55/week @ 2024-02-10 111/week @ 2024-02-17 203/week @ 2024-02-24 107/week @ 2024-03-02 173/week @ 2024-03-09 143/week @ 2024-03-16 90/week @ 2024-03-23 229/week @ 2024-03-30 137/week @ 2024-04-06 153/week @ 2024-04-13 153/week @ 2024-04-20 141/week @ 2024-04-27 76/week @ 2024-05-04

548 downloads per month
Used in 18 crates (2 directly)

GPL-3.0-only

120KB
3K SLoC

elrond-codec

Lightweight binary serializer/deserializer, written especially for Elrond 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 elrond-wasm smart contracts, it needs to be able to run in a no-std environment.

Dependencies

~150–640KB
~11K SLoC