Skip to content
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

feat: split off binding generation from foundry-evm #4935

Merged
merged 3 commits into from
May 13, 2023

Conversation

DaniPopes
Copy link
Member

@DaniPopes DaniPopes commented May 13, 2023

Motivation

#4928

cargo c -p foundry-evm from ~5s to ~0.5s

Unfortunately rust-analyzer is still slow-ish because it has to check other crates in the workspace which depend on it, eg anvil and foundry-cli, so this gain isn't that drastic, but definitely noticeable, I'd say about 50% faster.

Also includes some work on removing ethers-solc from the dependencies.

Solution

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

I like this a lot,

we don't have many conflicting prs rn so this is the best time to do this I believe.

good to merge?

/// Includes a JSON ABI as a string literal.
macro_rules! include_json_abi {
($path:literal) => {{
println!(concat!("cargo:rerun-if-changed=", $path));
Copy link
Member

Choose a reason for hiding this comment

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

that should work!

@DaniPopes
Copy link
Member Author

good to merge?

Yes

@mattsse mattsse merged commit 4236ba1 into foundry-rs:master May 13, 2023
@DaniPopes DaniPopes deleted the feat/abi branch May 13, 2023 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants