Choices - a crate for simple HTTP configuration

Hello!
choices is a simple crate to expose a service configuration over HTTP.

You can declare your configuration with a struct:

#[derive(Choices)]
struct Config {
    debug: bool,
    log_file: String,
}

and choices generates an HTTP server with GET methods to retrieve the fields values and PUT methods to change them.

You can attach callbacks and custom validation functions to the fields of the struct.

repo: https://github.com/Trisfald/choices

2 Likes

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.