serde/examples/serde-syntex-example
2017-01-13 10:27:51 -08:00
..
src Remove the proc_macro feature gate in serde-syntex-example 2017-01-13 10:27:51 -08: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 Not intended to be published 2017-01-08 00:18:37 -08: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