aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md
blob: 6efacb0b21af63531393c83da2e19ba2d51462f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# Change Log

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [v0.3.0] - 2021-09-04

### 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])

[#37]: https://github.com/japaric/cast.rs/pull/37
[#40]: https://github.com/japaric/cast.rs/pull/40
[#44]: https://github.com/japaric/cast.rs/pull/44

### Fixed

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

[#23]: https://github.com/japaric/cast.rs/issues/23
[#39]: https://github.com/japaric/cast.rs/issues/39
[#42]: https://github.com/japaric/cast.rs/pull/42
[#43]: https://github.com/japaric/cast.rs/pull/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])

[#35]: https://github.com/japaric/cast.rs/issues/35
[#41]: https://github.com/japaric/cast.rs/pull/41

## [v0.2.7] - 2021-07-03

### Changed

- Bumped `rustc_version` dependency to v0.4.0

## [v0.2.6] - 2021-05-15

### Changed

- Bumped `rustc_version` dependency

## [v0.2.5] - 2021-04-13

### Fixed

- Build on platforms with 32-bit pointers

## [v0.2.4] - 2021-04-11 - YANKED

## [v0.2.3] - 2018-11-17

### 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

## [v0.2.2] - 2017-05-07

### Fixed

- UB in the checked cast from `f32` to `u128`.

## [v0.2.1] - 2017-05-06

### Added

- Support for 128-bit integers, behind the `x128` Cargo feature (nightly
  needed).

## [v0.2.0] - 2017-02-08

### 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.

## v0.1.0 - 2016-02-07

Initial release

[Unreleased]: https://github.com/japaric/cast.rs/compare/v0.3.0...HEAD
[v0.3.0]: https://github.com/japaric/cast.rs/compare/v0.2.7...v0.3.0
[v0.2.7]: https://github.com/japaric/cast.rs/compare/v0.2.6...v0.2.7
[v0.2.6]: https://github.com/japaric/cast.rs/compare/v0.2.5...v0.2.6
[v0.2.5]: https://github.com/japaric/cast.rs/compare/v0.2.4...v0.2.5
[v0.2.4]: https://github.com/japaric/cast.rs/compare/v0.2.3...v0.2.4
[v0.2.3]: https://github.com/japaric/cast.rs/compare/v0.2.2...v0.2.3
[v0.2.2]: https://github.com/japaric/cast.rs/compare/v0.2.1...v0.2.2
[v0.2.1]: https://github.com/japaric/cast.rs/compare/v0.2.0...v0.2.1
[v0.2.0]: https://github.com/japaric/cast.rs/compare/v0.1.0...v0.2.0