Cargo Features

[dependencies]
lsd = { version = "1.1.5", default-features = false, features = ["sudo", "no-git", "git2"] }
default = git2

The git2 feature is set by default whenever lsd is added without default-features = false somewhere in the dependency tree.

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.18