| Crates.io | cargo-swell |
| lib.rs | cargo-swell |
| version | 0.1.1 |
| created_at | 2025-10-12 19:08:50.5318+00 |
| updated_at | 2025-10-12 19:11:29.39581+00 |
| description | `cargo expand` without automatically derived items |
| homepage | https://github.com/sampathsris/cargo-swell |
| repository | https://github.com/sampathsris/cargo-swell |
| max_upload_size | |
| id | 1879531 |
| size | 74,237 |
cargo swellcargo expand without automatically derived items.
Here's what it does:
cargo expandsyn and recursively find #[automatically_derived] attributes and remove the associated items.That's it!
It's very hard to find what you're looking for in cargo expand's output, when it gets cluttered with #[automatically_derived] items (e.g.: #[derive(Debug)]). This is an extremely crude solution to that problem.
cargo install cargo-swell
cargo swell
Any command line options to cargo swell gets passed to cargo expand as is (with the exception of --color <WHEN>).
--theme option (and therefore --themes) is not ignored due to the way this solution is written. The coloring is done using bat's default theme.