FuelLabs/fuels-rs
Fork: 1284 Star: 44619 (更新于 2024-05-06 13:12:21)
license: Apache-2.0
Language: Rust .
Fuel Network Rust SDK
最后发布版本: v0.57.0 ( 2024-04-11 21:34:11)
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
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 packages/fuels
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 packages/fuels
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 you browser.
mdbook serve --open
You can build the book by running:
mdbook build
最近版本更新:(数据更新于 2024-04-18 15:37:49)
2024-04-11 21:34:11 v0.57.0
2024-03-30 02:27:15 v0.55.1
2024-03-15 22:54:40 v0.56.0
2024-01-30 04:36:59 v0.55.0
2023-12-14 00:28:39 v0.54.0
2023-11-30 07:06:33 v0.53.0
2023-11-20 23:40:19 v0.51.0
2023-11-08 16:26:00 v0.50.1
2023-10-11 05:06:15 v0.49.0
2023-09-12 04:51:22 v0.48.0
FuelLabs/fuels-rs同语言 Rust最近更新仓库
2024-05-10 09:13:14 lapce/lapce
2024-05-10 02:55:38 tauri-apps/tauri
2024-05-08 14:41:38 sharkdp/fd
2024-05-08 14:37:05 succinctlabs/sp1
2024-05-07 20:16:02 tw93/Pake
2024-05-06 09:26:13 apache/opendal