[GH-ISSUE #3] Support for ron #1

Closed
opened 2026-05-22 22:04:57 +01:00 by JakeStanger · 1 comment
Owner

Originally created by @JustSimplyKyle on GitHub (May 2, 2023).
Original GitHub issue: https://github.com/JakeStanger/universal-config-rs/issues/3

https://github.com/ron-rs/ron
Gotta say, I like ron pretty much.

GameConfig( // optional struct name
    window_size: (800, 600),
    window_title: "PAC-MAN",
    fullscreen: false,
    
    mouse_sensitivity: 1.4,
    key_bindings: {
        "up": Up,
        "down": Down,
        "left": Left,
        "right": Right,
        
        // Uncomment to enable WASD controls
        /*
        "W": Up,
        "A": Down,
        "S": Left,
        "D": Right,
        */
    },
    
    difficulty_options: (
        start_difficulty: Easy,
        adaptive: false,
    ),
)
Originally created by @JustSimplyKyle on GitHub (May 2, 2023). Original GitHub issue: https://github.com/JakeStanger/universal-config-rs/issues/3 https://github.com/ron-rs/ron Gotta say, I like ron pretty much. ```rust,ignore GameConfig( // optional struct name window_size: (800, 600), window_title: "PAC-MAN", fullscreen: false, mouse_sensitivity: 1.4, key_bindings: { "up": Up, "down": Down, "left": Left, "right": Right, // Uncomment to enable WASD controls /* "W": Up, "A": Down, "S": Left, "D": Right, */ }, difficulty_options: ( start_difficulty: Easy, adaptive: false, ), ) ```
Author
Owner

@JakeStanger commented on GitHub (May 3, 2023):

Easy enough. I'll have a release out shortly.

<!-- gh-comment-id:1533557886 --> @JakeStanger commented on GitHub (May 3, 2023): Easy enough. I'll have a release out shortly.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/universal-config-rs#1
No description provided.