exocore-core 0.1.26

Core of Exocore (Distributed applications framework)
Documentation
1
2
3
4
5
6
7
8
9
use uuid::Uuid;

pub fn generate_id() -> String {
    Uuid::new_v4().to_string()
}

pub fn generate_prefixed_id(prefix: &str) -> String {
    format!("{}{}", prefix, Uuid::new_v4().as_simple())
}