2015-11-28 22:09:03 -06:00
|
|
|
This example demonstrates how to use Serde with Syntex. On stable or nightly
|
|
|
|
with Syntex, it can be built with:
|
|
|
|
|
|
|
|
```
|
2016-06-09 03:16:31 -05:00
|
|
|
% rustup run stable cargo run
|
2015-11-28 22:09:03 -06:00
|
|
|
Running `target/debug/serde-syntex-example`
|
|
|
|
{"x":1,"y":2}
|
|
|
|
Point { x: 1, y: 2 }
|
|
|
|
|
2016-06-09 03:16:31 -05:00
|
|
|
% rustup run nightly cargo run
|
2015-11-28 22:09:03 -06:00
|
|
|
Running `target/debug/serde-syntex-example`
|
|
|
|
{"x":1,"y":2}
|
|
|
|
Point { x: 1, y: 2 }
|
|
|
|
```
|
|
|
|
|
|
|
|
On nightly, it can use a plugin with:
|
|
|
|
|
|
|
|
```
|
2016-06-09 03:16:31 -05:00
|
|
|
% rustup run nightly cargo run --features nightly --no-default-features
|
2015-11-28 22:09:03 -06:00
|
|
|
```
|