12 lines
250 B
Rust
12 lines
250 B
Rust
use std::fs;
|
|
|
|
fn main() {
|
|
println!("cargo:rerun-if-changed=index.html");
|
|
|
|
let _ = fs::create_dir_all("pkg");
|
|
|
|
if let Err(e) = fs::copy("index.html", "pkg/index.html") {
|
|
eprintln!("Error: Couldn't copy index.html: {}", e);
|
|
}
|
|
}
|