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

#1 in #elrond

Download history 68/week @ 2024-07-22 261/week @ 2024-07-29 80/week @ 2024-08-05 109/week @ 2024-08-12 35/week @ 2024-08-19 107/week @ 2024-08-26 90/week @ 2024-09-02 103/week @ 2024-09-09 94/week @ 2024-09-16 228/week @ 2024-09-23 124/week @ 2024-09-30 8/week @ 2024-10-07 95/week @ 2024-10-14 56/week @ 2024-10-21 148/week @ 2024-10-28 108/week @ 2024-11-04

408 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–670KB
~11K SLoC