🌴 Empowering everyone to build reliable and efficient smart contracts.
Find a file
Yash Jagtap 8fe2bd6ed2
fix: typos cleanup (#6799)
## Description
fixed 3 typos

## Checklist

- [x] I have commented my code, particularly in hard-to-understand
areas.
- [x] I have updated the documentation where relevant (API docs, the
reference, and the Sway book).
- [x] I have done my best to ensure that my PR adheres to [the Fuel Labs
Code Review
Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md).
- [x] I have requested a review from the relevant team or maintainers.
2025-01-06 11:38:00 +11:00
.devcontainer Create devcontainer.json (#4377) 2023-06-06 00:53:23 +03:00
.github Add verifications-complete job (#6716) 2024-11-13 16:05:45 +11:00
.vscode Fix function_cache garbage collection bug (#6555) 2024-09-18 09:18:02 +01:00
deployment Update rust version in forc docker image (#6422) 2024-08-16 22:35:28 +00:00
docs fix: typos cleanup (#6799) 2025-01-06 11:38:00 +11:00
examples Fix module visibility check (#6685) 2024-11-15 05:59:45 +01:00
forc feat: add function for generating bytecode identifier (#6674) 2024-11-19 08:49:41 -08:00
forc-pkg Forc.toml metadata support (#6728) 2024-11-19 16:48:32 +13:00
forc-plugins typo-Update deploy.rs (#6783) 2024-12-12 15:33:16 +11:00
forc-test forc test single-step until jump point instead of patching binary (#6731) 2024-11-22 08:02:21 -03:00
forc-tracing chore: remove unmaintained ansi_term in favor of ansiterm (#6696) 2024-11-06 01:42:25 -08:00
forc-util Add comments about bytecode test files (#6741) 2024-11-20 15:11:55 +11:00
scripts Move all crate dependencies to the workspace Cargo.toml (#6179) (#6563) 2024-09-21 09:48:34 +10:00
sway-ast Implement Serde for AstNode types (#6605) 2024-12-02 09:48:45 +11:00
sway-core Associate lexical scopes with their respective declarations. (#6780) 2024-12-11 15:56:09 +11:00
sway-error Fix handling of associated constants in ABI/traits (#6768) 2024-12-04 15:15:08 +00:00
sway-features Storage domains (#6466) 2024-11-15 04:46:56 +01:00
sway-ir Storage domains (#6466) 2024-11-15 04:46:56 +01:00
sway-lib-core Make OrdEq trait public (#6723) 2024-11-15 13:17:02 +07:00
sway-lib-std Update output_asset_to() and output_asset_id() to handle Output::Variable (#6781) 2024-12-12 08:26:49 +01:00
sway-lsp Implement hierarchical trait map and namespace lookups. (#6516) 2024-12-02 20:01:12 +00:00
sway-parse Implement Serde for AstNode types (#6605) 2024-12-02 09:48:45 +11:00
sway-types Implement Serde for AstNode types (#6605) 2024-12-02 09:48:45 +11:00
sway-utils Storage domains (#6466) 2024-11-15 04:46:56 +01:00
swayfmt Fixes qualified call path without as trait. (#6764) 2024-11-29 22:00:33 +00:00
templates chore: bump to v0.66.2 (#6643) 2024-10-16 23:07:23 +11:00
test Update output_asset_to() and output_asset_id() to handle Output::Variable (#6781) 2024-12-12 08:26:49 +01:00
.gitattributes Remove syntax highlighting of Sway files as Rust (#5926) 2024-04-26 11:06:49 -07:00
.gitignore Better error array numerics (#6420) 2024-08-26 13:28:25 +00:00
.markdownlint.yaml add docs CI, rename docs README to index (#4874) 2023-08-09 10:51:10 -06:00
.markdownlintignore add docs CI, rename docs README to index (#4874) 2023-08-09 10:51:10 -06:00
.typos.toml ci: fixing typos programmatically (#5975) 2024-05-09 10:21:32 +10:00
benchmark.sh ci: fixing typos programmatically (#5975) 2024-05-09 10:21:32 +10:00
Cargo.lock chore: bump version to 0.66.5 (#6743) 2024-11-21 09:15:14 +11:00
Cargo.toml chore: bump version to 0.66.5 (#6743) 2024-11-21 09:15:14 +11:00
ci_checks.sh chore: update ci_checks script to represent current ci better (#5934) 2024-04-29 11:02:51 +00:00
clippy.toml
LICENSE
README.md docs: added a link to the Fuel blockchain (#6574) 2024-09-21 00:15:15 +00:00
rustfmt.toml
SECURITY.md feat: update security policy 2024-08-21 16:06:11 -07:00
update_fuel_dependencies.sh chore: add a script to bump all fuel maintained dependencies (#6684) 2024-11-03 22:20:09 -08:00

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/.

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.