hyperdeck-monitor/frontend/build.rs

8 lines
331 B
Rust
Raw Permalink Normal View History

2024-05-20 23:04:47 +01:00
fn main() {
// Sorry, I know it's horrible but I don't have the spoons to make it right.
2024-05-22 01:20:03 +01:00
const API_DEFINITION_FILE: &str = "../src/api/message.rs";
2024-05-20 23:04:47 +01:00
println!("cargo:rerun-if-changed={API_DEFINITION_FILE}");
std::fs::copy(API_DEFINITION_FILE, "./src/websocket.rs")
.expect("Failed to copy API definition");
}