Versioning fuckup

This commit is contained in:
2023-02-16 20:42:26 +00:00
parent a500f8b87a
commit f967cc46a0
7 changed files with 60 additions and 39 deletions

View File

@@ -0,0 +1,10 @@
use std::sync::atomic::AtomicU64;
use lazy_static::lazy_static;
lazy_static! {
static ref NEXT_NAME: AtomicU64 = AtomicU64::new(0);
}
pub fn get_name() -> u64 {
NEXT_NAME.fetch_add(1, std::sync::atomic::Ordering::Relaxed)
}