2 votes

How to make your C codebase rusty: rewriting keyboard firmware keymap in Rust

1 comment

  1. anahata
    Link
    I'm learning Rust for work right now, and I have to say that I've only ever had awful experiences with the C preprocessor. I avoid its use wherever I can except for very simple #defines (and in a...

    I'm learning Rust for work right now, and I have to say that I've only ever had awful experiences with the C preprocessor. I avoid its use wherever I can except for very simple #defines (and in a lot of cases those can just be const static). Seeing the Rust macros, while still a little messy, is a marked improvement.

    And also seeing how simple the C/Rust interop is is very encouraging, and totally unrelated to plans I have to take over the worldrewrite some awful old work code in Rust. Totally unrelated. Honest.

    1 vote