From 3ad8082a39a7e16a7db826310788826033122cd2 Mon Sep 17 00:00:00 2001 From: Craigory Coppola Date: Wed, 9 Apr 2025 18:18:39 -0400 Subject: [PATCH] fix(core): wasm build should build (#30655) ## Current Behavior There are warnings as well as an error and wasm does not build ## Expected Behavior wasm. builds --- packages/nx/src/native/cache/http_remote_cache.rs | 1 - packages/nx/src/native/cache/mod.rs | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nx/src/native/cache/http_remote_cache.rs b/packages/nx/src/native/cache/http_remote_cache.rs index c4fc4e747f..c2f0d1a478 100644 --- a/packages/nx/src/native/cache/http_remote_cache.rs +++ b/packages/nx/src/native/cache/http_remote_cache.rs @@ -1,6 +1,5 @@ use std::{ env, - error::Error, fs::{self}, io::Read, path::Path, diff --git a/packages/nx/src/native/cache/mod.rs b/packages/nx/src/native/cache/mod.rs index c175d78d80..7d0fab4b09 100644 --- a/packages/nx/src/native/cache/mod.rs +++ b/packages/nx/src/native/cache/mod.rs @@ -1,4 +1,3 @@ -pub mod errors; pub mod expand_outputs; pub mod file_ops; pub mod validate_outputs; @@ -6,4 +5,6 @@ pub mod validate_outputs; #[cfg(not(target_arch = "wasm32"))] pub mod cache; #[cfg(not(target_arch = "wasm32"))] +pub mod errors; +#[cfg(not(target_arch = "wasm32"))] pub mod http_remote_cache;