Skip to content

Commit

Permalink
Add camel-case variant for future-proofing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexhuszagh committed Dec 21, 2024
1 parent 5f0fb00 commit 94003e6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [0.1.3][v0.1.3] - 2024-12-21 <a name="0.1.3"></a>

## Added

- Add camel-case variants of `f16` as `F16` and `bf16` as `Bf16` for future-proofing.

## [0.1.2][v0.1.2] - 2024-12-12 <a name="0.1.2"></a>

## Added
Expand Down Expand Up @@ -477,6 +483,7 @@ These were all changes for half, which `float16` is a fork of.
<!-- Versions -->

[Unreleased]: https://github.com/starkat99/half-rs/compare/v2.4.1...HEAD
[v0.1.3]: https://github.com/Alexhuszagh/float16/compare/v0.1.2...v0.1.3
[v0.1.2]: https://github.com/Alexhuszagh/float16/compare/v0.1.1...v0.1.2
[v0.1.1]: https://github.com/Alexhuszagh/float16/compare/v0.1.0...v0.1.1
[v0.1.0]: https://github.com/Alexhuszagh/float16/compare/v0.1.0...v2.4.0
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "float16"
# Remember to keep in sync with html_root_url crate attribute
version = "0.1.2"
version = "0.1.3"
authors = ["Kathryn Long <[email protected]>", "Alex Huszagh <[email protected]>"]
description = "Half-precision floating point f16 and bf16 types for Rust implementing the IEEE 754-2008 standard binary16 and bfloat16 types."
repository = "https://github.com/Alexhuszagh/float16"
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
#![allow(unknown_lints)]
#![allow(clippy::verbose_bit_mask, clippy::cast_lossless)]
#![cfg_attr(not(feature = "std"), no_std)]
#![doc(html_root_url = "https://docs.rs/float16/0.1.0")]
#![doc(html_root_url = "https://docs.rs/float16/0.1.3")]
#![doc(test(attr(deny(warnings), allow(unused))))]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

Expand All @@ -75,8 +75,8 @@ mod leading_zeros;
mod slice;
mod try_from;

pub use bfloat::bf16;
pub use binary16::f16;
pub use bfloat::{bf16, bf16 as Bf16};
pub use binary16::{f16, f16 as F16};
pub use error::TryFromFloatError;

#[cfg(not(target_arch = "spirv"))]
Expand Down

0 comments on commit 94003e6

Please sign in to comment.