Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Builder on cfg(not(any(unix, windows)))
- cfg(target_arch = "wasm32") would panic if you tried to do any std::fs Builder stuff, which was fine for wasm32-unknown-unknown and wasm32-unknown-emscripten, but not good for wasm32-wasi, which has a file system. (Might still want a specialised implementation for wasm32-wasi: std::os::wasi::fs::FileTypeExt is currently unstable, but offers is_block_device, is_character_device, is_socket_dgram and is_socket_stream. But this one is good to start with.) - cfg(not(any(unix, windows, target_arch = "wasm32"))) would fail to compile (… unless you disabled the builder feature, since my previous commit). Now it all works pretty decently.
- Loading branch information
1 parent
2fb7496
commit b031dee
Showing
1 changed file
with
39 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters