serde/examples/serde-syntex-example
2016-10-08 18:29:36 -04:00
..
src Rename rustc_macro to proc_macro 2016-10-08 18:29:36 -04:00
.gitignore feat(example): Add an example 2015-11-28 20:09:03 -08:00
build.rs Test serde_derive instead of serde_macros 2016-09-28 11:19:27 -07:00
Cargo.toml Test serde_derive instead of serde_macros 2016-09-28 11:19:27 -07:00
README.md Fix feature name in serde-syntex-example readme 2016-07-31 15:47:46 -07:00

This example demonstrates how to use Serde with Syntex. On stable or nightly with Syntex, it can be built with:

% rustup run stable cargo run
     Running `target/debug/serde-syntex-example`
{"x":1,"y":2}
Point { x: 1, y: 2 }

% rustup run nightly cargo run
     Running `target/debug/serde-syntex-example`
{"x":1,"y":2}
Point { x: 1, y: 2 }

On nightly, it can use a plugin with:

% rustup run nightly cargo run --features unstable --no-default-features