foundry icon indicating copy to clipboard operation
foundry copied to clipboard

feat: Vyper support for forge build

Open klkvr opened this issue 1 year ago • 0 comments

Motivation

Inroduces Vyper support for forge build command. lang field is added to Config, and specifying lang = "vyper" in foundry.toml allows to compile Vyper projects.

Solution

I've added with_resolved_project! macro which resolves compiler-aware project from config and allows to use it in commands. Not sure if this is a clean enough way for doing this, but it allows us to support both Vyper and Solc in BuildArgs, and should probably be enough to make forge test generic as well.

foundry-compilers is currently patched to https://github.com/foundry-rs/compilers/pull/124

klkvr avatar May 20 '24 20:05 klkvr