fix: place ug dep behind not wasm32 flag (#2760)

* place `ug` behind not wasm32 attr

so that wasm32 can compile

* mv `ug` to conditional target dep

assuming every non-wasm32 user wants this
This commit is contained in:
Doug A
2025-02-01 18:05:52 -04:00
committed by GitHub
parent 43017539ab
commit 0af3e428ec
5 changed files with 8 additions and 3 deletions

View File

@ -386,6 +386,7 @@ pub struct UgIOp1 {
impl UgIOp1 {
#[allow(unused)]
#[cfg(not(target_arch = "wasm32"))]
pub fn new(
name: &'static str,
kernel: ug::lang::ssa::Kernel,