summaryrefslogtreecommitdiff
path: root/src/audio.rs
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2025-01-18 20:46:08 -0500
committerLLLL Colonq <llll@colonq>2025-01-18 20:46:08 -0500
commit6c00c069ccf08ef5e577c16acc78a5b1f53a0f8f (patch)
treeca0cf7a5e042883cfa7fe95725d8eda35860d56e /src/audio.rs
parent82d1c94d999654bda5d40108393eade80b77342c (diff)
Rework font rendering, configurable resolution
Diffstat (limited to 'src/audio.rs')
-rw-r--r--src/audio.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/audio.rs b/src/audio.rs
index 0dca32e..2b4226c 100644
--- a/src/audio.rs
+++ b/src/audio.rs
@@ -1,4 +1,7 @@
-use std::{cell::RefCell, collections::HashMap};
+use std::collections::HashMap;
+
+#[cfg(target_arch = "wasm32")]
+use std::cell::RefCell;
#[cfg(target_arch = "wasm32")]
pub struct Context {