tsl-umd 0.1.1

TSL UMD tally protocol implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
// Slightly hacky build script that gets sad if you're building in github actions with a tag that doesn't match the crate's version
fn main() {
    if option_env!("DO_HACKY_VERSION_CHECK").is_some()
        && let Some(rf) = option_env!("GITHUB_REF")
        && let Some(cargo_ver) = option_env!("CARGO_PKG_VERSION")
        && let Some(tag) = rf.strip_prefix("refs/tags/")
        && tag != cargo_ver
    {
        println!("cargo::error=Github tag {tag} doesn't match cargo manifest version {cargo_ver}!")
    }
}