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

Installation fails with crates.io version #1149

Closed
jbteves-sandia opened this issue Oct 23, 2024 · 2 comments
Closed

Installation fails with crates.io version #1149

jbteves-sandia opened this issue Oct 23, 2024 · 2 comments

Comments

@jbteves-sandia
Copy link

Currently, on crates.io, the version is listed as 0.18, not 0.19 as is listed on this repo, and fails with the following error when building using cargo install c2rust with no additional flags on cargo version 1.82.0.

error[E0282]: type annotations needed for `Box<_>`
  --> [REDACTED]/index.crates.io-6f17d22bba15001f/time-0.3.18/src/format_description/parse/mod.rs:83:9
   |
83 |     let items = format_items
   |         ^^^^^
...
86 |     Ok(items.into())
   |              ---- type must be known at this point
   |
   = note: this is an inference error on crate `time` caused by an API change in Rust 1.80.0; update `time` to version `>=0.3.35` by calling `cargo update`

For more information about this error, try `rustc --explain E0282`.

However, installing from source works fine:

cargo install --git https://github.com/immunant/c2rust.git c2rust
[spew]
Installed package `c2rust v0.19.0 (https://github.com/immunant/c2rust.git#516b30e3)` (executables `c2rust`, `c2rust-transpile`)
@siennathesane
Copy link

siennathesane commented Nov 5, 2024

I can confirm this issue exists for me too and installing from source works as well.

@kkysen
Copy link
Contributor

kkysen commented Nov 18, 2024

This is fundamentally a duplicate of #1125 (see #1125 (comment)), so I'm closing this to centralize things there. Once we properly publish 0.20.0, this issue should be fixed.

@kkysen kkysen closed this as completed Nov 18, 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

3 participants