Cargo package categories suggestions #1034
Replies: 2 comments
-
I'm not sure about the GUI category as ratatui is terminal based and not graphical so not really a GUI… Otherwise, yes. Categories should be added. To the lint: Good idea to run |
Beta Was this translation helpful? Give feedback.
-
Yup, understood and agreed on both points - a tui is not a gui; and I definitely agree that many if not most projects probably aren't suitable for turning on the cargo lint group by default for CI. I've created a pull request which adds this one-liner. |
Beta Was this translation helpful? Give feedback.
-
tl;dr: Add
categories = ["command-line-interface", "gui"]
to the cargo package metadata inCargo.toml
.For people running with the clippy cargo lint
clippy::cargo-common-metadata
a warning is generated for the main ratatui crate. This is because the cargo package metadata does not currently specify acategories
field.Note that enabling the clippy group
clippy::cargo
includes this specific lint by default.After looking at the category slugs on crates.io, my best guess for the appropriate categories are the
command-line-interface
andgui
categories.As an additional benefit, adding categories to the crate will help discovery on crates.io when users search for these specific slugs.
What I'm hoping to figure out in this discussion is whether categories should be added to the package metadata, and if so, whether the proposed categories above are reasonable. All comments welcome. Cheers!
Beta Was this translation helpful? Give feedback.
All reactions