mrot 0.1.1

Meal rotator. Record the meals you consume and get suggestions what to cook next.
1
2
3
4
5
6
7
8
9
10
11
//! Build script for the main binary

use std::env::{self, VarError};

/// Sets some environment variables for the main binary
fn main() -> Result<(), VarError> {
    let pkg_name = env::var("CARGO_PKG_NAME")?;
    let pkg_name_uppercase = pkg_name.to_uppercase();
    println!("cargo:rustc-env=PKG_NAME_UPPERCASE={}", pkg_name_uppercase);
    Ok(())
}