2 releases

Uses old Rust 2015

0.1.1 Jun 9, 2017
0.1.0 Dec 23, 2016

#27 in #compiler-plugin

Download history 47/week @ 2024-04-05 33/week @ 2024-04-12 39/week @ 2024-04-19 38/week @ 2024-04-26 32/week @ 2024-05-03 37/week @ 2024-05-10 30/week @ 2024-05-17 39/week @ 2024-05-24 57/week @ 2024-05-31 41/week @ 2024-06-07 51/week @ 2024-06-14 54/week @ 2024-06-21 29/week @ 2024-06-28 31/week @ 2024-07-05 40/week @ 2024-07-12 29/week @ 2024-07-19

139 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