skepller@lemmy.world to Programmer Humor@lemmy.mlEnglish · 14 days agoTOMLlemmy.mlimagemessage-square30linkfedilinkarrow-up1140arrow-down14file-text
arrow-up1136arrow-down1imageTOMLlemmy.mlskepller@lemmy.world to Programmer Humor@lemmy.mlEnglish · 14 days agomessage-square30linkfedilinkfile-text
minus-squareHiddenLayer555@lemmy.mllinkfedilinkEnglisharrow-up8arrow-down1·13 days agoJust write the Rust build configuration as a Rust struct at this point.
minus-squareanton@lemmy.blahaj.zonelinkfedilinkarrow-up3·13 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.