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

Bump MSRV to 1.60 and check MSRV in CI #108

Merged
merged 2 commits into from
Mar 30, 2024
Merged

Bump MSRV to 1.60 and check MSRV in CI #108

merged 2 commits into from
Mar 30, 2024

Conversation

taiki-e
Copy link
Collaborator

@taiki-e taiki-e commented Mar 30, 2024

syn 2.0.57 requires it.

error: failed to select a version for the requirement `syn = "=2.0.57"`
candidate versions found which didn't match: 2.0.56, 2.0.55, 2.0.54, ...
location searched: crates.io index

dtolnay/syn@585df47

Very confusing error message is due to rust-lang/cargo#10623.

taiki-e added 2 commits March 30, 2024 18:01
syn 2.0.57 requires it.

```
error: failed to select a version for the requirement `syn = "=2.0.57"`
candidate versions found which didn't match: 2.0.56, 2.0.55, 2.0.54, ...
location searched: crates.io index
```
@taiki-e taiki-e merged commit b71fbe3 into eupn:master Mar 30, 2024
10 checks passed
@taiki-e taiki-e deleted the msrv branch March 30, 2024 09:08
@taiki-e
Copy link
Collaborator Author

taiki-e commented Mar 30, 2024

A side effect of rust-lang/cargo#10623 is that pre-1.60 cargo cannot understand weak dependencies and namespace features, so if we generate a lockfile with pre-1.60 cargo, a version compatible with pre-1.60 will be selected.

$ cargo +1.56 generate-lockfile
$ cargo tree -p syn            
syn v2.0.56
├── proc-macro2 v1.0.79
│   └── unicode-ident v1.0.12
├── quote v1.0.35
│   └── proc-macro2 v1.0.79 (*)
└── unicode-ident v1.0.12
$ cargo +1.56 check            
    Finished dev [unoptimized + debuginfo] target(s) in 0.58s

So, as long as syn can be compiled with 1.60, I think we can revert this MSRV bump.

taiki-e added a commit to taiki-e/macrotest that referenced this pull request Mar 30, 2024
taiki-e added a commit that referenced this pull request Mar 30, 2024
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.

1 participant