Package Exports
- @emurgo/cardano-serialization-lib-nodejs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@emurgo/cardano-serialization-lib-nodejs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Cardano Serialization Lib
WARNING this library is experimental.
This is a library for serialization & deserialization of data structures used in Cardano's Haskell implementation of Shelley along with useful utility functions.
Serialization/deserialization code is generated automatically from the CDDL specification using cddl-codegen.
This code is available in:
- Native Rust (this repository)
- React-Native mobile bindings
- nodejs WASM package
- browser WASM package
If you are looking for legacy bindings, you can find them at the following:
Original specs
Here are the location of the original CDDL specifications:
Building
If you need to install Rust, do the following:
curl https://sh.rustup.rs -sSf | sh -s -- -y
echo 'export PATH=$HOME/.cargo/bin/:$PATH' >> $BASH_ENV
rustup install stable
rustup target add wasm32-unknown-unknown --toolchain stable
To build this repository, do the following:
git submodule update --init --recursive
nvm install && nvm use
npm run rust:build-nodejs
npm install
Testing
npm run rust:test
npm run js:test
Publishing
npm run js:publish-nodejs
npm run js:publish-browser