55 karma · joined December 26, 2025
Couldn't agree more, both on proc macros and operating system, I did not find sufficient information on the internet. That is exactly the purpose of this book.
The macro explained in that section was mainly for me to learn macros, and save up some boilerplate with nice syntax.
While there were alternatives with 3rd party libraries, the goal of the project is to implement and learn as much as I can.
Most of the guides I found online explained the concept great, but created only a simple macro as an example. So I decided to write about it myself too, with a real usage to create a bitfields attribute proc-macro, that takes a struct and turns it into bitfields.
Hope you will have a great read!
The main goal is to teach operating systems and Rust.
This is still 'beta' and a lot of things are missing (especially Rust chapters) but I would like to know what you think if it :)
Hopefully, also networking
This is something I will improve when the initial release will come
In every chapter I try to initially explain the topic and then implement, or something in between. but I think the implementation is important because it completes the picture.
The book is still on development and this is why I didn't even publish it here, I just recently finished the highlighter which was a lot of work, and I probably will require more.
Currently I am trying to make book and OS unique by developing and creating an explanation on AHCI, which I didn't see much on the internet. And then I try to handle all of the grammar, and typos