Cargo Features
[dependencies]
lsd = { version = "1.2.0", default-features = false, features = ["sudo", "no-git", "git2"] }
- default = git2
-
The
git2feature is set by default wheneverlsdis added withoutsomewhere in the dependency tree.default-features = false - sudo
- no-git
-
force disabling git even if available by default
Features from optional dependencies
In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- git2 not win not x86 not gnu default
-
Enables git2 ^0.20