cargo-bitbake icon indicating copy to clipboard operation
cargo-bitbake copied to clipboard

Update to newer cargo, fix issue #79

Open TaborKelly opened this issue 1 year ago • 2 comments

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

TaborKelly avatar Oct 18 '24 18:10 TaborKelly

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.

paolobarbolini avatar Nov 07 '24 11:11 paolobarbolini

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

marcobergamin-videam avatar Jan 08 '25 15:01 marcobergamin-videam