Fuel Network Rust SDK
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 e2eThen you can run the SDK tests with:
cargo testYou 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-outputYou need to have wasm32 as a target, if you don't already:
rustup target add wasm32-unknown-unknownYou also need wasm-pack, if you don't already:
cargo install wasm-packNavigate to packages/wasm-tests and run wasm-pack test.
masterBefore doing anything else, try all these commands:
cargo clean
rm Cargo.lock
forc build --release --path e2e
cargo testfuels 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 mdbookNext, 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 --openYou can build the book by running:
mdbook buildsecurity
add context to errors throughtout the sdk
Add multiple RPCs support to the providers
Renaming Sway imports causes abigen!() macro to fail
Support unknown policies during deserialization of the transaction
Add clippy check for overflowing arithmetic
add `u128` to the configurables tests
refactor how we expose the base asset to the user
Add a way to try to convert a transaction error into contract errors if present
Minimize the uniqueness of bytecodes