aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbrian cully <bjc@spork.org>2025-12-26 12:04:14 -0500
committerbrian cully <bjc@spork.org>2025-12-26 12:04:14 -0500
commitfa3067a16f8ba06ee756eb2b2293be4cb728681d (patch)
tree41b5ab1e76e12be764d4f6481febe49862bf8ea1 /src
downloadpolyring-fa3067a16f8ba06ee756eb2b2293be4cb728681d.tar.gz
polyring-fa3067a16f8ba06ee756eb2b2293be4cb728681d.zip
add bouncing particles
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
new file mode 100644
index 0000000..66bafe7
--- /dev/null
+++ b/src/lib.rs
@@ -0,0 +1,11 @@
+use log::{Level, error, info};
+use wasm_bindgen::prelude::*;
+use web_sys::js_sys;
+
+#[wasm_bindgen(start)]
+pub fn init() -> Result<(), JsValue> {
+ console_log::init_with_level(Level::Debug).expect("couldn't init console log");
+ info!("wasm init");
+
+ Ok(())
+}