NewYour coding agent can read the release notes before it upgrades.Set up the MCP server โ
crates.io
crates.io, #3191 most downloaded on crates.io
frunk_derives contains the custom derivations for certain traits in Frunk.
Latest stable
0.5.0
Last release 4 months ago
04 Jul 2026
Ships fairly regularly
a new release about every 9 months
Some releases are documented
notes for 14 of 38 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
38 releases ยท first in 2017
Drag across the ruler to compare, or tap a release to open it.
Please see the changelog for details
Please see the changelog for details
Generic support for enum representations (https://github.com/lloydmeta/frunk/pull/252)Your coding agent can read these notes before it upgrades. Set up the MCP server โ
Please see the changelog for details
Please see the changelog for details
Much thanks to the efforts of @CobaltCause.
See changelog for details.
Much thanks to the efforts of @CobaltCause.
proc-macro-hack machinery (proc-macros-impl) (https://github.com/lloydmeta/frunk/pull/214)Lots of good stuff thanks to team work from a number of contributors (incl steffahn , kpp , agluszak , rosefromthedead , and BGR360 )
Lots of good stuff thanks to team work from a number of contributors (incl steffahn, kpp, agluszak, rosefromthedead, and BGR360)
From the Changelog
Hcons::sculpt (https://github.com/lloydmeta/frunk/pull/194)extract to get value out of 1-type coproduct (https://github.com/lloydmeta/frunk/pull/201)Coproduct::map (https://github.com/lloydmeta/frunk/pull/204)[Breaking change] Rename Hlist! type macro to HList!
Lots of good stuff thanks to team work from a number of contributors (incl @mbrobbel, @ImmemorConsultrixContrarie , @ExpHP)
From the Changelog
Hlist! type macro to HList! (#132)HList.length() (#125)HFoldRightable rework: now HFoldRightable::foldr does not differ from HFoldLeftable::foldl in calling, like std::iter::DoubleEndedIterator::rfold does not differ from std::iter::Iterator::fold. Note: though foldr behavior wasn't changed, all old foldr calls would either stop compiling or produce wrong results (#171)Hlist! type macro to HList! (https://github.com/lloydmeta/frunk/issues/132)HList.length() (https://github.com/lloydmeta/frunk/issues/125)HFoldRightable rework: now HFoldRightable::foldr does not differ from HFoldLeftable::foldl in calling, like std::iter::DoubleEndedIterator::rfold does not differ from std::iter::Iterator::fold. Note: though foldr behavior wasn't changed, all old foldr calls would either stop compiling or produce wrong results (https://github.com/lloydmeta/frunk/issues/171)Allow folding hlist with a single Poly
Add support for deriving LabelledGeneric on enums
Note: this is a breaking change, see the PR for details
Box, Option, Vec and more.Added ToMut trait, which allows borrowing mutably from a Coproduct or HList.
ToMut trait, which allows borrowing mutably from a Coproduct or HList.#[derive(LabelledGeneric)] on tuple structsPath model and PathTraverser trait, which allows for composable lens-like-usage$crate::Skipped due to release mis-steps
Adds support for transmogrifying data of different types
Adds support for transmogrifying data of different types
#[macro_use]
extern crate frunk_core;
use frunk::labelled::Transmogrifier;
#[derive(LabelledGeneric)]
struct InternalPhoneNumber {
emergency: Option<usize>,
main: usize,
secondary: Option<usize>,
}
#[derive(LabelledGeneric)]
struct InternalAddress<'a> {
is_whitelisted: bool,
name: &'a str,
phone: InternalPhoneNumber,
}
#[derive(LabelledGeneric)]
struct InternalUser<'a> {
name: &'a str,
age: usize,
address: InternalAddress<'a>,
is_banned: bool,
}
#[derive(LabelledGeneric, PartialEq, Debug)]
struct ExternalPhoneNumber {
main: usize,
}
#[derive(LabelledGeneric, PartialEq, Debug)]
struct ExternalAddress<'a> {
name: &'a str,
phone: ExternalPhoneNumber,
}
#[derive(LabelledGeneric, PartialEq, Debug)]
struct ExternalUser<'a> {
age: usize,
address: ExternalAddress<'a>,
name: &'a str,
}
let internal_user = InternalUser {
name: "John",
age: 10,
address: InternalAddress {
is_whitelisted: true,
name: "somewhere out there",
phone: InternalPhoneNumber {
main: 1234,
secondary: None,
emergency: Some(5678),
},
},
is_banned: true,
};
/// Boilerplate-free conversion of a top-level InternalUser into an
/// ExternalUser, taking care of subfield conversions as well.
let external_user: ExternalUser = internal_user.transmogrify();
let expected_external_user = ExternalUser {
name: "John",
age: 10,
address: ExternalAddress {
name: "somewhere out there",
phone: ExternalPhoneNumber {
main: 1234,
},
}
};
assert_eq!(external_user, expected_external_user);
Upgraded syn and quote versions in frunk_derives.
Upgraded syn and quote versions in frunk_derives.
Lock-step bump in versions for all libs to keep things straightforward.
A big step forward in terms of utility, ergonomics and correctness ๐พ
A big step forward in terms of utility, ergonomics and correctness ๐พ
All thanks to the addition of 2 main new contributors @Centril and @ExpHP ๐ ๐
frunk now adheres to semantic versioning!frunk.frunk::prelude for extension traits and similar.Coproduct::embed and Coproduct::subset....tail argument in each of the HList and Coproduct macros.Func trait, an alternative to Fn that can be implemented on stable.Poly wrapper type and poly_fn! macro, which use Func to provide
order-free mapping.map_repr and map_intern for Generic, convenience methods for
temporarily converting an object into its generic representation or
a similar type.use what you need. Many of the other changes listed
help accomodate this.with-serde feature to serde, in line with convention.CoprodInjector, HMappable,
and HFold{Left,Right}able.hlist::IntoReverse to accompany Func in the new traits module.hlist::{Here, There, Suffixed} to a new indices module.Here is no longer an empty type. We have... plans.
:japanese_ogre:labelled to labelled::chars.list.to_ref().map(...),
where formerly as_ref() was used. The new to_ref() trait composes
orthogonally to many other features of HList and Coproduct, and relieves
frunk from providing impls for &HCons that can be susceptible to the
dreaded "Overflow evaluating _: std::marker::Sized" error.AsRef impls on HList and Coproduct, which were only
present to support the old as_ref().map(...) pattern.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.