PackageTrack
Sign in Get early access

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
Release Pre-release Withdrawn

Releases

latest 10
  1. 0.3.0 04 Sep 2021
    Release notes

    Changed

    • (breaking change) The guaranteed MSRV is now 1.31.0. (#40)
    • (breaking change) The std Cargo feature is no longer enabled by default. (#44)
    • 128-bit integer support is now always available by default. (#37)

    Fixed

    • fixed casting 255f32 to u8 returning Error::Overflow (#23, #42)
    • fixed intent of promote-and-back tests (#39, #43)

    Removed

    • (breaking change) The x128 Cargo feature has been removed
    • removed rustc_version and semver build dependencies (#35, #37)
    • removed all internal use of unsafe code (#41)
    Open source →
  2. 0.2.7 03 Jul 2021
    Release notes

    Changed

    • Bumped rustc_version dependency to v0.4.0
    Open source →
  3. 0.2.6 15 May 2021
    Release notes

    Changed

    • Bumped rustc_version dependency
    Open source →
  4. 0.2.5 12 Apr 2021
    Release notes

    Fixed

    • Build on platforms with 32-bit pointers
    Open source →
  5. 0.2.4 11 Apr 2021 withdrawn

    Nothing published for this version

  6. 0.2.3 16 Nov 2019
    Release notes

    Changed

    • Documented the guaranteed MSRV to be 1.13
    • The x128 feature now works on stable Rust 1.26+

    Fixed

    • Overflow and underflow checks when casting a float to an unsigned integer
    Open source →
  7. 0.2.2 07 May 2017
    Release notes

    Fixed

    • UB in the checked cast from f32 to u128.
    Open source →
  8. 0.2.1 06 May 2017
    Release notes

    Added

    • Support for 128-bit integers, behind the x128 Cargo feature (nightly needed).
    Open source →
  9. 0.2.0 09 Feb 2017
    Release notes

    Added

    • Now cast::Error implements the std::error::Error trait among other traits like Display, Clone, etc.

    Changed

    • [breaking-change] This crate now depends on the std crate by default but you can make it no_std by opting out of the std Cargo feature.
    Open source →
  10. 0.1.0 07 Feb 2016
    Release notes

    add crates.io badge to the README

    Open source →
    Release notes

    Initial release

    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive