NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io · #1051 most downloaded on crates.io
More compact Cow
Last release 4 years ago
no release in 18 months
Release timing varies
gaps range from 8 days to 10 months
Some releases are documented
notes for 10 of 17 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
17 releases · first in 2020
One column per quarter.
Fix to pointer provenance for owned Cow<str> ( #47 ), thanks to @Nilstrieb .
Cow<str> (#47), thanks to @Nilstrieb.The Deserialize implementation for beef::Cow<str> using the impl_serde feature is now specialized, and will produced a borrowed variant if possible, w
Deserialize implementation for beef::Cow<str> using the impl_serde feature is now specialized, and will produced a borrowed variant if possible, which is particularly useful for serde_json (see #44).const_fn feature is internally using a narrower unstable feature gate const_fn_trait_bound (see #41).beef::lean::Cow is two words wide on 64-bit architectures only.Fixed soundness issues around the Sync and Send markers ( #37 , #38 . #39 ).
Implemented Default on Cow ( #32 ).
Default on Cow (#32).Added PartialOrd and Ord , and fixed Eq impls ( #28 , #29 ).
const_str and const_slice are now available for both beef::Cow and beef::Cow .
const_str and const_slice are now available for both beef::Cow and beef::lean::Cow.const_str no longer requires nightly and is available without a feature flag.Added unwrap_borrowed method, thanks @Licenser ( #20 ).
…and &'static [T] respectively. This is the only breaking change this release.
beef::lean::Cow, found thanks to Miri and @RalfJung.impl_serde feature which provides a Serialize and Deserialize trait implementations.is_borrowed and is_owned methods.beef::Cow<'a, T> is now a type alias to beef::generic::Cow<'a, T, Wide> where Wide is private. This doesn't change anything, merely hides Option<NonZeroUsize> as implementation detail and makes errors more readable.const_fn feature now adds two separate functions instead of one: const_str and const_slice for borrowing &'static str and &'static [T] respectively. This is the only breaking change this release.beef::Cow<'a, T> is now a type alias for beef::Cow<'a, T, Option<NonZeroUsize>> .
beef::Cow<'a, T> is now a type alias for beef::generic::Cow<'a, T, Option<NonZeroUsize>>.beef::lean::Cow<'a, T> which is a type alias for beef::generic::Cow<'a, T, Lean>, where Lean is a 0-sized struct. This version of the Cow stores length and capacity together on a single usize, and is only available for 64-bit targets.const_fn now adds Cow::const_borrowed as a separate function. This is not available for beef::lean::Cow.Beef trait has been made private.Reworked pointer casting in owned_from_parts .
owned_from_parts.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
Your coding agent can read these notes before it upgrades. Set up the MCP server →