How Serde Parses JSON with Derive Macros (in Rust)

Поділитися
Вставка
  • Опубліковано 4 жов 2024
  • In this video we take a look at how to parse JSON in Rust with Serde. We also look at how Serde uses the derive to implement a custom macro in order to process the abstract syntax tree and generate custom serialization and deserialization code. This effectively creates the performance that is comparable to hand-written serialization code in Rust. Finally, we will make a very simple web api with Serde, JSON and Actix-Web to demonstrate how to leverage Serde in a Web Application setting like actix-web.
    ↠ References:
    Serde.rs: serde.rs/
    Actix-Web: actix.rs/
    Proc Macro: doc.rust-lang....
    Serde Derive Macro Code: github.com/ser...
    Recoverable Errors with Result: doc.rust-lang....
    ↠ Dotfiles: github.com/nyx...
    ↠ Twitter: @nyxtom / nyxtom
    ↠ Channel: / nyxtom
    Cheers! 🍻
    🦀 #rust #rustlang #rustprogramming #exercises #programming

КОМЕНТАРІ • 2

  • @andydataguy
    @andydataguy 2 роки тому +1

    Just found your channel. Looks awesome! Thanks for making Rust content

  • @DreadDeimos
    @DreadDeimos 2 роки тому +1

    Hey! Thank you for your videos. I like your way of explaining and reasoning about the code.