Question on dependencies versions

⚓ Rust    📅 2026-02-12    👤 surdeus    👁️ 1      

surdeus

I see on this page Specifying Dependencies - The Cargo Book

1.2.3  :=  >=1.2.3, <2.0.0
1.2    :=  >=1.2.0, <2.0.0
1      :=  >=1.0.0, <2.0.0
0.2.3  :=  >=0.2.3, <0.3.0
0.2    :=  >=0.2.0, <0.3.0
0.0.3  :=  >=0.0.3, <0.0.4
0.0    :=  >=0.0.0, <0.1.0
0      :=  >=0.0.0, <1.0.0

But for me, it should be something like that

1.2.3  :=  >=1.2.3, <1.3.0
1.2    :=  >=1.2.0, <2.0.0
1      :=  >=1.0.0, <2.0.0
0.2.3  :=  >=0.2.3, <0.3.0
0.2    :=  >=0.2.0, <1.0.0
0.0.3  :=  >=0.0.3, <0.1.0
0.0    :=  >=0.0.0, <1.0.0
0      :=  >=0.0.0, <1.0.0

Diff

version My understanding The docs
1.2.3 := >=1.2.3, <1.3.0 >=1.2.3, <2.0.0
1.2 := >=1.2.0, <2.0.0 >=1.2.0, <2.0.0
1 := >=1.0.0, <2.0.0 >=1.0.0, <2.0.0
0.2.3 := >=0.2.3, <0.3.0 >=0.2.3, <0.3.0
0.2 := >=0.2.0, <1.0.0 >=0.2.0, <0.3.0
0.0.3 := >=0.0.3, <0.1.0 >=0.0.3, <0.0.4
0.0 := >=0.0.0, <1.0.0 >=0.0.0, <0.1.0
0 := >=0.0.0, <1.0.0 >=0.0.0, <1.0.0

Where is my mistake ?

5 posts - 3 participants

Read full topic

🏷️ Rust_feed