登录 注册
网络与基础设施开发者工具
42,938
Stars
1,359
Forks
121
Watchers
77
Open Issues
Apache-2.0
许可证
Rust
语言
2021-10-31
创建时间
2026-10-19
最近更新

项目能做什么

Fuel Network 的 Rust SDK 开发套件。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# fuels-rs

[![build](https://github.com/FuelLabs/fuels-rs/actions/workflows/ci.yml/badge.svg)](https://github.com/FuelLabs/fuels-rs/actions/workflows/ci.yml)
[![crates.io](https://img.shields.io/crates/v/fuels?label=latest)](https://crates.io/crates/fuels)
[![docs](https://docs.rs/fuels/badge.svg)](https://docs.rs/fuels)
[![discord](https://img.shields.io/badge/chat%20on-discord-orange?&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/xfpK4Pe)

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

- Compiling, deploying, and testing [Sway](https://github.com/FuelLabs/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](https://fuellabs.github.io/fuels-rs/latest/)

## Features

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

## FAQ

### What dependencies do I need?

- [The latest `stable` Rust toolchain](https://docs.fuel.network/guides/installation/#installing-rust);
- [`forc` and `fuel-core` binaries](https://docs.fuel.network/guides/installation/#installing-the-fuel-toolchain-using-fuelup).

### How can I run the SDK tests?

First, build the test projects using `forc`:

```shell
forc build --release --path e2e
```

Then you can run the SDK tests with:

```shell
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:

```shell
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:

```shell
 rustup target add wasm32-unknown-unknown
```

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

```shell
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:

```shell
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](https://github.com/ethers-io/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:

```shell
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.

```shell
mdbook serve --open
```

You can 
阅读完整原文

项目深度分析 AI 生成

Fuel 生态事件索引与 Webhook 监控 SaaS

产品构想针对 fuels-rs 路线图中尚未实现的 'Events querying/monitoring' 特性,提供开箱即用的链上事件捕获、解析与 Webhook 推送服务。
核心功能Sway 合约 ABI 导入解析、实时事件流监听、自定义 Webhook/邮件/告警通知、历史事件检索与导出。
目标用户基于 Fuel 构建 DApp、NFT 或 DeFi 协议的团队。
难度/周期高 · 2-3 个月 · 成本:中等(Fuel 节点服务器成本、数据库与消息队列云资源)。
收费模式分层订阅制(SaaS),根据月请求量、监控合约数量阶梯收费。
竞争风险官方 fuels-rs 补齐事件监听功能后可能分流部分自建用户;Fuel 生态本身发展受限带来受众规模不足风险。
依据 已验证事实

Fuel Sway 合约云端测试与 CI/CD 平台

产品构想利用 fuels-rs 的本地节点拉起与合约测试能力,封装基于云端的 Sway 合约回归测试、Gas 消耗分析与自动化发布工具。
核心功能一键云端模拟网部署测试、Gas 消耗对比报告、合约安全静态规则扫描、GitHub Action 集成插件。
目标用户Web3 项目方工程团队、Sway 合约审计员与独立开发者。
难度/周期中等 · 1-2 个月 · 成本:低(基础计算服务器、容器化执行沙箱)。
收费模式Freemium 模式,针对私有项目、并发构建数量及高级安全检测功能收费。
竞争风险开发人员更倾向于在本地通过 `cargo test` 免费运行测试,云端方案需要极高的便利性或安全审计附加值。
依据 尚需验证的假设

基于 fuels-rs 的高频套利/清算 Bot 脚手架与托管策略引擎

产品构想基于 fuels-rs 底层手动构建交易脚本(Script)和高效签名能力,构建针对 Fuel DEX/借贷协议的自动化执行引擎模板与云托管服务。
核心功能低延迟 Fuel 交易构建模版、Mempool 监听、多策略组合脚本、私钥安全托管与自动化清算执行。
目标用户Web3 量化交易员、套利团队、DeFi 收益优化者。
难度/周期高 · 2-3 个月 · 成本:中等(低延迟节点部署、风控审计)。
收费模式软件授权费(买断或月付)或策略收益利润抽成。
竞争风险策略存在回撤甚至清算穿仓风险;依赖 Fuel 网络主网生态流动性和交易深度。
依据 AI推测
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
cexco10/FuelLabs-fuels-rs 中文介绍暂未生成
3 -
WeirdclownisSAD/FuelLabs-fuels-rs 中文介绍暂未生成
2 -
yugm9440KarenFaulkner/fuels-rs 中文介绍暂未生成
Forked from https://github.com/FuelLabs/fuels-rs.git
1 Rust
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2021-10-31,近 30 天仍在推送,发布过 100 个 Release
社区活跃Star 42,938 / Fork 1,359 / Issue 77(数据支持,可自行核实)
许可证Apache-2.0
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。