2 releases

Uses old Rust 2015

0.1.1 Jun 9, 2017
0.1.0 Dec 23, 2016

#37 in #compiler-plugin

Download history 30/week @ 2024-11-13 46/week @ 2024-11-20 47/week @ 2024-11-27 49/week @ 2024-12-04 85/week @ 2024-12-11 52/week @ 2024-12-18 17/week @ 2024-12-25 40/week @ 2025-01-01 47/week @ 2025-01-08 71/week @ 2025-01-15 50/week @ 2025-01-22 65/week @ 2025-01-29 98/week @ 2025-02-05 72/week @ 2025-02-12 49/week @ 2025-02-19 63/week @ 2025-02-26

292 downloads per month

MIT license

3KB

Triggerable custom compiler error

Crates.io LICENSE

compiler_error is a rust compiler plugin that simply triggers a compilation error on demand and prints the token it receives, it is similar to the #error directive in the C preprocessor.

It is quite useful to provide helpful error message in macros with non-trival syntaxes.

Todo

  • support printing optionally multiple tokens
  • provide useful examples

No runtime deps