ambient_git_rev 0.3.1

Ambient git revision helper. Host-only.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use once_cell::sync::OnceCell;

pub static REV_FULL: OnceCell<String> = OnceCell::new();
pub static REV_10: OnceCell<String> = OnceCell::new();

pub fn get() -> String {
    REV_FULL
        .get()
        .expect("git_rev not initialized. Did you forget to call `ambient_git_rev_init::init()`?")
        .clone()
}