Check out example codes for "rust cargo using package dependency specific feature". It will help you in understanding the concepts better.

Code Example 1

[features]
my-feature = ["crate/crate-feature"]

Learn ReactJs, React Native from akashmittal.com