Skip to content

Commit

Permalink
Release v6.2.1 (#108)
Browse files Browse the repository at this point in the history
* Release `v6.2.1`

* Update README.md
  • Loading branch information
aurexav authored Dec 6, 2023
1 parent d1f78de commit 36f9d82
Show file tree
Hide file tree
Showing 6 changed files with 202 additions and 47 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v6.2.1
- Add `prefix_with` and `suffix_with`.
- Bump dependencies.

## v6.2.0
- Adjust generics order.
- Bump dependencies.
Expand Down
142 changes: 104 additions & 38 deletions 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
Expand Up @@ -18,7 +18,7 @@ license = "Apache-2.0/GPL-3.0"
name = "array-bytes"
readme = "README.md"
repository = "https://github.com/hack-ink/array-bytes"
version = "6.2.0"
version = "6.2.1"

[profile.ci-dev]
incremental = false
Expand Down
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@
- type `[u8; N] -> String`, `N = { [1, 64], 128, 256, 512 }`
- type `&[u8] -> String`

#### `slice` prefixed functions
- Build fixed length `Array` from `Slice`
- type `&[T] -> [T; N]`
- Transform `Slice` to `G`
- type `&[T] -> G`
- e.g. `&[0_u8, ...] -> [u8; 20] -> H160`

#### `prefix` and `suffix` functions
- Prefixes/suffixes the given element to the given slice to make it a fixed-size array of length `N`.

#### `bytes` prefixed functions
- Convert bytes to hex
- type `AsRef<[u8]> -> String`
Expand All @@ -69,13 +79,6 @@
- type `AsRef<[u8]> -> T`
- e.g. `"0x..." -> [u8; 20] -> H160`

#### `slice` prefixed functions
- Build fixed length `Array` from `Slice`
- type `&[T] -> [T; N]`
- Transform `Slice` to `G`
- type `&[T] -> G`
- e.g. `&[0_u8, ...] -> [u8; 20] -> H160`

#### `vec` prefixed functions
- Build fixed length `Array` from `Vec`
- type `Vec<T> -> [T; N]`
Expand Down
Loading

0 comments on commit 36f9d82

Please sign in to comment.