Check out example codes for "rust cargo.toml dependencies". It will help you in understanding the concepts better.
Code Example 1
[dependencies] time = "0.1.12" //Sometimes in the command line you need to update with cargo update and //then cargo build
Code Example 2
[features] my-feature = ["crate/crate-feature"]
Learn ReactJs, React Native from akashmittal.com