Code
How fuellabs/sway is laid out, and where to start for common changes.
There is no import map for this report yet.
Where to start reading
- Repository root
- Repository root
- Likely public API
- Likely public API
- Likely start-up file
- Likely start-up file
Find files for a task
AIAdd a New Forc CLI Command
- Create new command handler file in forc/src/cli/commands/
Add a New Compiler Pass or Analysis
- Implement pass logic following existing analysis pattern (e.g., call_graph.rs)
Add a New Forc Plugin
- Create Cargo.toml and src/main.rs with forc-plugin integration
- Register plugin in workspace Cargo.toml members list
Extend Sway Standard Library
- Add new .sw module file in sway-lib-std/src/
- Update sway-lib-std/README.md with documentation
Change the public API
Trace runtime behavior
Add or update tests
Change build or automation
RepoPilot lists up to 500 files, so a file missing here may still exist.
- Files marked “likely” are guessed from their names.