uxn_tal_common/lib.rs
1// Shared utilities and mappers for uxn-tal and uxn-tal-defined
2
3pub mod cache;
4pub use cache::{get_or_write_cached_rom, hash_url, AssemblerError};
5
6use std::path::PathBuf;
7
8pub struct UxnMapper;
9
10impl UxnMapper {
11 pub fn is_available_in_path() -> Option<PathBuf> {
12 #[cfg(not(target_arch = "wasm32"))]
13 {
14 which::which("uxnemu").ok()
15 }
16 #[cfg(target_arch = "wasm32")]
17 {
18 None
19 }
20 }
21 // Add feature support table and mapping logic here
22}