The mutiny node that powers the mutiny web frontend.
The web front end imports the NPM package that this project creates here.
A flake.nix
file has been added for easier nix development and testing. Pretty much all cargo / wasm commands work,
though right now optimized for aarch64-unknown-linux-gnu
and wasm32-unknown-unknown
compilation in the nix shell.
To start:
nix develop
Then the following just
examples that work:
just clippy-nix
just test-nix
just pack
just release
See the discussion here: rust-bitcoin/rust-secp256k1#283
You may have to either prefix some environment variables or set them in your env or shell file:
AR=/opt/homebrew/opt/llvm/bin/llvm-ar CC=/opt/homebrew/opt/llvm/bin/clang
-
rust (specifically, nightly:
rustup toolchain install nightly-2024-09-19
andrustup target add wasm32-unknown-unknown --toolchain nightly
)
cargo install wasm-pack
brew install chromedriver
Get all the dependencies above first.
Build the rust wasm stuff:
just pack
To run the local tests you can simply use
just test
This project was initially forked from mutiny-node. We are grateful for the solid work done by the original contributors.