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

gpapi build fails on resolver version 2 #17

Open
jedenastka opened this issue Mar 31, 2024 · 0 comments
Open

gpapi build fails on resolver version 2 #17

jedenastka opened this issue Mar 31, 2024 · 0 comments

Comments

@jedenastka
Copy link

jedenastka commented Mar 31, 2024

gpapi build fails on resolver version 2, which is the default for the 2021 edition of Rust.

How to reproduce

  1. Create a simple project with cargo new
  2. Add the 5.0.0 version (latest as of now) of gpapi as a dependency with cargo add [email protected]
  3. Check the build with cargo check

Expected result

The build check finishes with no errors.

Actual result

Compilation fails. Error output: check.log

Details

Building the library itself succeeds, as the resolver version 1 is the default for workspaces, due to backwards compatibility, and this repository uses a workspace. More information about the new resolver is here: https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html.

For now, the issue can be worked around by including package.resolver = "1" in Cargo.toml.

@jedenastka jedenastka changed the title Build fails on resolver version 2 gpapi build fails on resolver version 2 Mar 31, 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

No branches or pull requests

1 participant