{"id":13477834,"url":"https://github.com/FuelLabs/sway","last_synced_at":"2025-03-27T06:31:07.003Z","repository":{"id":36984572,"uuid":"331107018","full_name":"FuelLabs/sway","owner":"FuelLabs","description":"🌴 Empowering everyone to build reliable and efficient smart contracts.","archived":false,"fork":false,"pushed_at":"2025-03-21T19:34:17.000Z","size":94109,"stargazers_count":62391,"open_issues_count":861,"forks_count":5382,"subscribers_count":312,"default_branch":"master","last_synced_at":"2025-03-21T19:36:53.891Z","etag":null,"topics":["compiler","fuel","language","sway"],"latest_commit_sha":null,"homepage":"https://docs.fuel.network/docs/sway/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FuelLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-19T20:54:33.000Z","updated_at":"2025-03-21T18:20:20.000Z","dependencies_parsed_at":"2023-10-02T18:53:37.537Z","dependency_job_id":"a0032274-c819-4a95-905a-c034bc5bd2f1","html_url":"https://github.com/FuelLabs/sway","commit_stats":{"total_commits":2137,"total_committers":94,"mean_commits":22.73404255319149,"dds":0.8535329901731399,"last_synced_commit":"d211a4a8f651db07d7a005cb2ffa269af7fb7225"},"previous_names":[],"tags_count":167,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuelLabs%2Fsway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuelLabs%2Fsway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuelLabs%2Fsway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuelLabs%2Fsway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FuelLabs","download_url":"https://codeload.github.com/FuelLabs/sway/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245797342,"owners_count":20673835,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compiler","fuel","language","sway"],"created_at":"2024-07-31T16:01:48.250Z","updated_at":"2025-03-27T06:31:01.992Z","avatar_url":"https://github.com/FuelLabs.png","language":"Rust","funding_links":[],"categories":["Rust","Layer 2","区块链、智能合约","Web3 and ZKP Framework","language"],"sub_categories":["Fuel","网络服务_其他"],"readme":"# Sway\n\n[![build](https://github.com/FuelLabs/sway/actions/workflows/ci.yml/badge.svg)](https://github.com/FuelLabs/sway/actions/workflows/ci.yml)\n[![crates.io](https://img.shields.io/crates/v/forc?label=latest)](https://crates.io/crates/forc)\n[![docs](https://docs.rs/forc/badge.svg)](https://docs.rs/forc/)\n[![discord](https://img.shields.io/badge/chat%20on-discord-orange?\u0026logo=discord\u0026logoColor=ffffff\u0026color=7389D8\u0026labelColor=6A7EC2)](https://discord.gg/xfpK4Pe)\n\nSway is a language developed for the [Fuel](https://docs.fuel.network/docs/intro/what-is-fuel/) blockchain. It is heavily inspired by Rust and aims to bring modern language development and performance to the blockchain ecosystem.\n\n## Documentation\n\nFor user documentation, including installing release builds, see the Sway Book: \u003chttps://fuellabs.github.io/sway/latest/\u003e.\n\nFor Sway Standard library documentation, see: \u003chttps://fuellabs.github.io/sway/master/std/\u003e\n\nAlso view the technical reference for the Sway programming language: \u003chttps://fuellabs.github.io/sway/master/reference/\u003e\n\n## Building from Source\n\nThis section is for developing the Sway compiler and toolchain. For developing contracts and using Sway, see the above documentation section.\n\n### Dependencies\n\nSway is built in Rust. To begin, install the Rust toolchain following instructions at \u003chttps://www.rust-lang.org/tools/install\u003e. Then configure your Rust toolchain to use Rust `stable`:\n\n```sh\nrustup default stable\n```\n\nIf not already done, add the Cargo bin directory to your `PATH` by adding the following line to `~/.profile` and restarting the shell session.\n\n```sh\nexport PATH=\"${HOME}/.cargo/bin:${PATH}\"\n```\n\n### Building Forc\n\nClone the repository and build the Sway toolchain:\n\n```sh\ngit clone git@github.com:FuelLabs/sway.git\ncd sway\ncargo build\n```\n\nConfirm the Sway toolchain built successfully:\n\n```sh\ncargo run --bin forc -- --help\n```\n\n## Contributing to Sway\n\nWe welcome contributions to Sway!\n\nPlease see the [Contributing To Sway](https://fuellabs.github.io/sway/master/book/reference/contributing_to_sway.html) section of the Sway book for guidelines and instructions to help you get started.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFuelLabs%2Fsway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFuelLabs%2Fsway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFuelLabs%2Fsway/lists"}