17cupsofcoffee / tetra

🎮 A simple 2D game framework written in Rust
MIT License
907 stars 63 forks source link

Update half requirement from 1.8 to 2.2 #333

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Updates the requirements on half to permit the latest version.

Release notes

Sourced from half's releases.

2.2.0

Added

  • Add serialize_as_f32 and serialize_as_string functions when serde cargo feature is enabled. They allowing customizing the serialization by using #[serde(serialize_with="f16::serialize_as_f32")] attribute in serde derive macros. Closes #60.
  • Deserialize now supports deserializing from f32, f64, and string values in addition to its previous default deserialization. Closes #60.

Fixed

  • Add #[inline] on fallback functions, which improved conversion execution on non-nightly rust by up to 50%. By @​Shnatsel.
Changelog

Sourced from half's changelog.

[2.2.0] - 2022-12-30

Added

  • Add serialize_as_f32 and serialize_as_string functions when serde cargo feature is enabled. They allowing customizing the serialization by using #[serde(serialize_with="f16::serialize_as_f32")] attribute in serde derive macros. Closes #60.
  • Deserialize now supports deserializing from f32, f64, and string values in addition to its previous default deserialization. Closes #60.

Fixed

  • Add #[inline] on fallback functions, which improved conversion execution on non-nightly rust by up to 50%. By [@​Shnatsel].

[2.1.0] - 2022-07-18

Added

  • Add support for target_arch spirv. Some traits and functions are unavailble on this architecture. By [@​charles-r-earp].
  • Add total_cmp method to both float types. Closes #55, by [@​joseluis].

[2.0.0] - 2022-06-21

Changed

  • Breaking Change Minimum supported Rust version is now 1.58.
  • Breaking Change std is now enabled as a default cargo feature. Disable default features to continue using no_std support.
  • Migrated to Rust Edition 2021.
  • Added #[must_use] attributes to functions, as appropriate.

Fixed

  • Fix a soundness bug with slice::as_ptr not correctly using mutable reference. By [@​Nilstrieb].

Added

  • Added const conversion methods to both f16 and bf16. These methods never use hardware intrinsics, unlike the current conversion methods, which is why they are separated into new methods. The following const methods were added:
    • from_f32_const
    • from_f64_const
    • to_f32_const
    • to_f64_const
  • Added Neg trait support for borrowed values &f16 and &bf16. By [@​pthariensflame].
  • Added AsPrimitive implementations from and to self, usize, and isize. By [@​kali].

Removed

  • Breaking Change The deprecated serialize cargo feature has been removed. Use serde cargo feature instead.
  • Breaking Change The deprecated consts module has been removed. Use associated constants on f16 instead.
  • Breaking Change The following deprecated functions have been removed:
    • f16::as_bits
    • slice::from_bits_mut
    • slice::to_bits_mut
    • slice::from_bits

... (truncated)

Commits


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 1 year ago

Dependabot tried to update this pull request, but something went wrong. We're looking into it, but in the meantime you can retry the update by commenting @dependabot rebase.

dependabot[bot] commented 1 year ago

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.