Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compiling for wasm32-unknown-emscripten target #519 #568

Merged
merged 3 commits into from Oct 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -18,6 +18,7 @@ Versions with only mechanical changes will be omitted from the following list.
* Fix `DurationRound` is not TZ aware (#495)
* Implement `DurationRound` for `NaiveDateTime`
* Add `DateTime::from_local()` to construct from given local date and time (#572)
* Correct build for wasm32-unknown-emscripten target (#568)

## 0.4.19

Expand Down
4 changes: 2 additions & 2 deletions src/sys.rs
Expand Up @@ -20,11 +20,11 @@ use std::time::{SystemTime, UNIX_EPOCH};
#[path = "sys/stub.rs"]
mod inner;

#[cfg(unix)]
#[cfg(all(unix, not(target_arch = "wasm32"), not(target_env = "sgx")))]
#[path = "sys/unix.rs"]
mod inner;

#[cfg(windows)]
#[cfg(all(windows, not(target_arch = "wasm32"), not(target_env = "sgx")))]
#[path = "sys/windows.rs"]
mod inner;

Expand Down