#type-name #bevy #short #type #name

no-std disqualified

Make rust type names more user-readable

1 stable release

1.0.0 Sep 22, 2024

#306 in Memory management

Download history 40330/week @ 2025-10-11 41298/week @ 2025-10-18 38689/week @ 2025-10-25 38023/week @ 2025-11-01 35784/week @ 2025-11-08 38421/week @ 2025-11-15 36957/week @ 2025-11-22 37163/week @ 2025-11-29 45618/week @ 2025-12-06 50758/week @ 2025-12-13 34863/week @ 2025-12-20 31935/week @ 2025-12-27 51192/week @ 2026-01-03 51823/week @ 2026-01-10 54131/week @ 2026-01-17 52271/week @ 2026-01-24

214,102 downloads per month
Used in 1,360 crates (21 directly)

MIT/Apache

10KB
157 lines

disqualified

License Crates.io Downloads Docs

Lazily shortens a type name to remove all module paths. The short name of a type is its full name as returned by core::any::type_name, but with the prefix of all paths removed. For example, the short name of alloc::vec::Vec<core::option::Option<u32>> would be Vec<Option<u32>>. Shortening is performed lazily without allocation.

Contributing

This crate is maintained by the Bevy organization, and is intended to be tiny, stable, zero-dependency, and broadly useful. Issues and pull requests are genuinely welcome!

No runtime deps

Features