this post was submitted on 24 Feb 2026
147 points (96.8% liked)

Programmer Humor

41802 readers
12 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] HiddenLayer555@lemmy.ml 8 points 1 month ago (1 children)

Just write the Rust build configuration as a Rust struct at this point.

[โ€“] anton@lemmy.blahaj.zone 3 points 1 month ago

If you want to load at runtime you can use https://docs.rs/ron/latest/ron/. The structs are a weird combination of the two ways to define a struct in rust, making the ron notation of structs invalid rust, but having proper enums makes it worth it.