NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #1076 most downloaded on crates.io
More compact Cow
Latest stable
0.5.2
Last release 4 years ago
no release in 18 months
Release timing varies
gaps range from 8 days to 10 months
Nearly every release is documented
notes for 16 of 17 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
17 releases · first in 2020
Drag across the ruler to compare, or tap a release to open it.
Fix to pointer provenance for owned Cow (#47), thanks to @Nilstrieb.
Cow<str> (#47), thanks to @Nilstrieb.Cow<str> (#47), thanks to @Nilstrieb.The Deserialize implementation for beef::Cow using the impl_serde feature is now specialized, and will produced a borrowed variant if possible, which
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.Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fixed soundness issues around the Sync and Send markers (#37, #38. #39).
Sync and Send markers (#37, #38. #39).Unpin impl (#39).Implemented Default on Cow (#32).
Default on Cow (#32).Added PartialOrd and Ord, and fixed Eq impls (#28, #29).
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::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.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.Beef trait has been reworked and now has only two methods: owned_into_parts, which takes the owned value and returns a NonNull fat pointer and capacit
Beef trait has been reworked and now has only two methods: owned_into_parts, which takes the owned value and returns a NonNull fat pointer and capacity, and owned_from_parts which takes a NonNull fat pointer and capacity and reconstructs the owned value.&mut [T] as *mut [T] by constructing the fat pointer from parts internally.+ Added no_std support (#5).
no_std support (#5).const_fn feature that makes Cow::borrow a const fn, usable on nightly only (#3).
const_fn feature that makes Cow::borrow a const fn, usable on nightly only (#3).Switched from &T to NonNull internally to avoid soundness issues.
&T to NonNull<T> internally to avoid soundness issues.beef::Cow and std::Cow can now be converted to one another using the From and Into traits.
beef::Cow and std::borrow::Cow can now be converted to one another using the From and Into traits.Added more std trait implementations.
Nothing published for this version
One column per quarter.