Hide warnings on build:
* RUSTFLAGS=-Awarnings cargo build
Dependency Tree:
* cargo tree
Build cargo with all features:
- cargo build --all-features
Specifying it in Cargo.toml:
- my_lib = { git = "ssh://git@github.com/a/b.git", features = ["test_utils"], branch = "master" }
-
Use of versions in dependencies:
```
[dependencies]
time = "0.1.12"
```
The string "0.1.12" is a
semver version requirement. Since this string does not have any operators in it, it is interpreted the same way as if we had specified "^0.1.12", which is called a caret requirement. This will download 0.1.MAX not 0.1.12. If you need to specify the exact version use "=0.1.12"
Cargo lock in .gitignore:
* If you’re building a library that other projects will depend on, put Cargo.lock in your .gitignore.
* If you’re building an executable like a command-line tool or an application, check Cargo.lock into git.