Skip to content

Commit

Permalink
0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nrc committed Jan 6, 2019
1 parent 611c68e commit a39acd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "proc-macro-rules"
version = "0.2.0"
version = "0.2.1"
authors = ["Nick Cameron <[email protected]>"]
edition = "2018"
repository = "https://github.com/nrc/proc-macro-rules"
Expand Down
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ rules!(tokens => {

## Using proc-macro-rules

Add `proc-macro-rules = "0.1.1"` to your Cargo.toml. You'll need the following feature flag:

```rust
#![feature(proc_macro_hygiene)]
```
Add `proc-macro-rules = "0.2.1"` to your Cargo.toml.

Import the `rules` macro with `use proc_macro_rules::rules`, then use with `rules!(tokens => { branches });` where `tokens` is an expression which evaluates to a `TokenStream` (such as the argument in the definition of a procedural macro).

Expand All @@ -39,7 +35,7 @@ For example, in the first branch in the above example `ident` has type `syn::Ide

## Building and testing

You'll need a nightly Rust compiler. Use `cargo build` to build, `cargo test --all` to test.
Use `cargo build` to build, `cargo test --all` to test.


## Contributing
Expand Down

0 comments on commit a39acd9

Please sign in to comment.