The Webb Core SDK for Rust
⚠️ Beta Software ⚠️
Use the subxt-cli
tool to download the metadata for your target runtime from a node.
Install:
bash
cargo install subxt-cli
To Save the metadata of tangle
:
Run the release build of the tangle
node, then on another terminal run:
bash
subxt metadata -f bytes > ./metadata/tangle-runtime.scale
Same goes for any future runtimes.
Note: This defaults to querying the metadata of a locally running node on the default
http://localhost:9933/
. If querying a different node then themetadata
command accepts a--url
argument.
bash
cargo build --features generate-substrate
Tip: See the build.rs file to see how everything is being generated.
bash
cargo build --features generate-contracts
Tip: See the build.rs file to see how everything is being generated.
nix develop
to enter a shell with all the dependencies installedAdditionally, if you have direnv installed, you can run direnv allow
to automatically enter the shell whenever you enter the directory.
This crate uses #![deny(unsafe_code)]
to ensure everything is implemented in
100% Safe Rust.
Want to join us? take a look at some of these issues:
Licensed under Apache License v2.0.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache license, shall be licensed as above, without any additional terms or conditions.