upid 0.3.1

Universally Unique Prefixed Lexicographically Sortable Identifier
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::env;

use upid::Upid;

fn main() {
    let args: Vec<String> = env::args().collect();
    let prefix = match args.get(1) {
        Some(value) => value,
        None => &"".to_string(),
    };
    println!("{}", Upid::from_prefix(prefix).to_string());
}