mirror of
https://github.com/serde-rs/json.git
synced 2026-02-15 04:10:35 +00:00
24 lines
755 B
Rust
24 lines
755 B
Rust
#![cfg_attr(feature = "nightly-testing", feature(plugin))]
|
|
#![cfg_attr(feature = "nightly-testing", plugin(clippy))]
|
|
|
|
#![cfg_attr(not(feature = "with-syntex"), feature(custom_attribute, custom_derive, plugin))]
|
|
#![cfg_attr(not(feature = "with-syntex"), plugin(serde_macros, indoc))]
|
|
|
|
extern crate serde;
|
|
extern crate serde_json;
|
|
extern crate skeptic;
|
|
|
|
#[cfg(feature = "with-syntex")]
|
|
include!(concat!(env!("OUT_DIR"), "/test.rs"));
|
|
|
|
#[cfg(not(feature = "with-syntex"))]
|
|
include!("test.rs.in");
|
|
|
|
#[cfg(feature = "nightly-testing")]
|
|
mod skeptic_tests {
|
|
#![cfg_attr(feature = "nightly-testing", allow(toplevel_ref_arg))]
|
|
#![cfg_attr(feature = "nightly-testing", allow(useless_format))]
|
|
|
|
include!(concat!(env!("OUT_DIR"), "/skeptic-tests.rs"));
|
|
}
|