cast
Ergonomic, checked cast functions for primitive types
0.3.0
241M downloads/mo
#433 most downloaded on crates.io
japaric/cast.rs
What this package is like to depend on
Last release 5 years ago
no release in 18 months
Release timing varies
gaps range from 5 weeks to 2.5 years
Nearly every release is documented
notes for 9 of 9 stable releases
1 version withdrawn
withdrawn after publishing
11 years old
10 releases · first in 2016
0 releases in the last 12 months
see the full history below
Release timeline
10 releases · Feb 2016 to Sep 2021
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Releases
latest 10-
0.3.004 Sep 2021Release notes
Open source →Changed
- (breaking change) The guaranteed MSRV is now 1.31.0. (#40)
- (breaking change) The
stdCargo feature is no longer enabled by default. (#44) - 128-bit integer support is now always available by default. (#37)
Fixed
- fixed casting
255f32tou8returningError::Overflow(#23, #42) - fixed intent of promote-and-back tests (#39, #43)
Removed
-
0.2.703 Jul 2021 -
0.2.615 May 2021 -
0.2.512 Apr 2021 -
0.2.411 Apr 2021 withdrawnNothing published for this version
-
0.2.316 Nov 2019Release notes
Open source →Changed
- Documented the guaranteed MSRV to be 1.13
- The
x128feature now works on stable Rust 1.26+
Fixed
- Overflow and underflow checks when casting a float to an unsigned integer
-
0.2.207 May 2017 -
0.2.106 May 2017Release notes
Open source →Added
- Support for 128-bit integers, behind the
x128Cargo feature (nightly needed).
- Support for 128-bit integers, behind the
-
0.2.009 Feb 2017Release notes
Open source →Added
- Now
cast::Errorimplements thestd::error::Errortrait among other traits likeDisplay,Clone, etc.
Changed
- [breaking-change] This crate now depends on the
stdcrate by default but you can make itno_stdby opting out of thestdCargo feature.
- Now
-
0.1.007 Feb 2016