Skip to content

Commit

Permalink
Merge pull request #53 from dtolnay/metadata
Browse files Browse the repository at this point in the history
Add subcommand metadata so `cargo --list` can print a description
  • Loading branch information
dtolnay authored May 12, 2022
2 parents 094c88c + 0c8d48a commit 348b5c1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ readme = "README.md"

[dependencies]
atty = "0.2"
cargo-subcommand-metadata = "0.1"
clap = { version = "3.1", features = ["derive", "wrap_help"] }
rustc-demangle = "0.1"
tempdir = "0.3"
Expand Down
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ use std::process::{self, Command, Stdio};
use std::str::FromStr;
use tempdir::TempDir;

cargo_subcommand_metadata::description!(
"Count the number of lines of LLVM IR across all instantiations of a generic function"
);

const ABOUT: &str = "
Print amount of lines of LLVM IR that is generated for the current project.
Expand Down

0 comments on commit 348b5c1

Please sign in to comment.