alexcrichton / filetime

Accessing file timestamps in a platform-agnostic fashion in Rust
Apache License 2.0
122 stars 56 forks source link

Do not crash when compiling to wasm #39

Closed mpizenberg closed 5 years ago

mpizenberg commented 5 years ago

Provide unimplemented functions for wasm32 target. This prevents from crashing when compiling filetime as a dependency of tar-rs. If any of these functions get called though, the program will crash at runtime.

alexcrichton commented 5 years ago

Thanks for this! Instead of panicking where possible though could this return an error? (some functions may still have to panic though)