139
TOML (lemmy.ml)
you are viewing a single comment's thread
view the rest of the comments
[-] HiddenLayer555@lemmy.ml 9 points 2 days ago

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

[-] anton 3 points 2 days 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.

this post was submitted on 24 Feb 2026
139 points (100.0% liked)

Programmer Humor

41153 readers
44 users here now

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

Rules:

founded 6 years ago
MODERATORS