Merge commit 'd803bfe2b1fe7f5e219e50ac20d6801a0a58ac75' as 'vendor/ruvector'
This commit is contained in:
12
vendor/ruvector/crates/ruvector-verified-wasm/src/utils.rs
vendored
Normal file
12
vendor/ruvector/crates/ruvector-verified-wasm/src/utils.rs
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
//! WASM utility helpers.
|
||||
|
||||
/// Set panic hook for better panic messages in the browser.
|
||||
pub fn set_panic_hook() {
|
||||
// No-op if console_error_panic_hook is not available.
|
||||
// In production, add the crate and feature for better diagnostics.
|
||||
}
|
||||
|
||||
/// Log a message to the browser console.
|
||||
pub fn console_log(msg: &str) {
|
||||
web_sys::console::log_1(&msg.into());
|
||||
}
|
||||
Reference in New Issue
Block a user