Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
F

fuels-rs

> 编程语言
Open source

Fuel Network Rust SDK

43.1K stars0 likes1 views
WebsiteGitHub

About

Fuel Network Rust SDK

fuels-rs

Rust SDK for Fuel. It can be used for a variety of things, including but not limited to:

  • Compiling, deploying, and testing Sway contracts;
  • Launching a local Fuel network;
  • Crafting and signing transactions with hand-crafted scripts or contract calls;
  • Generating type-safe Rust bindings of contract methods;
  • And more, fuels-rs is still in active development.

Documentation

See the fuels-rs book

Features

  • Launch Fuel nodes
  • Deploy contracts
  • Interact with deployed contracts
  • Type-safe Sway contracts bindings code generation
  • Run Sway scripts
  • CLI for common operations
  • Local test wallets
  • Wallet integration
  • Events querying/monitoring

FAQ

What dependencies do I need?

  • The latest stable Rust toolchain;
  • forc and fuel-core binaries.

How can I run the SDK tests?

First, build the test projects using forc:

bash
forc build --release --path e2e

Then you can run the SDK tests with:

bash
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:

bash
cargo test --test types in_vector -- --show-output

How to run WASM tests?

You need to have wasm32 as a target, if you don't already:

bash
 rustup target add wasm32-unknown-unknown

You also need wasm-pack, if you don't already:

bash
cargo install wasm-pack

Navigate to packages/wasm-tests and run wasm-pack test.

What to do if my tests are failing on master

Before doing anything else, try all these commands:

bash
cargo clean
rm Cargo.lock
forc build --release --path e2e
cargo test

Why is the prefix 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.

How can I run the docs locally?

Install mdbook by running:

bash
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.

bash
mdbook serve --open

You can build the book by running:

bash
mdbook build

Issues· 76 open

View all issuesOpen on GitHub
  • #1716

    security

    Updated Aug 27, 2026
  • #1597

    add context to errors throughtout the sdk

    good first issueUpdated Jun 23, 2026
  • #1701

    Add multiple RPCs support to the providers

    Updated Jan 15, 2026
  • #1703

    Renaming Sway imports causes abigen!() macro to fail

    Updated Nov 25, 2025
  • #1700

    Support unknown policies during deserialization of the transaction

    Updated Nov 3, 2025
  • #1238

    Add clippy check for overflowing arithmetic

    good first issuetech-debtv1.0SecurityUpdated Sep 18, 2025
  • #1367

    add `u128` to the configurables tests

    tech-debtblockedUpdated Aug 25, 2025
  • #1349

    refactor how we expose the base asset to the user

    good first issueUpdated Aug 7, 2025
  • #1680

    Add a way to try to convert a transaction error into contract errors if present

    Updated Aug 7, 2025
  • #1267

    Minimize the uniqueness of bytecodes

    Updated Aug 7, 2025

> Tags

Rust

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言