summaryrefslogtreecommitdiff
path: root/meap/ch7/src
diff options
context:
space:
mode:
Diffstat (limited to 'meap/ch7/src')
-rw-r--r--meap/ch7/src/main.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/meap/ch7/src/main.rs b/meap/ch7/src/main.rs
new file mode 100644
index 0000000..933a55e
--- /dev/null
+++ b/meap/ch7/src/main.rs
@@ -0,0 +1,17 @@
+#[macro_use]
+extern crate serde_derive;
+extern crate serde;
+extern crate serde_json;
+extern crate bincode;
+
+#[derive(Serialize, Deserialize)]
+struct City {
+ name: String,
+ population: usize,
+ latitude: f64,
+ longitude: f64,
+}
+
+fn main() {
+ println!("Hi, world!");
+}