Cargo Features

forne = { version = "0.1.5", default-features = false, features = ["cli"] }
default = cli

Necessary because we can't have binary-only features

cli default = clap, crossterm, termcolor, whoami

Enable dependencies and features for the CLI only. This unfortunately has to pollute the library, because Cargo does not support separate binary dependencies.

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

termcolor cli

clap cli

With derive and default features

whoami cli

With default (web)

crossterm cli

Enables default (bracketed-paste) of crossterm ^0.26