button-game 1.0.5

eccentric skinner box point-collecting game
Documentation
1
2
3
4
5
6
7
8
9
10
use button_game::database::Database;
use chrono::Utc;

fn main() {
    let db = Database::open();
    let mut profile = db.from_username("test").unwrap();
    profile.data.points = 50;
    profile.data.next = Utc::now();
    db.save_profile(&profile)
}