Sagi21805
Joined 10 months ago
Joined 10 months ago
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