2 releases

Uses old Rust 2015

0.1.1 Jun 9, 2017
0.1.0 Dec 23, 2016

#35 in #compiler-plugin

Download history 69/week @ 2024-07-22 48/week @ 2024-07-29 47/week @ 2024-08-05 53/week @ 2024-08-12 48/week @ 2024-08-19 41/week @ 2024-08-26 43/week @ 2024-09-02 41/week @ 2024-09-09 42/week @ 2024-09-16 54/week @ 2024-09-23 38/week @ 2024-09-30 27/week @ 2024-10-07 59/week @ 2024-10-14 45/week @ 2024-10-21 40/week @ 2024-10-28 53/week @ 2024-11-04

200 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