All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
-
no_std
support through astd
crate feature. -
Support for the
wasm32v1-none
target. -
MSRV policy.
-
A
msrv
crate feature that allowsweb-time
to make use of features only available in higher MSRVs. This offers compile-time detection and does not break compilation when enabled with the crates MSRV.- Rust v1.77 +
std
: Enables the use of thef64.nearest
instruction. Which will significantly reduce the instruction count forInstant::now()
. - Rust Nightly: Enables the use of the
f64.trunc
andf64.nearest
instruction. Which will significantly reduce the instruction count forInstant::now()
.
- Rust v1.77 +
- Improve performance of
Instant::now()
by usingf64::round_ties_even()
instead off64::round()
internally. - Removed
js-sys
dependency in favor of custom bindings.
- As
wasm64-*
is not supported,web-time
now falls back tostd
instead of unnecessarily pulling in dependencies on these targets.
1.1.0 - 2024-03-01
- Serde de/serialization support for
SystemTime
through aserde
crate feature.
1.0.0 - 2024-01-14
- V1 release.
0.2.4 - 2023-12-24
web
module containing a platform-specific extension trait toSystemTime
, allowing conversion from and tostd::time::SystemTime
.
- Improve performance of
SystemTime
by usingDuration
internally.
0.2.3 - 2023-10-23
- Improve accuracy of
Instant::now()
.
0.2.2 - 2023-10-08
- Time conversion for
Instant
.
0.2.1 - 2023-10-07 [YANKED]
- Bump MSRV to v1.60.
- Unnecessary
once_cell
dependency.
0.2.0 - 2023-03-28
- Export
TryFromFloatSecsError
without breaking MSRV.
0.1.0 - 2023-03-27
- Initial release.