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.
Hi @klntsky ! Thanks it's good idea to consider merging CSL into one package at least for nodejs and browser version. It's not priority for us now, but we will consider it.
cc @vsubhuman
browser
field in apackage.json
allows to point the bundler to an alternative source specifically when bundling for the browser.Therefore, CSL could be distributed as a single NPM package instead of
-nodejs
and-browser
versions.For example, we vendored CSL and did exactly that:
https://www.npmjs.com/package/@mlabs-haskell/cardano-serialization-lib-gc - see source
package.json