Skip to content

v0.4.10

Compare
Choose a tag to compare
@pitdicker pitdicker released this 05 Sep 11:53
· 1077 commits to main since this release
5905935

Compatibility notes

  • Putting some functionality behind an alloc feature to improve no-std support (in #341) means that if you were relying on chrono with no-default-features and using any of the functions that require alloc support (i.e. any of the string-generating functions like to_rfc3339) you will need to add the alloc feature in your Cargo.toml.

Improvements

  • DateTime::parse_from_str is more than 2x faster in some cases. (@michalsrb #358)
  • Significant improvements to no-std and alloc support (This should also make many format/serialization operations induce zero unnecessary allocations) (@CryZe #341)

Features

  • Functions that were accepting Iterator of Items (for example format_with_items) now accept Iterator of Borrow<Item>, so one can use values or references. (@michalsrb #358)
  • Add built-in support for structs with nested Option<Datetime> etc fields (@manifest #302)

Internal/doc improvements

  • Use markdown footnotes on the strftime docs page (@qudlibetor #359)
  • Migrate from try! -> ? (question mark) because it is now emitting deprecation warnings and has been stable since rustc 1.13.0
  • Deny dead code