mirror of
https://github.com/speice-io/isomorphic-rust
synced 2024-11-14 03:58:38 -05:00
11 lines
265 B
Rust
11 lines
265 B
Rust
use std::env::var;
|
|
use std::fs::copy;
|
|
use std::path::Path;
|
|
|
|
fn main() {
|
|
copy(
|
|
Path::new(&format!("app/target/wasm32-unknown-unknown/{}/app.wasm", var("PROFILE").unwrap())),
|
|
Path::new("src/app.wasm")
|
|
).expect("Unable to copy WASM bundle");
|
|
}
|