copper_rs/
copper.rs

1
2use wasm_bindgen::prelude::*;
3
4#[wasm_bindgen]
5extern {
6    fn copperDeltaTime() -> f64;
7    fn copperLog(text: String);
8}
9
10pub struct Copper;
11
12impl Copper {
13    pub fn log(text: String) { copperLog(text); }
14    pub fn delta_time() -> f64 { copperDeltaTime() }
15}