compiler_error

Crates.iocompiler_error
lib.rscompiler_error
version0.1.1
sourcesrc
created_at2016-12-23 15:22:25.739528
updated_at2017-06-09 22:14:11.258489
descriptionTriggerable compiler error
homepage
repositoryhttps://github.com/lu-zero/compiler_error
max_upload_size
id7746
size3,387
Luca Barbato (lu-zero)

documentation

README

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
Commit count: 6

cargo fmt