Only enable canary-script api module on wasm32

This commit is contained in:
mars 2022-11-02 15:39:32 -06:00
parent 9614eecb82
commit 70a4d5b49b
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,8 @@
use super::*;
use num_traits::FromPrimitive;
pub mod abi;
#[macro_export]

View File

@ -5,8 +5,8 @@ use bitflags::bitflags;
use bytemuck::{Pod, Zeroable};
pub use glam::Vec2;
use num_derive::{FromPrimitive, ToPrimitive};
use num_traits::FromPrimitive;
#[cfg(target_arch = "wasm32")]
pub mod api;
#[repr(C)]