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;