aid 0.1.1

Rust port of the id generation algorithm use in Misskey
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use aid;
use std::thread::sleep;
use std::time::{Duration, SystemTime};

fn main() {
    for _ in 1..50 {
        let aid = aid::gen(SystemTime::now()).unwrap();
        println!("{}", aid);

        sleep(Duration::from_millis(10));
    }
}