rpstate 0.2.0

Type-safe reactive persistence for Rust GUI apps...
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use rpstate_macros::rpstate;

#[rpstate(prefix = "app")]
pub struct AppConfig {
    #[state(default = 8080)]
    pub port: u16,

    #[state(default = "localhost".to_string(), volatile)]
    pub session_id: String,
}

fn main() {}