MyGit

FuelLabs/fuels-rs

Fork: 1343 Star: 44040 (更新于 2024-11-17 23:35:16)

license: Apache-2.0

Language: Rust .

Fuel Network Rust SDK

最后发布版本: v0.66.4 ( 2024-09-06 22:25:31)

官方网址 GitHub网址

fuels-rs

build crates.io docs discord

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?

How can I run the SDK tests?

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

How to run WASM tests?

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.

What to do if my tests are failing on master

Before doing anything else, try all these commands:

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:

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

最近版本更新:(数据更新于 2024-09-20 09:31:47)

2024-09-06 22:25:31 v0.66.4

2024-09-05 05:17:44 v0.66.3

2024-08-21 02:32:44 v0.66.2

2024-08-17 07:01:44 v0.66.1

2024-08-10 07:30:34 v0.66.0

2024-07-11 23:58:52 v0.65.1

2024-07-10 05:56:15 v0.65.0

2024-06-15 12:04:12 v0.64.0

2024-06-11 16:38:45 v0.63.1

2024-06-01 00:21:58 v0.63.0

FuelLabs/fuels-rs同语言 Rust最近更新仓库

2024-11-23 21:43:05 gleam-lang/gleam

2024-11-22 05:42:56 lanyeeee/jmcomic-downloader

2024-11-19 08:50:55 lapce/lapce

2024-11-11 22:51:00 tauri-apps/tauri

2024-11-11 07:55:30 dani-garcia/vaultwarden

2024-11-09 16:42:37 rustdesk/rustdesk