Unsupported!() macro for compile errors when a code path is used
Дата публикации: 13-08-2026 18:21:36
crates.io: Rust Package Registry (my entry to the worst crate name competition ;))
It implements compile-time errors when unsupported code paths are actually taken.
This helps to get rid of runtime panics from using todo!() or unimplemented!().
It also allows a novel programing pattern allowing traits with optional methods that the user only needs to implement when they are actually used.
It is a very small crate, I was honestly surprised such didn't already exist, still I believe it was worthwhile to publish as a crate.
5 posts - 3 participants
Read full topic
Схожие новости
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|
| 1 | Cargo-Rail v0.20: one workspace engine instead of dependency, CI, cache, release, and split-repo glue/plugins | 0 | 10.4 | 30-07-2026 |
| 2 | My second crate :D : Karatepe, a localisation library | 0 | 6.84 | 11-08-2026 |
| 3 | Multicalc: Scientific computing for real-time embedded systems in no_std Rust | 0 | 14.36 | 10-08-2026 |
| 4 | My state lib PurrGress | 0 | 12.62 | 13-08-2026 |
| 5 | Cargo-readme 3.4.0 released with Cargo workspace inheritance support | 0 | 18.41 | 27-07-2026 |
| 6 | Sigid: a zero-dependency, no_std, three-layer unique ID generator | 0 | 14.69 | 11-08-2026 |
| 7 | Mdpager 0.1.0: a small Unix-style Markdown pager | 0 | 16.56 | 08-08-2026 |
| 8 | [main] 1. OSS - Swift (Tools Opt+Assert, Stdlib Opt+DebInfo, Test Simulator) - macOS #6614 (broken since build #6607) | 0 | 24.66 | 22-07-2026 |
| 9 | [main] 1. OSS - Swift (Tools Opt+Assert, Stdlib Opt+DebInfo, Test Simulator) - macOS #6610 (broken since build #6607) | 0 | 24.66 | 21-07-2026 |
| 10 | [main] 1. OSS - Swift (Tools Opt+Assert, Stdlib Opt+DebInfo, Test Simulator) - macOS #6607 (broken since this build) | 0 | 19.41 | 20-07-2026 |
Классификация: . Схожих патентов: 0. Схожих новостей: 10. Тональность: 0. Информативность: 8.18. Источник: users.rust-lang.org.