| Crates.io | cargo-census |
| lib.rs | cargo-census |
| version | 0.1.0 |
| created_at | 2026-01-16 15:07:57.154521+00 |
| updated_at | 2026-01-16 15:07:57.154521+00 |
| description | Analyze Rust crate module structure and item counts |
| homepage | https://github.com/tilacog/cargo-census |
| repository | https://github.com/tilacog/cargo-census |
| max_upload_size | |
| id | 2048751 |
| size | 43,620 |
Analyze Rust crate module structure and item counts.
Counts functions, structs, enums, consts, statics, types, traits, impls, macros, and mods per module.
cargo install --path .
cargo census # analyze current directory
cargo census /path/to/crate # analyze specific path
cargo census -f table # table format
cargo census -f json # JSON output
cargo census --workspace # all workspace members
cargo census -p some-crate # specific package
$ cargo census
cargo-census (45 items)
├── fn: 3, struct: 2, enum: 1, mod: 3
├── parser (src/parser.rs) [6 items]
│ └── fn: 6
├── stats (src/stats.rs) [22 items]
│ ├── fn: 7, struct: 4, enum: 1
│ └── impl: 4, methods: 6
└── workspace (src/workspace.rs) [8 items]
├── fn: 5, struct: 1
└── impl: 1, methods: 1