Skip to content

0.3.10 release

Choose a tag to compare

@rodrimati1992 rodrimati1992 released this 20 Nov 19:17
· 163 commits to main since this release
9ace18d

This release adds a destructure macro to destructure (non-Drop) structs/tuples/arrays into their potentially fields/elements in const.
This macro requires the 1.83.0 Rust release, which will reach the stable channel on 2024-11-28.

0.3

0.3.10

Added "rust_1_83" feature, which enables the "mut_refs" feature.

Added "destructure" macro (requires the "rust_1_83" feature)

Fixed future compatibility warnings

0.3.9

Defined these macros max, max_by, max_by_key, min, min_by, and min_by_key macros.

Re-exported these macros in the konst::cmp module:

  • coerce_to_cmp
  • const_cmp
  • const_cmp_for
  • const_eq
  • const_eq_for
  • impl_cmp
  • max
  • max_by
  • max_by_key
  • min
  • min_by
  • min_by_key

Now the fold and foldr methods in konst::iter::eval can take closures with type-annotated parameters (e.g: |accum: Bar, element: Qux| {)

0.3.8

Removed most Copy restriction of these macros:

  • konst::array::from_fn
  • konst::array::map
  • konst::iter::collect_const
    The pattern of the closure passed to konst::array::map is still required not to move out of the input array.

Improved konst::array::{from_fn, map} macros by allowing its closure parameter to take more unparenthesized patterns.

Improved the konst::iter::{collect_const, eval, for_each} macros by allowing single-parameter closures passed to the macro to annotate the type of the parameter.