time-rs / time

The most used Rust library for date and time handling.
https://time-rs.github.io
Apache License 2.0
1.09k stars 273 forks source link

Fix Compilation on WebAssembly #527

Closed CryZe closed 1 year ago

CryZe commented 1 year ago

Apparently the latest version of main doesn't compile to WebAssembly if you don't activate the wasm-bindgen feature. Also nowadays the way to check for WebAssembly is different, so I also changed that across the board.

codecov[bot] commented 1 year ago

Codecov Report

Merging #527 (ea0a2f8) into main (01ca01a) will not change coverage. The diff coverage is 100.0%.

@@          Coverage Diff          @@
##            main    #527   +/-   ##
=====================================
  Coverage   98.4%   98.4%           
=====================================
  Files         76      76           
  Lines       8215    8215           
=====================================
  Hits        8082    8082           
  Misses       133     133           
Impacted Files Coverage Δ
time/src/offset_date_time.rs 100.0% <ø> (ø)
time/src/sys/local_offset_at/mod.rs 100.0% <ø> (ø)
time/src/date_time.rs 94.0% <100.0%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

jhpratt commented 1 year ago

Thanks!