A default implementation of the Delano UI using wurbo
.
Don't like the look of it? You will be able to fork the HTML templates and modify it to your liking.
This crate is just the User Interface to interact with the delano-wallet
Application Binary Interface (ABI) and display the resulting data.
To use this crate, you will need to provide delano-wit
(or your fork of it) as an import dependency when using wasm-tools
to compose your app together like this:
wasm-tools compose ...
A reference composed app is available here.
Tests in ./tests/mod.rs
can be run with:
cargo test
These tests use wasmtime to run the WIT component in Rust, and depend on the .wit
dependencies in the wit
folder, which have been copied over from their source folder. If the dependencies changes, then these copies also need to be updated for the tests to run as intended.
Build the component with:
cargo component build
Compile your Tailwindcss into ./style/output.css
:
npx tailwindcss -i ./style/input.css -o ./style/output.css --watch
then run the component using rollup-plugin-wit-component
. See Example for example usage. Unfortunately because of the way Vite handle wasm that compiles wasm, vite dev
mode cannot be used and the code must be built every time.