MENU

Fun & Interesting

p2p chat, in rust, from scratch

number 0 7,835 3 months ago
Video Not Working? Fix It Now

Come copy paste with us! https://iroh.computer/docs/examples/gossip-chat 00:00 p2p chat demo 00:49 It's Rust. Don't freak out. 01:38 Install Rust Crash Course 02:19 Hello World, hello cargo 03:17 Editor & Directory Structure 04:01 Hello World main.rs overview 04:55 Adding first crates 06:03 Endpoint 07:09 Use statements & Attributes 07:39 Returning Result Values 08:00 Implicit Return Statements 08:23 Secret Keys 08:51 crates.io & docs.rs 09:52 Endpoint Setup 11:00 Gossip Protocol 13:03 What is gossip 14:53 Topics 16:32 Open & Join Roles 17:52 ? in rust 18:27 Broadcasting "sup?" 20:47 Subscribing to Gossip Events 23:44 Ignoring Local Events 24:59 Signaling 25:52 Tickets 26:54 Serde for serializing & deserializing 27:14 Cargo Crate Features 30:37 Peer Roles 31:25 Clap crate for building CLIs in rust 34:42 Roles, continued 36:03 Full Demo 36:57 Message Types 40:10 Conclusion? 41:33 Full Example 42:31 Conclusion, for real this time

Comment