Skip to content

Commit

Permalink
Update changelog, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
danlehmann committed Dec 3, 2024
1 parent c1fa55e commit cb6b171
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
# Changelog

## arbitrary-int 1.2.8
## arbitrary-int 1.3.0

### Added

- New optional feature `hint`, which tells the compiler that the returned `value()` can't exceed a maximum value. This
allows the compiler to optimize faster code at the expense of unsafe code within arbitrary-int itself.
- Various new const constructors: `new_u8`, `new_u16`, ..., `new_u128` which allow creating an arbitrary int without
type conversion, e.g. `u5::new_u32(i)` (where i is e.g. u32). This is shorter than writing
`u5::new(i.try_into().unwrap())`,
and combines two possible panic paths into one. Also, unlike `try_into().unwrap()`, the new constructors are usable in
const contexts.
- For non-const contexts, `new_()` allows any Number argument to be passed through generics.
- `as_()` easily converts any Number to another. `as_u8()`, `as_u16()` for more control (and to implement the others).
- New optional feature `borsh` to support binary serialization using the borsh crate.

## arbitrary-int 1.2.7

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "arbitrary-int"
version = "1.2.7"
version = "1.3.0"
edition = "2021"
authors = ["Daniel Lehmann <[email protected]>"]
description = "Modern and lightweight implementation of u2, u3, u4, ..., u127."
Expand Down

0 comments on commit cb6b171

Please sign in to comment.