12 lines
277 B
Rust
12 lines
277 B
Rust
|
|
#[cfg(not(debug_assertions))]
|
|
pub static BASE: &'static str = "https://gpt.42069.no/api";
|
|
#[cfg(debug_assertions)]
|
|
pub static BASE: &'static str = "http://localhost/api";
|
|
|
|
fn main() {
|
|
if cfg!(debug_assertions) {
|
|
println!("cargo::rustc-env=BASE={}", BASE);
|
|
}
|
|
}
|