Skip to content

feat(config): support solc --experimental#15177

Merged
figtracer merged 1 commit into
foundry-rs:masterfrom
figtracer:codex/solc-experimental-flag
Jun 15, 2026
Merged

feat(config): support solc --experimental#15177
figtracer merged 1 commit into
foundry-rs:masterfrom
figtracer:codex/solc-experimental-flag

Conversation

@figtracer

@figtracer figtracer commented Jun 15, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds an experimental config option and --experimental compiler CLI flag.
  • Maps Foundry config to solc Standard JSON settings.experimental through foundry-compilers.
  • Updates config defaults, CLI parsing, and config output tests for the new field.

Dependency

Depends on the merged foundry-core compiler support from foundry-rs/foundry-core#94. This PR temporarily patches foundry-compilers to foundry-rs/foundry-core@39f19b016c2ba793b24255bda83bd3822c8cb525 until the next foundry-compilers crate release.

Context

Solidity 0.8.35 introduced experimental mode via --experimental and settings.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_setting
  • cargo +1.95.0 test -p foundry-cli can_parse_experimental
  • cargo +1.95.0 test -p forge can_set_config_values
  • cargo +1.95.0 test --locked -p forge can_inspect_standard_json
  • cargo +1.95.0 fmt --check (passes; stable rustfmt emits warnings for nightly-only rustfmt options)

@figtracer figtracer changed the title [codex] add solc experimental compiler flag feat(config): support solc --experimental Jun 15, 2026
@figtracer figtracer force-pushed the codex/solc-experimental-flag branch from 96179ff to 705aea5 Compare June 15, 2026 09:40
@figtracer figtracer force-pushed the codex/solc-experimental-flag branch from 705aea5 to 395fd88 Compare June 15, 2026 10:35
@figtracer figtracer marked this pull request as ready for review June 15, 2026 10:36
mablr
mablr previously approved these changes Jun 15, 2026
grandizzy
grandizzy previously approved these changes Jun 15, 2026
@figtracer figtracer dismissed stale reviews from grandizzy and mablr via e957421 June 15, 2026 11:56
@figtracer figtracer force-pushed the codex/solc-experimental-flag branch from 395fd88 to e957421 Compare June 15, 2026 11:56
@grandizzy grandizzy self-requested a review June 15, 2026 12:02
@figtracer figtracer merged commit f4ecc6a into foundry-rs:master Jun 15, 2026
19 checks passed
@github-project-automation github-project-automation Bot moved this to Done in Foundry Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants