Skip to content

Commit 82b97d7

Browse files
committed
Release v9.2.2
Signed-off-by: Xavier Lau <[email protected]>
1 parent e26a6e8 commit 82b97d7

File tree

9 files changed

+153
-69
lines changed

9 files changed

+153
-69
lines changed

.editorconfig

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ max_line_length=100
1010
tab_width=4
1111
trim_trailing_whitespace=true
1212

13-
[*.py]
14-
charset=utf-8
13+
[*.{py,slint}]
1514
indent_size=4
1615
indent_style=space
1716

1817
[*.{sh,yml,yaml}]
1918
indent_size=2
2019
indent_style=space
21-
tab_width=8

.gitignore

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
# System
2-
.DS_Store
3-
4-
# Integrated Development Environment
5-
.idea
1+
# Integrated development environment.
62
.vscode
73

8-
# Package Manager
9-
## Cargo
4+
# Package manager.
5+
## Cargo.
106
target
11-
## Npm
12-
package-lock.json
7+
## Python
8+
__pycache__
9+
## NPM.
1310
node_modules
14-
build
11+
12+
# System.
13+
.DS_Store
14+
15+
# Test data.
16+
*.bak
17+
.env
18+
tmp

.rustfmt.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Basic
2-
edition = "2021"
2+
edition = "2024"
33
hard_tabs = true
44
max_width = 100
55
tab_spaces = 4

CHANGELOG

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,49 @@
1+
### v9.2.2
2+
3+
- Fix case sensitivity in `ser_hexify_prefixed_upper`.
4+
- Bump dependencies.
5+
- Format code.
6+
17
### v9.2.1
8+
29
- Enable all features for docs.rs.
310

411
### v9.2.0
12+
513
- Include examples in the lib.rs.
614
- Upgrade edition to 2024.
715
- Bump dependencies.
816

917
### v9.1.2
18+
1019
- Add `ser_bytes_stringify` and `de_bytes_destringify`.
1120

1221
### v9.1.1
22+
1323
- Integrate `serde_bytes`.
1424

1525
### v9.1.0
26+
1627
- Use reference instead of value in `Hexify` trait and related serialize functions.
1728

1829
### v9.0.0
30+
1931
- Expose more friendly APIs, `Hexify` and `DeHexify` traits.
2032
- Un-public some tiny functions to encourage using `Hexify` and `DeHexify` traits.
2133
- Improve docs.
2234
- Restructure the code.
2335

2436
### v8.0.0
37+
2538
- Improve performance.
2639

2740
### v7.1.0
41+
2842
- Rename `se_hex` to `ser_hex`.
2943
- Rename `se_hex_without_prefix` to `ser_hex_without_prefix`.
3044

3145
### v7.0.0
46+
3247
- Improve docs.
3348
- Improve tests.
3449
- Bump dependencies.
@@ -37,104 +52,129 @@
3752
- Remove `de_hex2bytes`.
3853

3954
### v6.2.3
55+
4056
- Add `slice2array_ref` and `slice2array_ref_unchecked`.
4157
- Bump dependencies.
4258

4359
### v6.2.2
60+
4461
- Improve documentation.
4562

4663
### v6.2.1
64+
4765
- Add `prefix_with` and `suffix_with`.
4866
- Bump dependencies.
4967

5068
### v6.2.0
69+
5170
- Adjust generics order.
5271
- Bump dependencies.
5372

5473
### v6.1.0
74+
5575
- Improve expression.
5676
- Improve `TryFromHex` and add `Hex`.
5777

5878
### v6.0.0
79+
5980
- Optimize algorithm.
6081
- Bump dependencies.
6182

6283
### v5.1.0
84+
6385
- Rename error fields.
6486

6587
### v5.0.0
88+
6689
- Optimize algorithm.
6790
- Improve documentation.
6891
- Support `AsRef<T>` input.
6992
- Add `hex2slice` and `hex2slice_unchecked`.
7093

7194
### v4.2.0
95+
7296
- Bump dependencies.
7397
- Update CI.
7498
- Update license.
7599

76100
### v4.1.0
101+
77102
- Mark `hex_bytes2hex_str_unchecked` as unsafe.
78103

79104
### v4.0.0
105+
80106
- Use `is_hex_ascii` to optimize performance.
81107
- Add benchmark results.
82108
- Add `hex_bytes2hex_str` and `hex_bytes2hex_str_unchecked`.
83109
- Add fuzzing.
84110

85111
### v3.0.0
112+
86113
- Break `hex_into` into `hex_into` and `hex_n_into`.
87114
- Break `hex_into_unchecked` into `hex_into_unchecked` and `hex_n_into_unchecked`.
88115

89116
### v2.0.2
117+
90118
- Bump dependencies.
91119
- Update README.
92120
- Update CI.
93121

94122
### v2.0.1
123+
95124
- Fix tests.
96125

97126
### v2.0.0
127+
98128
- Split `dyn_*` to `slice_*` and `vec_*`.
99129
- Remove all the unsafe usage.
100130

101131
### v1.6.0
132+
102133
- Disable generic input. (people should know what are they going to do)
103134
- Bump dependencies.
104135

105136
### v1.5.2
137+
106138
- Update documentation.
107139
- Update code format.
108140
- Bump dependencies.
109141

110142
### v1.5.1
143+
111144
- Update description.
112145

113146
### v1.5.0
147+
114148
- Revert *"Use `String` instead `&str` in `serde`"*.
115149
- Bump dependencies.
116150
- Rust edition 2021.
117151

118152
### v1.4.1
153+
119154
- Use `String` instead `&str` in `serde`.
120155

121156
### v1.4.0
157+
122158
- Bump `serde`.
123159
- Add more documentation.
124160
- Add more tests.
125161
- Rename `hexd2num` to `de_hex2num`, `hexd2bytes` to `de_hex2bytes`.
126162

127163
### v1.3.3
164+
128165
- Allow explicit generic argument.
129166

130167
### v1.3.2
168+
131169
- Add `dyn_into`.
132170

133171
### v1.3.0
172+
134173
- Add `hex2array`, `hex_try_into` and `hex_into_unchecked`.
135174
- Support `serde`.
136175

137176
### v1.2.0
177+
138178
- Deprecated macro `hex2array_unchecked`.
139179
- Introduce function `hex2array_unchecked`.
140180
- Require at least Rust `1.51.0`.

Cargo.lock

Lines changed: 21 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ license = "Apache-2.0/GPL-3.0"
2121
name = "array-bytes"
2222
readme = "README.md"
2323
repository = "https://github.com/hack-ink/array-bytes"
24-
version = "9.2.1"
24+
version = "9.2.2"
2525

2626
[package.metadata.docs.rs]
2727
all-features = true
@@ -43,7 +43,7 @@ smallvec = { version = "1.15" }
4343

4444
[dev-dependencies]
4545
const-hex = { version = "1.14" }
46-
criterion = { version = "0.5" }
46+
criterion = { version = "0.6" }
4747
faster-hex = { version = "0.10" }
4848
hex_crate = { package = "hex", version = "0.4" }
4949
rustc-hex = { version = "2.1" }

0 commit comments

Comments
 (0)