Reducing boilerplate in Serde serializers with nested Rust macros

The implementation of serde-arrow features many serializers, one for each Arrow data type and some additional serializers to connect everything. Each of these serializers requires the implementation of all of the 28 required methods of the serde::Serializer trait. This combination results in lots of repetitive code. In this post, I would like to explain my attempt to simplify this setup using macros and a trick of writing nested macros I encountered along the way.


Read more

Table of contents

#c++ #htmx #java #js #ml #polars #python #rust #testing

    2025

  1. 2024

  2. 2023

  3. 2022

  4. 2021

  5. 2020

  6. 2019

  7. 2018

  8. 2017

  9. 2016

  10. 2015

  11. 2014

  12. 2013