Sitelet https://github.com/foundry-rs/compilers/pull/75
Skip to content
This repository was archived by the owner on Apr 20, 2026. It is now read-only.

Small flattener features - #75

Merged
mattsse merged 4 commits into
foundry-rs:mainfrom
klkvr:klkvr/flatten-pragmas
Feb 13, 2024
Merged

mattsse merged 4 commits into
foundry-rs:mainfrom
klkvr:klkvr/flatten-pragmas

Conversation

@klkvr

@klkvr klkvr commented Feb 13, 2024

Copy link
Copy Markdown
Member

This PR implements two small flattener features mentioned in sky-ecosystem/spells-mainnet#391 (comment)

  1. Combine pragmas from different sources into one pragma so that version restrictions are kept the same before and after flattening
  2. Comments specifying original source file of the flattened code (// src/File.sol)

@mattsse mattsse left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Comment thread Cargo.toml Outdated
@mattsse
mattsse merged commit 990c609 into foundry-rs:main Feb 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants