Compile and test the serde_derive "example" code

This commit is contained in:
David Tolnay committed 2017-10-22 12:09:56 -07:00
1 parent ab7c003b64
commit 826f656e28
2 files changed
+10 -1

No files matched your search

+7 -1
View File
@@ -8,8 +8,14 @@
//! This crate provides Serde's two derive macros.
//!
//! ```rust,ignore
//! ```rust
//! # #[macro_use]
//! # extern crate serde_derive;
//! #
//! #[derive(Serialize, Deserialize)]
//! # struct S;
//! #
//! # fn main() {}
//! ```
//!
//! Please refer to [https://serde.rs/derive.html] for how to set this up.