skepller@lemmy.world to Programmer Humor@lemmy.mlEnglish · 3 days agoTOMLlemmy.mlimagemessage-square28fedilinkarrow-up1143arrow-down15file-text
arrow-up1138arrow-down1imageTOMLlemmy.mlskepller@lemmy.world to Programmer Humor@lemmy.mlEnglish · 3 days agomessage-square28fedilinkfile-text
minus-squareHiddenLayer555@lemmy.mllinkfedilinkEnglisharrow-up9arrow-down1·2 days agoJust write the Rust build configuration as a Rust struct at this point.
minus-squareanton@lemmy.blahaj.zonelinkfedilinkarrow-up3·2 days agoIf 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.
Just write the Rust build configuration as a Rust struct at this point.
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.