Crates.io | fuels |
lib.rs | fuels |
version | 0.66.9 |
source | src |
created_at | 2022-04-29 23:07:58.842442 |
updated_at | 2024-10-15 07:15:26.435899 |
description | Fuel Rust SDK. |
homepage | https://fuel.network/ |
repository | https://github.com/FuelLabs/fuels-rs |
max_upload_size | |
id | 577933 |
size | 8,939 |
Rust SDK for Fuel. It can be used for a variety of things, including but not limited to:
fuels-rs
is still in active development.First, build the test projects using forc
:
forc build --release --path e2e
Then you can run the SDK tests with:
cargo test
You can also run specific tests. The following example will run all integration tests in types.rs
whose names contain in_vector
and show their outputs:
cargo test --test types in_vector -- --show-output
You need to have wasm32 as a target, if you don't already:
rustup target add wasm32-unknown-unknown
You also need wasm-pack
, if you don't already:
cargo install wasm-pack
Navigate to packages/wasm-tests
and run wasm-pack test
.
master
Before doing anything else, try all these commands:
cargo clean
rm Cargo.lock
forc build --release --path e2e
cargo test
fuels
and not fuel
?In order to make the SDK for Fuel feel familiar with those coming from the ethers.js ecosystem, this project opted for an s
at the end. The fuels-*
family of SDKs is inspired by The Ethers Project.
Install mdbook
by running:
cargo install mdbook
Next, navigate to the docs
folder and run the command below to start a local server and open a new tab in your browser.
mdbook serve --open
You can build the book by running:
mdbook build