foundry-rs / foundry-rs/foundry
Add `forge check`
- Dominant language
- Rust
- Stars
- 10.6k
- Forks
- 2.6k
- Avg merge
- 18h 20m
- Merged PRs (30d)
- 510
Description
### Component
Other (please describe)
### Describe the feature you would like
`forge check` would be a command like `cargo check` that parses, lowers and performs semantic analysis. If `cargo check` passes, you have a high degree of confidence that your code will build, and `forge check` would do the same. The difference between `check` commands and `build` commands is that `check` commands skip codegen and optimizer steps.
There is a caveat for `forge check`, which is that it would not perform a stack scheduling algorithm, and as such, cannot provide a 100% guarantee that code builds because of that.
This is blocked by typechecking in Solar.
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.