返回排行榜

🌴 Empowering everyone to build reliable and efficient smart contracts.

swaylanguagecompilerfuel
Star 增长趋势
Star
61.6k
Forks
5.4k
周增长
Issues
871
20k40k60k
2022年1月2023年7月2025年1月2026年7月
制品库crates.iocargo add sway
README

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

All other scripts/commands

For all other scripts and commands use https://github.com/casey/just:

> just --list
Available recipes:
    [automation]
    update-contract-ids
    update-fuel-dependencies

    [benchmark]
    benchmark
    benchmark-tests
    collect-gas-usage

    [build]
    build-highlightjs
    build-prism
    generate-sway-lib-std

    [ci]
    ci-check
    install-ci-check

    [test]
    test-forc-fmt-check-panic

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.

相关仓库
Alexays/Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:

C++MIT Licensewaylandwlroots
11.7k1.1k
AvengeMedia/DankMaterialShell

Desktop shell for wayland compositors built with Quickshell & GO, optimized for niri, hyprland, sway, MangoWC, labwc, and MiracleWM.

QMLMIT Licensequickshelltiling-window-manager
danklinux.com
7.3k452
rvaiya/keyd

A key remapping daemon for linux.

CMIT Licensekeyboardlinux
5.8k267
labwc/labwc

A Wayland window-stacking compositor

CGNU General Public License v2.0wlrootswayland
labwc.github.io
2.7k242
ErikReider/SwayNotificationCenter

A simple GTK based notification daemon for any Wayland compositor

ValaGNU General Public License v3.0linuxnotification
2.5k97
vivien/i3blocks

The hacker-friendly status_command for Sway and i3

CGNU General Public License v3.0swayi3
vivien.github.io/i3blocks/
2.5k184
WillPower3309/swayfx

SwayFX: Sway, but with eye candy!

CMIT Licensecgles2
2.3k109
natpen/awesome-wayland

A curated list of Wayland code and resources.

Creative Commons Zero v1.0 Universalwaylandsway
2.2k97
any1/wayvnc

A VNC server for wlroots based Wayland compositors

CISC Licensevncwayland
1.8k97
linuxmobile/hyprland-dots

A soft-spoken desktop environment. Harmonizing Hyprland’s logic with a gentle, minimalist aesthetic.

HTMLarchlinuxartix
1.7k89
sentriz/cliphist

Wayland clipboard manager with support for multimedia

GoGo ModulesGNU General Public License v3.0clipboard-managersway
1.5k43
jtheoof/swappy

A Wayland native snapshot editing tool, inspired by Snappy on macOS

CMIT Licensewaylandsnapshot
1.5k62