deployramp 0.1.3

DeployRamp SDK - Feature flag management for Rust
Documentation
1
2
3
4
5
6
7
8
use std::sync::OnceLock;
use uuid::Uuid;

static USER_ID: OnceLock<String> = OnceLock::new();

pub fn get_user_id() -> &'static str {
    USER_ID.get_or_init(|| Uuid::new_v4().to_string())
}