2 releases

Uses old Rust 2015

0.1.1 Jun 9, 2017
0.1.0 Dec 23, 2016

#27 in #compiler-plugin

Download history 27/week @ 2023-12-18 12/week @ 2023-12-25 3/week @ 2024-01-01 19/week @ 2024-01-08 17/week @ 2024-01-15 16/week @ 2024-01-22 5/week @ 2024-01-29 13/week @ 2024-02-05 23/week @ 2024-02-12 49/week @ 2024-02-19 80/week @ 2024-02-26 41/week @ 2024-03-04 48/week @ 2024-03-11 33/week @ 2024-03-18 43/week @ 2024-03-25 85/week @ 2024-04-01

214 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