diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -180,8 +180,11 @@ #![deny(unsafe_code)] #![deny(rust_2018_idioms)] mod application; -#[cfg_attr(target_arch = "wasm32", path = "web.rs")] -#[cfg_attr(not(target_arch = "wasm32"), path = "native.rs")] +#[cfg(target_arch = "wasm32")] +#[path = "web.rs"] +mod platform; +#[cfg(not(target_arch = "wasm32"))] +#[path = "native.rs"] mod platform; mod sandbox; |