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

no-std disqualified

Make rust type names more user-readable

1 stable release

1.0.0 Sep 22, 2024

#2 in #type-name

Download history 4048/week @ 2024-11-22 12541/week @ 2024-11-29 10272/week @ 2024-12-06 10119/week @ 2024-12-13 8579/week @ 2024-12-20 10127/week @ 2024-12-27 12588/week @ 2025-01-03 13390/week @ 2025-01-10 13967/week @ 2025-01-17 11689/week @ 2025-01-24 12607/week @ 2025-01-31 15546/week @ 2025-02-07 11740/week @ 2025-02-14 17869/week @ 2025-02-21 18022/week @ 2025-02-28 21033/week @ 2025-03-07

71,060 downloads per month
Used in 622 crates (10 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