From 7dcf6a5d7a4af8bfe3d072e32ef8fe0dd9d17b4d Mon Sep 17 00:00:00 2001 From: tamasfe Date: Tue, 26 Jul 2022 14:51:22 +0200 Subject: [PATCH] chore(defs): no stdio on wasm --- src/api/definitions/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/definitions/mod.rs b/src/api/definitions/mod.rs index df09cbb1..53ffe6f3 100644 --- a/src/api/definitions/mod.rs +++ b/src/api/definitions/mod.rs @@ -75,7 +75,7 @@ impl<'e> Definitions<'e> { /// /// This function will create the directory path if it does not yet exist, /// it will also override any existing files as needed. - #[cfg(not(feature = "no_std"))] + #[cfg(all(not(feature = "no_std"), not(target_family = "wasm")))] pub fn write_to_dir(&self, path: impl AsRef) -> std::io::Result<()> { use std::fs;