From d7799ebec46753db26e098245f6fc14f7b093842 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Sun, 18 Oct 2020 23:04:00 -0700 Subject: [PATCH] Document feature flags in Cargo.toml (#709) Just doesn't have any features that are likely to be useful to end users, but it's good to document them nonetheless. --- Cargo.toml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2bcbbae..1b67d79 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,11 +10,6 @@ readme = "crates-io-readme.md" edition = "2018" autotests = false -[features] -default = [] -help4help2man = [] -summary = [] - [dependencies] ansi_term = "0.12.0" atty = "0.2.0" @@ -46,6 +41,17 @@ which = "4.0.0" [dev-dependencies.test-utilities] path = "test-utilities" +[features] +# No features are active by default. +default = [] +# The `help4help2man` feature modifies the message produced by `--help` +# so that `help2man` produces a reasonable man page. +help4help2man = [] +# The `summary` feature includes the `summary` module, which is used +# by Janus, https://github.com/casey/janus, a tool that analyses all +# public justfiles on GitHub to avoid breaking changes. +summary = [] + # The public documentation is minimal and doesn't change between # platforms, so we only build them for linux on docs.rs to save # their build machines some cycles.