unity-cli 0.7.0

Rust CLI for Unity Editor automation over the Unity TCP protocol
1
2
3
4
5
6
use std::sync::{Mutex, OnceLock};

pub(crate) fn env_lock() -> &'static Mutex<()> {
    static LOCK: OnceLock<Mutex<()>> = OnceLock::new();
    LOCK.get_or_init(|| Mutex::new(()))
}