Skip to content

Commit 36f9d82

Browse files
authored
Release v6.2.1 (#108)
* Release `v6.2.1` * Update README.md
1 parent d1f78de commit 36f9d82

File tree

6 files changed

+202
-47
lines changed

6 files changed

+202
-47
lines changed

CHANGELOG

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v6.2.1
2+
- Add `prefix_with` and `suffix_with`.
3+
- Bump dependencies.
4+
15
## v6.2.0
26
- Adjust generics order.
37
- Bump dependencies.

Cargo.lock

+104-38
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ license = "Apache-2.0/GPL-3.0"
1818
name = "array-bytes"
1919
readme = "README.md"
2020
repository = "https://github.com/hack-ink/array-bytes"
21-
version = "6.2.0"
21+
version = "6.2.1"
2222

2323
[profile.ci-dev]
2424
incremental = false

README.md

+10-7
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@
5151
- type `[u8; N] -> String`, `N = { [1, 64], 128, 256, 512 }`
5252
- type `&[u8] -> String`
5353

54+
#### `slice` prefixed functions
55+
- Build fixed length `Array` from `Slice`
56+
- type `&[T] -> [T; N]`
57+
- Transform `Slice` to `G`
58+
- type `&[T] -> G`
59+
- e.g. `&[0_u8, ...] -> [u8; 20] -> H160`
60+
61+
#### `prefix` and `suffix` functions
62+
- Prefixes/suffixes the given element to the given slice to make it a fixed-size array of length `N`.
63+
5464
#### `bytes` prefixed functions
5565
- Convert bytes to hex
5666
- type `AsRef<[u8]> -> String`
@@ -69,13 +79,6 @@
6979
- type `AsRef<[u8]> -> T`
7080
- e.g. `"0x..." -> [u8; 20] -> H160`
7181

72-
#### `slice` prefixed functions
73-
- Build fixed length `Array` from `Slice`
74-
- type `&[T] -> [T; N]`
75-
- Transform `Slice` to `G`
76-
- type `&[T] -> G`
77-
- e.g. `&[0_u8, ...] -> [u8; 20] -> H160`
78-
7982
#### `vec` prefixed functions
8083
- Build fixed length `Array` from `Vec`
8184
- type `Vec<T> -> [T; N]`

0 commit comments

Comments
 (0)