Fixes and improvements courtesy of Daan (black-puppydog) #6

Merged
glyph merged 13 commits from black_puppydog_fixes into main 2022-10-02 16:43:03 +00:00
1 changed files with 8 additions and 0 deletions
Showing only changes of commit c42af06f02 - Show all commits

View File

@ -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`