easy-plugin
A compiler plugin that makes it easier to write compiler plugins.
Released under the Apache License 2.0.
Supported Configurations
- Nightly Rust channel (Documentation)
- Stable and beta Rust channels (Documentation)
By default, easy-plugin
expects to be compiled by a nightly Rust compiler. easy-plugin
is also
supported on the stable and beta channels of Rust with
syntex
. To enable this support, enable the stable
Cargo
feature.
Example
The following usage of easy_plugin!
defines a plugin which accepts key-value pairs.
easy_plugin!