Crates.io | cargo-rusnap |
lib.rs | cargo-rusnap |
version | 0.1.1 |
source | src |
created_at | 2023-10-04 10:32:24.641768 |
updated_at | 2023-10-04 11:11:55.416013 |
description | Cargo tool for Rusnap |
homepage | |
repository | https://github.com/tiannian/rusnap |
max_upload_size | |
id | 992090 |
size | 20,770 |
Build Metamask Snap use Rust.
Install cargo-rusnap
.
cargo install rusnap
Please install these dependencies.
cargo rusnap new rusnap-pkg
# Build dev mode in default
cargo rusnap build
# Build release mode
cargo rusnap build --release
cargo rusnap start
Then you can load snap in metamask.
Execute these js statement in broswer devtool:
window.ethereum.request({
method: "wallet_requestSnaps",
params: { "local:http://localhost:8080": {} },
});
Or use Metamask Snap Debug Tool.