Releases: Mnwa/ms
Releases · Mnwa/ms
Long reverse ms functions support
Reverse ms functions support
Features
get_duration_by_postfix
function, which converts milliseconds into a human-like time stringget_max_possible_duration
function, which converts milliseconds into a human-like time string without postfix
Optimize release
Features
- Added
+
support
let value = ms("+100").unwrap();
assert_eq!(value, 100)
- Now ms supported only one whitespace between number and postfix
let value = ms("100 ms").unwrap(); // valid
assert_eq!(value, 100)
let value = ms("100 ms").unwrap(); // invalid
assert_eq!(value, 100)
Optimizes
- Now it works on 2x faster! (from 16ns to 8ns)
Doc fixes release
Improvements
- Now
ms
,ms_into_time
andms_expr!
have normal descriptions on index page docs
No std release
Features
- Now
ms_converter
used no_std directive, which makes it possible to use it on embedded devices.
Improvements
- Converted Cow pointer into an str slice, which can save 1-2 ns per call.
- Updated docs on doc.rs
Stable release
Features
- Now
ms
andms_into_time
functions supportString
on input without breaking changes.
Improvements
- Increased performance.
ms
function sped up ~ 60%! From27 ns per iter
to16 ns per iter
on the benches. - Added many new tests.
Update docs release
Now a doc has a examples of supported time strings.
Refactoring improvements
Now it more readable
Small improvements
Add small improvements, now ms search value with bytes
Update docs release
Changes
- Added docs for constants and Error struct