Skip to content

Latest commit

 

History

History
156 lines (96 loc) · 6.02 KB

CHANGELOG.md

File metadata and controls

156 lines (96 loc) · 6.02 KB

Changelog

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.

Added

  • Added optional support for 3rd party chrono crate (by @xkikeg)

This change (#46) adds support for types from the chrono crate via the chrono and chrono-clock feature flags.

Changed

  • Increased MSRV to 1.64
  • Updated ahash, smol_str and smallvec to the latest versions

Changed

  • Increased MSRV to 1.61

Added

  • Added support for custom RandomState and aHash (by @zhu-he)

This change (#62) adds support for using a custom RandomState with the stdlib HashMap and HashSet types.

It also adds support for the 3rd party AHashMap, AHashSet and RandomState types from the ahash crate via the ahash feature flag.

Changed

  • Increased MSRV to 1.60 and updated all dependency versions

Added

  • Added support for non-zero integer types (by @jakoschiko)

Added

  • Added support for tuples of up to 12 elements
  • Added optional support for 3rd party smartstring::SmartString
  • Added optional support for 3rd party smallvec::SmallVec
  • Added optional support for 3rd party smol_str::SmolStr
  • Added Result and array to the list of documented blanket implementation

Changed

  • Refactored repo and crate directories to bounded-static and bounded-static-derive to match crate names

Fixed

  • Fixed broken crate and documentation links

Fixed

  • Fixed broken links to crate documentation
  • Fixed broken link to LICENCE file

Added

  • Added support for complex generic bounds on struct and enum in the ToStatic derive macro

For example, the following struct is now supported:

#[derive(ToStatic)]
struct Baz<'a, T: Foo>(T, Cow<'a, str>)
    where
        T: Into<String> + 'a + Bar;

This produces (ToBoundedStatic shown, IntoBoundedStatic is also produced):

impl<'a, T: Foo + ::bounded_static::ToBoundedStatic> ::bounded_static::ToBoundedStatic for Baz<'a, T>
where
    T: Into<String> + 'a + Bar + ::bounded_static::ToBoundedStatic,
    T::Static: Foo + Into<String> + 'a + Bar,
{
    type Static = Baz<'static, T::Static>;
    fn to_static(&self) -> Self::Static {
        Baz(self.0.to_static(), self.1.to_static())
    }
}
  • Added ToBoundedStatic and IntoBoundedStatic implementations for the () (unit) type
  • Added ToBoundedStatic and IntoBoundedStatic implementations for the Result<T, E> type
  • Added doc comments for ToBoundedStatic and IntoBoundedStatic impls for all primitive types

Fixed

  • Fixed broken links in documentation
  • Fixed additional Clippy lints and lib.rs crates validation errors

Added

  • Initial release of bounded-static and bounded-static-derive