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

fix: feature resolution #2274

Merged
merged 2 commits into from Mar 17, 2023
Merged

Conversation

DaniPopes
Copy link
Collaborator

@DaniPopes DaniPopes commented Mar 16, 2023

Motivation

Fixes #2271
Fixes #2273

Solution

Explicitly specify resolver = "2" in the workspace
Add missing features which were getting wrongly compiled in due to resolver defaulting to "1"

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog
  • Breaking changes

@DaniPopes
Copy link
Collaborator Author

DaniPopes commented Mar 16, 2023

Can you check by pinning ethers to this branch? @mattsse @FrankieIsLost

ethers = { git = "https://github.com/danipopes/ethers-rs", branch = "fix/feature-resolution" }

@@ -58,6 +58,8 @@ default-members = [
"ethers-solc",
]

resolver = "2"
Copy link
Collaborator

Choose a reason for hiding this comment

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

TIL
https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html

so if the crate does not use edition 2021 it falls back to old resolver unless the dependency uses resolver 2?

man I wonder how much time will be wasted on debugging problems this is causing

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh yeah there it is, virtual workspaces default to v1. Crazy

@mattsse
Copy link
Collaborator

mattsse commented Mar 16, 2023

Can you check by pinning ethers to this branch? @mattsse @FrankieIsLost

ethers = { git = "https://github.com/danipopes/ethers-rs", branch = "fix/feature-resolution" }

that works! ty

@FrankieIsLost
Copy link
Contributor

works for me as well, thanks!

@gakonst gakonst merged commit ef7fb0f into gakonst:master Mar 17, 2023
13 of 16 checks passed
@DaniPopes DaniPopes deleted the fix/feature-resolution branch March 18, 2023 01:07
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.

ethers no longer compiles on master Abigen produces bindings with dependency issues
4 participants