immunant / c2rust

Migrate C code to Rust
https://c2rust.com/
Other
3.95k stars 234 forks source link

Fails to compile on latest nightly #1098

Closed theoparis closed 1 month ago

theoparis commented 3 months ago

See https://github.com/time-rs/time/issues/681, it seems like some dependencies need to be updated since it isn't used directly...

Adding the following to Cargo.toml in this repository seems to fix it for the time being.

[patch.crates-io]
time = { git = "https://github.com/time-rs/time" }

Update: I think the correct fix would actually be updating Cargo.lock and the time-macros crate.

tommythorn commented 1 month ago

With the risk of stating the obvious, this is also causing cargo install c2rust to fail.

chrysn commented 1 month ago

Note that c2rust used to compile just fine also on stable Rust. So as theoparis mentioned in the update, unlocking time-rs-macros sounds like the way to go. We need time 0.3.35 to fix the build issue, which needs Rust 1.67, which is more recent than the currently locked nightly.

kkysen commented 1 month ago