maze_wasm/
lib.rs

1
2
3
4
5
6
7
8
9
10
// Export modules that are not tied to any specific build mode
pub mod wasm_common;

// Export 'wasm' module if not in wasm-bindgen mode
#[cfg(not(feature = "wasm-bindgen"))]
pub mod wasm;

// Export 'wasm_bindgen' module if in wasm-bindgen mode
#[cfg(feature = "wasm-bindgen")]
pub mod wasm_bindgen;