akiflow_rust 0.3.1

Wrapper for the rrule crate to be used in Akiflow.
Documentation
1
2
3
4
5
6
7
use uuid::Uuid;

pub fn generate_stable_uuid(base_uuid: &str, name: &str) -> Result<String, uuid::Error> {
    let ns = Uuid::parse_str(base_uuid)?;
    let id = Uuid::new_v5(&ns, name.as_bytes());
    Ok(id.to_string())
}