summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index b647eb5..b14df1b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -22,14 +22,16 @@
//! Serializing/Deserializing is designed to work with maps and structs.
//!
//! ```
+//! #[macro_use]
+//! extern crate serde_derive;
+//! extern crate serde_qs as qs;
//!
-//!
-//! #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
+//! #[derive(Debug, PartialEq, Deserialize, Serialize)]
//! struct Address {
//! city: String,
//! postcode: String,
//! }
-//! #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
+//! #[derive(Debug, PartialEq, Deserialize, Serialize)]
//! struct QueryParams {
//! id: u8,
//! name: String,