Skip to content
/ sway Public
forked from FuelLabs/sway

🌴 Empowering everyone to build reliable and efficient smart contracts.

License

Notifications You must be signed in to change notification settings

NiNe01O/sway

Folders and files

NameName
Last commit message
Last commit date
Mar 20, 2023
Feb 8, 2023
Apr 1, 2023
Mar 17, 2023
Apr 3, 2023
Apr 3, 2023
Mar 20, 2023
Mar 20, 2023
Mar 20, 2023
Mar 30, 2023
Mar 10, 2023
Mar 20, 2023
Apr 4, 2023
Apr 3, 2023
Apr 2, 2023
Apr 2, 2023
Mar 23, 2023
Apr 3, 2023
Mar 20, 2023
Apr 3, 2023
Mar 20, 2023
Mar 30, 2023
Mar 9, 2023
Apr 3, 2023
Apr 29, 2022
Mar 9, 2023
Aug 15, 2022
Dec 7, 2022
Mar 30, 2023
Mar 20, 2023
Dec 12, 2021
Jan 12, 2023
Feb 21, 2023
Nov 3, 2022
Sep 24, 2021

Repository files navigation

Sway

build crates.io docs 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/.

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 [email protected]: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.

About

🌴 Empowering everyone to build reliable and efficient smart contracts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 97.5%
  • LLVM 1.0%
  • CSS 0.8%
  • JavaScript 0.6%
  • Shell 0.1%
  • Dockerfile 0.0%