Open
Description
Problem
Compiling iced_core v0.14.0-dev (https://github.com/iced-rs/iced.git?rev=beddf49c#beddf49c)
Compiling iced_core v0.14.0-dev (https://github.com/iced-rs/iced.git?rev=beddf49c76f3b43e7b33452831e1293cad28fd89#beddf49c)
There should only be one version of this crate
Steps
- have two libraries that have different way of versioning git crates. (ie lockfile + rev, rev only, or lockfile only)
- cargo will compile the two versions of the same crate
Possible Solution(s)
I did fix this, I just wanted to ask if this is a bug or not with cargo because if it's not it's still silly and needs to be fixed either way.
What I had to do is remove all rev attributes and rely on the Cargo.lock file instead, this is my collection of my application first and then the libraries.
https://github.com/Redhawk18/kuiper/blob/08ebe8d0102ee21a0e23ba611ef97813129c9ca0/Cargo.toml#L48
https://github.com/Redhawk18/iced_aw/blob/4a77e45464b03bb8bd93f92e8c13f1d58670ae3f/Cargo.toml#L70
https://github.com/Redhawk18/iced_fonts/blob/df5e170b74dae255107f3966f1e34dce8b96365a/Cargo.toml#L21
Notes
No response
Version
cargo 1.85.0 (d73d2caf9 2024-12-31)
release: 1.85.0
commit-hash: d73d2caf9e41a39daf2a8d6ce60ec80bf354d2a7
commit-date: 2024-12-31
host: x86_64-unknown-linux-gnu
libgit2: 1.8.1 (sys:0.19.0 vendored)
libcurl: 8.12.1 (sys:0.4.74+curl-8.9.0 system ssl:OpenSSL/3.4.1)
os: NixOS 24.11.0 [64-bit]