You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a json config file that has comments.
It is meant to be edited manually or with a GUI launcher.
Ideally there would be a way to roundtrip the comments in the launcher with rust but I can't find anything.
The minimum I need is a way to serialize default comments.
Maybe something like:
#[derive(Deserialize,Debug,Serialize)]structConfig{#[json5(default_comment = "Number of milliseconds for one game cycle. Default: 25")]ms_per_game_cycle:i32,}
would be serialized into something like:
{
// Number of milliseconds for one game cycle. Default: 25
"ms_per_game_cycle": 25
}
The text was updated successfully, but these errors were encountered:
I have a json config file that has comments.
It is meant to be edited manually or with a GUI launcher.
Ideally there would be a way to roundtrip the comments in the launcher with rust but I can't find anything.
The minimum I need is a way to serialize default comments.
Maybe something like:
would be serialized into something like:
The text was updated successfully, but these errors were encountered: