centaurus 0.4.13

A utility library for various use cases.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
fn main() {
  #[cfg(all(not(debug_assertions), feature = "frontend"))]
  {
    let frontend_dir = std::env::var("FRONTEND_DIR").expect("FRONTEND_DIR must be set");
    println!("cargo:rerun-if-env-changed=FRONTEND_DIR");
    println!("cargo:rustc-env=FRONTEND_DIR={}", frontend_dir);

    let frontend_port =
      std::env::var("FRONTEND_URL").unwrap_or_else(|_| "http://localhost:3000".to_string());
    println!("cargo:rerun-if-env-changed=FRONTEND_URL");
    println!("cargo:rustc-env=FRONTEND_URL={}", frontend_port);
  }
}