feat(config): support solc --experimental#15177
Merged
figtracer merged 1 commit intoJun 15, 2026
Merged
Conversation
96179ff to
705aea5
Compare
705aea5 to
395fd88
Compare
mablr
previously approved these changes
Jun 15, 2026
grandizzy
previously approved these changes
Jun 15, 2026
395fd88 to
e957421
Compare
mablr
approved these changes
Jun 15, 2026
0xKarl98
approved these changes
Jun 15, 2026
grandizzy
approved these changes
Jun 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
experimentalconfig option and--experimentalcompiler CLI flag.settings.experimentalthroughfoundry-compilers.Dependency
Depends on the merged foundry-core compiler support from foundry-rs/foundry-core#94. This PR temporarily patches
foundry-compilerstofoundry-rs/foundry-core@39f19b016c2ba793b24255bda83bd3822c8cb525until the nextfoundry-compilerscrate release.Context
Solidity 0.8.35 introduced experimental mode via
--experimentalandsettings.experimental. Foundry should expose the flag while using typed compiler settings instead of injecting the flag into raw solc extra args.Reference: https://www.soliditylang.org/blog/2026/04/29/solidity-0.8.35-release-announcement/
Validation
cargo +1.95.0 test --locked -p foundry-config solc_settings_include_experimental_settingcargo +1.95.0 test -p foundry-cli can_parse_experimentalcargo +1.95.0 test -p forge can_set_config_valuescargo +1.95.0 test --locked -p forge can_inspect_standard_jsoncargo +1.95.0 fmt --check(passes; stable rustfmt emits warnings for nightly-only rustfmt options)