Cargo.toml example
cargo.tomlexample
cargo-features = ["default-run"]
[package]
name =myproj"
version =0.1.0"
authors = ["
[email protected]>"]
default-run =myBin1"
edition =2018"extern"
[[bin]]
name =myBin1"
path =src/main1.rs"
[[bin]]
name =myBin2"
path =src/main2.rs"
[dependencies]
myDep1 =0.3.2".io
myDep1b =>=1.0.5"
myDep2 = { path =../path/to/my/dep2"
myDep3 = { git =https://github.com/.../dep3.git", rev =528f19c"
[profile.debug]cargo
[profile.relase]cargorelease
debug = true
[profile.test]cargo
Cargo understandsSemVer(MAJOR.MINOR.PATH):0.3.14is actually shorthand for
^0.3.14, which means any version that has a public API compatible with version0.3.14.
I.e., by default, Cargo will only look for versions larger than0.3.14and smaller than
0.4.0.
R. Casadei Intro 6/61