chore(defs): no stdio on wasm
This commit is contained in:
parent
6d4b5095d2
commit
7dcf6a5d7a
@ -75,7 +75,7 @@ impl<'e> Definitions<'e> {
|
|||||||
///
|
///
|
||||||
/// This function will create the directory path if it does not yet exist,
|
/// This function will create the directory path if it does not yet exist,
|
||||||
/// it will also override any existing files as needed.
|
/// 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::path::Path>) -> std::io::Result<()> {
|
pub fn write_to_dir(&self, path: impl AsRef<std::path::Path>) -> std::io::Result<()> {
|
||||||
use std::fs;
|
use std::fs;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user