This is a library, written in Rust, for serialization & deserialization of data structures used in Cardano's Haskell implementation of Alonzo along with useful utility functions.
- NodeJS WASM package
- Browser (chrome/firefox) WASM package
- Browser (pure JS - no WASM) ASM.js package
Note: This package uses weak references flag from wasm-bindgen.
It uses FinalizationRegistry
under the hood to automatically call "free" for each CSL struct when it is no longer needed. However, use this feature with caution as it may have unpredictable behaviors.
- NodeJS WASM package with GC
- Browser (chrome/firefox) WASM package with GC
- Browser (pure JS - no WASM) ASM.js package with GC
You can find documentation here