Remove summary feature (#823)

Remove the `summary` feature and make the `summary` module always build.
It's a small module, so it shouldn't hurt compile times, and it should
prevent accidental breakages that are only caught on CI.
This commit is contained in:
Casey Rodarmor 2021-05-08 19:07:51 -07:00 committed by GitHub
parent 7bc9d3986e
commit 4cb82e0c1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 6 deletions

View File

@ -53,10 +53,6 @@ default = []
# The `help4help2man` feature modifies the message produced by `--help` # The `help4help2man` feature modifies the message produced by `--help`
# so that `help2man` produces a reasonable man page. # so that `help2man` produces a reasonable man page.
help4help2man = [] 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 # The public documentation is minimal and doesn't change between
# platforms, so we only build them for linux on docs.rs to save # platforms, so we only build them for linux on docs.rs to save

View File

@ -64,7 +64,6 @@ changes:
check: lint clippy test check: lint clippy test
git diff --no-ext-diff --quiet --exit-code git diff --no-ext-diff --quiet --exit-code
grep {{version}} CHANGELOG.md grep {{version}} CHANGELOG.md
cargo build --features summary
cargo +nightly generate-lockfile -Z minimal-versions cargo +nightly generate-lockfile -Z minimal-versions
cargo test cargo test
git checkout Cargo.lock git checkout Cargo.lock

View File

@ -143,5 +143,8 @@ pub use crate::run::run;
#[doc(hidden)] #[doc(hidden)]
pub use unindent::unindent; pub use unindent::unindent;
#[cfg(feature = "summary")] // Used by Janus, https://github.com/casey/janus, a tool
// that analyses all public justfiles on GitHub to avoid
// breaking changes.
#[doc(hidden)]
pub mod summary; pub mod summary;