Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

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

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1Cargo-Rail v0.20: one workspace engine instead of dependency, CI, cache, release, and split-repo glue/plugins010.430-07-2026
2My second crate :D : Karatepe, a localisation library06.8411-08-2026
3Multicalc: Scientific computing for real-time embedded systems in no_std Rust014.3610-08-2026
4My state lib PurrGress012.6213-08-2026
5Cargo-readme 3.4.0 released with Cargo workspace inheritance support018.4127-07-2026
6Sigid: a zero-dependency, no_std, three-layer unique ID generator014.6911-08-2026
7Mdpager 0.1.0: a small Unix-style Markdown pager016.5608-08-2026
8[main] 1. OSS - Swift (Tools Opt+Assert, Stdlib Opt+DebInfo, Test Simulator) - macOS #6614 (broken since build #6607)024.6622-07-2026
9[main] 1. OSS - Swift (Tools Opt+Assert, Stdlib Opt+DebInfo, Test Simulator) - macOS #6610 (broken since build #6607)024.6621-07-2026
10[main] 1. OSS - Swift (Tools Opt+Assert, Stdlib Opt+DebInfo, Test Simulator) - macOS #6607 (broken since this build)019.4120-07-2026

Классификация: . Схожих патентов: 0. Схожих новостей: 10. Тональность: 0. Информативность: 8.18. Источник: users.rust-lang.org.