mirror of
https://github.com/eliasstepanik/voxel-simulation.git
synced 2026-01-10 21:38:29 +00:00
11 lines
332 B
Rust
11 lines
332 B
Rust
use std::fs;
|
|
use std::path::Path;
|
|
|
|
fn main() {
|
|
let out_dir = std::env::var("OUT_DIR").unwrap();
|
|
let target_dir = Path::new(&out_dir).ancestors().nth(3).unwrap(); // gets target/debug or release
|
|
|
|
fs::copy("Config.toml", target_dir.join("Config.toml"))
|
|
.expect("Failed to copy Config.toml to target directory");
|
|
}
|