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

Compile errors due to breaking changes in Clap 3.0 betas #53

Open
Terr opened this issue Nov 6, 2021 · 0 comments
Open

Compile errors due to breaking changes in Clap 3.0 betas #53

Terr opened this issue Nov 6, 2021 · 0 comments

Comments

@Terr
Copy link

Terr commented Nov 6, 2021

When compiling handlr in release mode it fails on some errors related to Clap.

error[E0433]: failed to resolve: could not find `Clap` in `clap`
 --> src/cli.rs:3:16
  |
3 | #[derive(clap::Clap)]
  |                ^^^^ could not find `Clap` in `clap`

error: cannot find attribute `clap` in this scope
 --> src/cli.rs:4:3
  |
4 | #[clap(global_setting = clap::AppSettings::DeriveDisplayOrder)]
  |   ^^^^
  |
  = note: `clap` is in scope, but it is a crate, not an attribute

error: cannot find attribute `clap` in this scope
 --> src/cli.rs:5:3
  |
5 | #[clap(global_setting = clap::AppSettings::DisableHelpSubcommand)]
  |   ^^^^
  |
  = note: `clap` is in scope, but it is a crate, not an attribute

... and several more

According to this Clap issue and their changelog there have been some breaking changes.

edit:
The actual culprit seems to be clap_derive, an indirect dependency. I can compile handlr successfully when I lock it at beta.2 but not when it's at beta.4 or beta.5 (beta.3 was skipped)

@Terr Terr changed the title Compile error due to breaking changes in Clap 3.0 betas Compile errors due to breaking changes in Clap 3.0 betas Nov 6, 2021
Terr added a commit to Terr/dotfiles that referenced this issue Mar 12, 2023
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