diff --git a/folsum/src/export_csv.rs b/folsum/src/export_csv.rs index ddc7677..80b3087 100644 --- a/folsum/src/export_csv.rs +++ b/folsum/src/export_csv.rs @@ -1,13 +1,18 @@ +#[cfg(not(target_arch = "wasm32"))] use std::collections::HashMap; #[cfg(not(target_arch = "wasm32"))] use std::fs::File; #[cfg(not(target_arch = "wasm32"))] use std::io::Write; +#[cfg(not(target_arch = "wasm32"))] use std::path::PathBuf; +#[cfg(not(target_arch = "wasm32"))] use std::sync::{Arc, Mutex, MutexGuard}; +#[cfg(not(target_arch = "wasm32"))] use std::thread; #[allow(unused)] use log::{debug, error, info, trace, warn}; +#[cfg(not(target_arch = "wasm32"))] use crate::sort_counts; #[cfg(not(target_arch = "wasm32"))] diff --git a/folsum/src/gui.rs b/folsum/src/gui.rs index 29419f2..b6ff343 100644 --- a/folsum/src/gui.rs +++ b/folsum/src/gui.rs @@ -94,6 +94,7 @@ impl eframe::App for FolsumGui { summarization_path, #[cfg(not(target_arch = "wasm32"))] export_file, + #[cfg(not(target_arch = "wasm32"))] summarization_start, time_taken, .. diff --git a/folsum/src/summarize.rs b/folsum/src/summarize.rs index bd4e1e2..87e9657 100644 --- a/folsum/src/summarize.rs +++ b/folsum/src/summarize.rs @@ -1,9 +1,14 @@ +#[cfg(not(target_arch = "wasm32"))] use std::collections::HashMap; +#[cfg(not(target_arch = "wasm32"))] use std::ffi::{OsStr, OsString}; +#[cfg(not(target_arch = "wasm32"))] use std::path::PathBuf; +#[cfg(not(target_arch = "wasm32"))] use std::sync::{Arc, Mutex}; #[cfg(not(target_arch = "wasm32"))] use std::time::{Duration, Instant}; +#[cfg(not(target_arch = "wasm32"))] use std::thread; #[allow(unused)]