mirror of
https://github.com/serde-rs/json.git
synced 2025-10-02 15:26:00 +00:00
Update to proc_macro
This commit is contained in:
parent
e5f9ca89c6
commit
c104badf1c
@ -62,7 +62,7 @@ serde_derive = "0.8"
|
|||||||
Then run:
|
Then run:
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
#![feature(rustc_macro)]
|
#![feature(proc_macro)]
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate serde_derive;
|
extern crate serde_derive;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#![cfg_attr(feature = "nightly-testing", feature(plugin))]
|
#![cfg_attr(feature = "nightly-testing", feature(plugin))]
|
||||||
#![cfg_attr(feature = "nightly-testing", plugin(clippy))]
|
#![cfg_attr(feature = "nightly-testing", plugin(clippy))]
|
||||||
|
|
||||||
#![cfg_attr(not(feature = "with-syntex"), feature(rustc_macro))]
|
#![cfg_attr(not(feature = "with-syntex"), feature(proc_macro))]
|
||||||
|
|
||||||
#![feature(test)]
|
#![feature(test)]
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#![cfg_attr(feature = "nightly-testing", feature(plugin))]
|
#![cfg_attr(feature = "nightly-testing", feature(plugin))]
|
||||||
#![cfg_attr(feature = "nightly-testing", plugin(clippy))]
|
#![cfg_attr(feature = "nightly-testing", plugin(clippy))]
|
||||||
|
|
||||||
#![cfg_attr(not(feature = "with-syntex"), feature(rustc_macro, plugin))]
|
#![cfg_attr(not(feature = "with-syntex"), feature(proc_macro, plugin))]
|
||||||
#![cfg_attr(not(feature = "with-syntex"), plugin(indoc))]
|
#![cfg_attr(not(feature = "with-syntex"), plugin(indoc))]
|
||||||
|
|
||||||
#[cfg(not(feature = "with-syntex"))]
|
#[cfg(not(feature = "with-syntex"))]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user