pixels/MSRV.md
Jay Oster 2a4ebbf19d
Fix half-pixel offsets in scaling renderer (#231)
* Fix half-pixel offsets in scaling renderer

- This bug was very subtle. It can be hard to notice!
- Context: When the scaling renderer transformation matrix is created,
  it needs to center the image within the border.
- The previous code always evaluated the translation to (0, 0)
- This PR makes half-pixel adjustments to the translation when needed,
  making it impossible to rasterize the texture on a half-pixel
  boundary.
- I spotted this while working on pixel-aspect-ratio support, but it can
  most easily be witnessed in the `conway` example by grabbing the top
  or bottom resize handle on the window and slow dragging it up and down
  by 1-pixel-at-a-time. When you hit a half-pixel bug the entire texture
  will change slightly; some pixels will become hidden or duplicated.

* Bump MSRV
2021-12-01 21:36:56 -08:00

24 lines
1.2 KiB
Markdown

# Minimum Supported Rust Version
| `pixels` version | `rustc` version |
|------------------|-----------------|
| `0.9.0` | `1.53.0` |
| `0.8.0` | `1.52.0` |
| `0.7.0` | `1.52.0` |
| `0.6.0` | `1.52.0` |
| `0.5.0` | `1.52.0` |
| `0.4.0` | `1.52.0` |
| `0.3.0` | `1.51.0` |
| `0.2.0` | `1.41.0` |
| `0.1.0` | `1.41.0` |
| `0.0.4` | `1.40.0` |
| `0.0.3` | `1.40.0` |
| `0.0.2` | `1.36.0` |
| `0.0.1` | `1.36.0` |
## Policy
The table above will be kept up-to-date in lock-step with CI on the main branch in GitHub. It may contain information about unreleased and yanked versions. It is the user's responsibility to consult with the [`pixels` versions page](https://crates.io/crates/pixels/versions) on `crates.io` to verify version status.
The MSRV will be chosen as the minimum version of `rustc` that can successfully pass CI, including documentation, lints, and all examples. For this reason, the minimum version _supported_ may be higher than the minimum version _required_ to compile the `pixels` crate itself.