rcman-derive 0.1.2

Derive macros for rcman settings library
Documentation

Derive macros for rcman settings library

This crate provides #[derive(SettingsSchema)] for automatically generating settings schema implementations.

Usage

use rcman::SettingsSchema;

#[derive(SettingsSchema, Default, Serialize, Deserialize)]
#[schema(category = "general")]
struct GeneralSettings {
    #[setting(label = "Enable Tray")]
    tray_enabled: bool,

    #[setting(label = "Port", min = 1024, max = 65535)]
    port: u16,
}