Skip to content

Conversation

TaborKelly
Copy link

This specifies cargo = ">=0.82.0" in Cargo.toml but actually resolves to 0.83.0 in Cargo.lock.

This specifies cargo = ">=0.82.0" in Cargo.toml but actually resolves to
0.83.0 in Cargo.lock.
@paolobarbolini
Copy link
Contributor

Putting >= in version requirements is usually bad, because it means you are not reducing the range to versions that fall in 0.82.n (what semver defines as ^0.82 or in Rust simply 0.82), but you are allowing any future version to be picked up by the dependency solver. Every once in a while, cargo will make a breaking change to their API that will affect you and break the build. The right thing to do is to pin a version as has always been done, and just bump it when new versions come out.

See https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html for more info.

@marcobergamin-videam
Copy link

@TaborKelly thanks, you saved me.
cargo-bitbake wasn't working anymore after updating my dependencies and Rust

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

Successfully merging this pull request may close these issues.

3 participants