foundry-rs / foundry-rs/foundry
feat(`config`): config flag to disallow use of libraries with public methods
Open
A-config
T-feature
- Dominant language
- Rust
- Stars
- 10.6k
- Forks
- 2.6k
- Avg merge
- 18h 20m
- Merged PRs (30d)
- 510
Description
### Component
Forge
### Describe the feature you would like
Linked libraries are often not desirable, but often sneak in by accidentally making a single function in the library `public` instead of `internal`. This can cause issues that are hard to track down, such as unexpected contract deploys or [edge case bugs](https://github.com/foundry-rs/foundry/issues/8639), etc). It would be nice to have a flag like `enable_linked_libraries = false` that can be set in `foundry.toml`, that causes a failure during build if any contracts make use of linked libraries
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.