Understanding JSON and Serde in Rust

Modern data exchange relies on the translation between language-specific memory structures and portable wire formats, a process dominated by the JSON standard. In the Rust ecosystem, this is handled by Serde, a framework that utilizes a unified data model to decouple data logic from format syntax. By leveraging compile-time code generation and zero-copy deserialization, the serde_json crate provides a high-performance implementation that bridges JSON's flexibility with Rust's strict requirements for type safety and memory efficiency.

This post explores the technical specifications of JSON, the three-tier architecture of the Serde framework, and the implementation details of serde_json that make it the industry standard for high-performance serialization.

Read more  ↩︎

Learning HashMaps in Rust by Solving 10 Small Problems

HashMaps are one of the most common data structures in Rust, and also one of the first places where ownership, borrowing, and references really start to matter.

This post walks through 10 progressively more complex exercises that cover almost every practical HashMap pattern you'll use in real Rust code. Each exercise focuses on one idea, uses idiomatic Rust, highlights ownership and borrowing decisions, and builds on the previous ones.

If you can write and understand all of these, you're no longer "learning HashMap". You're using it fluently.

Read more  ↩︎