We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47ac484 commit 5ea71fcCopy full SHA for 5ea71fc
src/cargo/ops/tree/format/mod.rs
@@ -66,7 +66,18 @@ impl<'a> fmt::Display for Display<'a> {
66
match chunk {
67
Chunk::Raw(s) => fmt.write_str(s)?,
68
Chunk::Package => {
69
- write!(fmt, "{} v{}", package.name(), package.version())?;
+ let proc_macro_suffix = if package.proc_macro() {
70
+ " (proc-macro)"
71
+ } else {
72
+ ""
73
+ };
74
+ write!(
75
+ fmt,
76
+ "{} v{}{}",
77
+ package.name(),
78
+ package.version(),
79
+ proc_macro_suffix
80
+ )?;
81
82
let source_id = package.package_id().source_id();
83
if !source_id.is_default_registry() {
0 commit comments