sway

🌴 Empowering everyone to build reliable and efficient smart contracts.

Github星跟踪图

Sway

build
crates.io
docs
twitter
discord

Sway is a language developed for the Fuel blockchain. It is heavily inspired by Rust and aims to bring modern language development and performance to the blockchain ecosystem.

Documentation

For user documentation, including installing release builds, see the Sway Book: https://fuellabs.github.io/sway/latest/.

For Sway Standard library documentation, see: https://fuellabs.github.io/sway/master/std/

Also view the technical reference for the Sway programming language: https://fuellabs.github.io/sway/master/reference/

Building from Source

This section is for developing the Sway compiler and toolchain. For developing contracts and using Sway, see the above documentation section.

Dependencies

Sway is built in Rust. To begin, install the Rust toolchain following instructions at https://www.rust-lang.org/tools/install. Then configure your Rust toolchain to use Rust stable:

rustup default stable

If not already done, add the Cargo bin directory to your PATH by adding the following line to ~/.profile and restarting the shell session.

export PATH="${HOME}/.cargo/bin:${PATH}"

Building Forc

Clone the repository and build the Sway toolchain:

git clone git@github.com:FuelLabs/sway.git
cd sway
cargo build

Confirm the Sway toolchain built successfully:

cargo run --bin forc -- --help

Contributing to Sway

We welcome contributions to Sway!

Please see the Contributing To Sway section of the Sway book for guidelines and instructions to help you get started.

主要指标

概览
名称与所有者FuelLabs/sway
主编程语言Rust
编程语言 (语言数: 8)
平台
许可证Apache License 2.0
所有者活动
创建于2021-01-20 04:54:33
推送于2025-11-14 00:35:55
最后一次提交2025-11-13 01:16:20
发布数186
最新版本名称v0.70.1 (发布于 )
第一版名称v0.0.1 (发布于 )
用户参与
星数62.1k
关注者数300
派生数5.4k
提交数3.5k
已启用问题?
问题数3339
打开的问题数863
拉请求数3596
打开的拉请求数41
关闭的拉请求数466
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?