-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: extract artifacts to a separate crate #142
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
splitting into
artifacts
core
compilers
makes sense
I suggest to do a foundry companion first before we merge this so that we can fix things like missing re-exports etc.
crates/project/src/lib.rs
Outdated
use foundry_compilers_artifacts::{ | ||
output_selection::OutputSelection, | ||
sources::{Source, Sources}, | ||
Contract, Settings, Severity, SourceFile, StandardJsonCompilerInput, | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we likely want to re-export
foundry_compilers_artifacts as artifacts
so that you don't need to depend on all crates if you're already pulling in compilers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
last thing, artifacts should be a subdirectory like
- artifacts
- solc/src -- base solc
- vyper/src -- base vyper + imports solc
- artifacts/src -- meta crate that re-exports both solc and vyper (might not be necessary cc @mattsse )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closes #129
Divides
foundry-compilers
into 3 crates:foundry-compilers-artifacts
- JSON artifacts for Solc and Vyper compilersfoundry-compilers-project
- Project related logic, including compiler abstraction and compilation pipelinefoundry-compilers-core
- error types and utilties shared by both crates