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

during cargo install cargo-c error[E0063]: missing field rust_version in initializer of `NewCrate #325

Closed
onorua opened this issue Jul 13, 2023 · 5 comments

Comments

@onorua
Copy link

onorua commented Jul 13, 2023

I'm trying to build cargo-c, but it doesn't work. Cargo version installed doesn't make any difference. I've tried from 1.70 to 1.73.0

I was able to build cargo 0.71.0 without any problems.

I've tried compiling it from github repo and by simply cargo install cargo-c no luck.

root@e18d431a85d4:/# cargo install cargo-c
    Updating crates.io index
  Installing cargo-c v0.9.20+cargo-0.71
    Updating crates.io index
   Compiling cargo v0.71.0
error[E0063]: missing field `rust_version` in initializer of `NewCrate`
   --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-0.71.0/src/cargo/ops/registry.rs:383:14
    |
383 |             &NewCrate {
    |              ^^^^^^^^ missing `rust_version`

For more information about this error, try `rustc --explain E0063`.
error: could not compile `cargo` (lib) due to previous error
error: failed to compile `cargo-c v0.9.20+cargo-0.71`, intermediate artifacts can be found at `/tmp/cargo-installcGzR00`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

@sdroege
Copy link
Contributor

sdroege commented Jul 13, 2023

This is a problem in cargo, not cargo-c. Can you report that there? For me it stopped compiling with Rust 1.71, 1.70 was working fine it seems.

@lu-zero
Copy link
Owner

lu-zero commented Jul 13, 2023

Looks like some dependency broken semver.

@lu-zero
Copy link
Owner

lu-zero commented Jul 13, 2023

specifically crates_io

Compared to 0.36.0, 0.36.1 has rust_version added.

@lu-zero
Copy link
Owner

lu-zero commented Jul 13, 2023

Upstream issue: rust-lang/cargo#12354

lu-zero added a commit that referenced this issue Jul 13, 2023
@lu-zero
Copy link
Owner

lu-zero commented Jul 18, 2023

The problem should never appear now.

@lu-zero lu-zero closed this as completed Jul 18, 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

3 participants