From c42af06f02e72b254998f657f94f2d194beba53b Mon Sep 17 00:00:00 2001 From: glyph Date: Sun, 2 Oct 2022 17:25:46 +0100 Subject: [PATCH] add instruction to import serde --- part_3_database_follows/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/part_3_database_follows/README.md b/part_3_database_follows/README.md index a2d98d4..ba537c5 100644 --- a/part_3_database_follows/README.md +++ b/part_3_database_follows/README.md @@ -118,6 +118,14 @@ pub struct Peer { } ``` +Before our new code will compile we need to add `serde` to our manifest file. Serde is used to *ser*ialize and *de*serialize data (like our `Peer` struct defined above). + +`Cargo.toml` + +```toml +serde = "1" +``` + In addition to the datastructure itself, we'll implement a couple of methods to be able to create and modify instances of the `struct`. `src/db.rs`