Cargo Features
[dependencies]
starship = { version = "1.23.0", default-features = false, features = ["battery", "config-schema", "notify"] }
- default = battery, notify
-
These default features are set whenever
starship
is added without
somewhere in the dependency tree.default-features = false - battery default = starship-battery
-
Affects
context::Context.battery_info_provider
… - config-schema = schemars
-
Affects
print::print_schema
… - notify default = notify-rust
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.
- notify-rust notify
-
Enables notify-rust
notify-rust is optional (on by default) because the crate doesn't currently build for darwin with nix see: https://github.com/NixOS/nixpkgs/issues/160876
- starship-battery battery
-
Enables starship-battery
battery is optional (on by default) because the crate doesn't currently build for Termux see: https://github.com/svartalf/rust-battery/issues/33
- schemars config-schema?