[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-498":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":23,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":31,"discoverSource":32},498,"sway","FuelLabs\u002Fsway","FuelLabs","🌴 Empowering everyone to build reliable and efficient smart contracts.","https:\u002F\u002Fdocs.fuel.network\u002Fdocs\u002Fsway\u002F",null,"Rust",61638,5421,295,867,0,2,4,45,"Apache License 2.0",false,"master",true,[25,26,27,5],"compiler","fuel","language","2026-06-12 02:00:14","# Sway\n\n[![build](https:\u002F\u002Fgithub.com\u002FFuelLabs\u002Fsway\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002FFuelLabs\u002Fsway\u002Factions\u002Fworkflows\u002Fci.yml)\n[![crates.io](https:\u002F\u002Fimg.shields.io\u002Fcrates\u002Fv\u002Fforc?label=latest)](https:\u002F\u002Fcrates.io\u002Fcrates\u002Fforc)\n[![docs](https:\u002F\u002Fdocs.rs\u002Fforc\u002Fbadge.svg)](https:\u002F\u002Fdocs.rs\u002Fforc\u002F)\n[![twitter](https:\u002F\u002Fimg.shields.io\u002Ftwitter\u002Ffollow\u002FSwayLang)](https:\u002F\u002Fx.com\u002FSwayLang)\n[![discord](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fchat%20on-discord-orange?&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https:\u002F\u002Fdiscord.gg\u002FxfpK4Pe)\n\nSway is a language developed for the [Fuel](https:\u002F\u002Fdocs.fuel.network\u002Fdocs\u002Fintro\u002Fwhat-is-fuel\u002F) 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:\u002F\u002Ffuellabs.github.io\u002Fsway\u002Flatest\u002F>.\n\nFor Sway Standard library documentation, see: \u003Chttps:\u002F\u002Ffuellabs.github.io\u002Fsway\u002Fmaster\u002Fstd\u002F>\n\nAlso view the technical reference for the Sway programming language: \u003Chttps:\u002F\u002Ffuellabs.github.io\u002Fsway\u002Fmaster\u002Freference\u002F>\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:\u002F\u002Fwww.rust-lang.org\u002Ftools\u002Finstall>. 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 `~\u002F.profile` and restarting the shell session.\n\n```sh\nexport PATH=\"${HOME}\u002F.cargo\u002Fbin:${PATH}\"\n```\n\n### Building Forc\n\nClone the repository and build the Sway toolchain:\n\n```sh\ngit clone git@github.com:FuelLabs\u002Fsway.git\ncd sway\ncargo build\n```\n\nConfirm the Sway toolchain built successfully:\n\n```sh\ncargo run --bin forc -- --help\n```\n\n## All other scripts\u002Fcommands\n\nFor all other scripts and commands use https:\u002F\u002Fgithub.com\u002Fcasey\u002Fjust:\n\n```\n> just --list\nAvailable recipes:\n    [automation]\n    update-contract-ids\n    update-fuel-dependencies\n\n    [benchmark]\n    benchmark\n    benchmark-tests\n    collect-gas-usage\n\n    [build]\n    build-highlightjs\n    build-prism\n    generate-sway-lib-std\n\n    [ci]\n    ci-check\n    install-ci-check\n\n    [test]\n    test-forc-fmt-check-panic\n```\n\n## Contributing to Sway\n\nWe welcome contributions to Sway!\n\nPlease see the [Contributing To Sway](https:\u002F\u002Ffuellabs.github.io\u002Fsway\u002Fmaster\u002Fbook\u002Freference\u002Fcontributing_to_sway.html) section of the Sway book for guidelines and instructions to help you get started.\n","Sway 是一种专为 Fuel 区块链设计的编程语言，旨在为智能合约开发提供可靠性和高效性。它深受 Rust 语言的影响，结合了现代化的语言特性和高性能优势，特别适用于对安全性与执行效率有高要求的区块链应用场景。Sway 提供了丰富的标准库支持以及详细的官方文档，便于开发者快速上手并构建复杂的去中心化应用。此外，由于其基于 Rust 的特性，Sway 也易于被熟悉 Rust 的开发者所掌握。","2026-06-11 02:36:36","top_all"]