NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #627 most downloaded on crates.io
Safe, zero-cost downcasting for limited compile-time specialization.
Latest stable
0.2.4
Last release 1 years ago
12 Jul 2025
Release timing varies
gaps range from 6 weeks to 2.1 years
Nearly every release is documented
notes for 8 of 8 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
8 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
Implement lifetime-free ref and mut casts for unsized type
Enable certain implementations of LifetimeFree for no_std when alloc is available based on alloc feature. @dragazo in https://github.com/sagebind/cast
LifetimeFree for no_std when alloc is available based on alloc feature. @dragazo in https://github.com/sagebind/castaway/pull/13LifetimeFree for tuples. @sagebind in https://github.com/sagebind/castaway/pull/17type_eq_non_static implementation. @dtolnay in https://github.com/sagebind/castaway/pull/14transmute_unchecked introduced by bug in LLVM. @zheland in https://github.com/sagebind/castaway/pull/25Full Changelog: https://github.com/sagebind/castaway/compare/0.2.2...0.2.3
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Ensure that any test or example that requires std in order to compile and run are conditionally compiled behind the std crate feature. (#8, #9)
std crate feature. (#8, #9)Implement LifetimeFree for NonZeroUsize to allow casting to NonZeroUsize from non-'static sources which was missing in the prior release.
LifetimeFree for NonZeroUsize to allow casting to NonZeroUsize from non-'static sources which was missing in the prior release. (#7)A new std crate feature has been added which is enabled by default. To compile castaway in no_std contexts this feature must be enabled using default-
std crate feature has been added which is enabled by default. To compile castaway in no_std contexts this feature must be enabled using default-features = false.String, common wrapper types, etc) in certain contexts, even if the source value is generic without a 'static bound. It is possible to cast this way to any type implementing the newly-introduced LifetimeFree trait. (#5, #6)Allow for casting slices and mutable slices of static item types.
Fix Result not being imported properly in macros, which could result in compilation errors when Result currently refers to another type in the scope i
Result not being imported properly in macros, which could result in compilation errors when Result currently refers to another type in the scope invoked.…to allow for more types of casts without breaking changes.
This is the first release of Castaway. This has the following changes from Castaway's predecessor Transmogrify:
match_type macro now has a slightly different syntax, and match arms must now use irrefutable patterns.One column per quarter.