Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ max_line_length=100
tab_width=4
trim_trailing_whitespace=true

[*.py]
charset=utf-8
[*.{py,slint}]
indent_size=4
indent_style=space

[*.{sh,yml,yaml}]
indent_size=2
indent_style=space
tab_width=8
24 changes: 14 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# System
.DS_Store

# Integrated Development Environment
.idea
# Integrated development environment.
.vscode

# Package Manager
## Cargo
# Package manager.
## Cargo.
target
## Npm
package-lock.json
## Python
__pycache__
## NPM.
node_modules
build

# System.
.DS_Store

# Test data.
*.bak
.env
tmp
2 changes: 1 addition & 1 deletion .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Basic
edition = "2021"
edition = "2024"
hard_tabs = true
max_width = 100
tab_spaces = 4
Expand Down
40 changes: 40 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,34 +1,49 @@
### v9.2.2

- Fix case sensitivity in `ser_hexify_prefixed_upper`.
- Bump dependencies.
- Format code.

### v9.2.1

- Enable all features for docs.rs.

### v9.2.0

- Include examples in the lib.rs.
- Upgrade edition to 2024.
- Bump dependencies.

### v9.1.2

- Add `ser_bytes_stringify` and `de_bytes_destringify`.

### v9.1.1

- Integrate `serde_bytes`.

### v9.1.0

- Use reference instead of value in `Hexify` trait and related serialize functions.

### v9.0.0

- Expose more friendly APIs, `Hexify` and `DeHexify` traits.
- Un-public some tiny functions to encourage using `Hexify` and `DeHexify` traits.
- Improve docs.
- Restructure the code.

### v8.0.0

- Improve performance.

### v7.1.0

- Rename `se_hex` to `ser_hex`.
- Rename `se_hex_without_prefix` to `ser_hex_without_prefix`.

### v7.0.0

- Improve docs.
- Improve tests.
- Bump dependencies.
Expand All @@ -37,104 +52,129 @@
- Remove `de_hex2bytes`.

### v6.2.3

- Add `slice2array_ref` and `slice2array_ref_unchecked`.
- Bump dependencies.

### v6.2.2

- Improve documentation.

### v6.2.1

- Add `prefix_with` and `suffix_with`.
- Bump dependencies.

### v6.2.0

- Adjust generics order.
- Bump dependencies.

### v6.1.0

- Improve expression.
- Improve `TryFromHex` and add `Hex`.

### v6.0.0

- Optimize algorithm.
- Bump dependencies.

### v5.1.0

- Rename error fields.

### v5.0.0

- Optimize algorithm.
- Improve documentation.
- Support `AsRef<T>` input.
- Add `hex2slice` and `hex2slice_unchecked`.

### v4.2.0

- Bump dependencies.
- Update CI.
- Update license.

### v4.1.0

- Mark `hex_bytes2hex_str_unchecked` as unsafe.

### v4.0.0

- Use `is_hex_ascii` to optimize performance.
- Add benchmark results.
- Add `hex_bytes2hex_str` and `hex_bytes2hex_str_unchecked`.
- Add fuzzing.

### v3.0.0

- Break `hex_into` into `hex_into` and `hex_n_into`.
- Break `hex_into_unchecked` into `hex_into_unchecked` and `hex_n_into_unchecked`.

### v2.0.2

- Bump dependencies.
- Update README.
- Update CI.

### v2.0.1

- Fix tests.

### v2.0.0

- Split `dyn_*` to `slice_*` and `vec_*`.
- Remove all the unsafe usage.

### v1.6.0

- Disable generic input. (people should know what are they going to do)
- Bump dependencies.

### v1.5.2

- Update documentation.
- Update code format.
- Bump dependencies.

### v1.5.1

- Update description.

### v1.5.0

- Revert *"Use `String` instead `&str` in `serde`"*.
- Bump dependencies.
- Rust edition 2021.

### v1.4.1

- Use `String` instead `&str` in `serde`.

### v1.4.0

- Bump `serde`.
- Add more documentation.
- Add more tests.
- Rename `hexd2num` to `de_hex2num`, `hexd2bytes` to `de_hex2bytes`.

### v1.3.3

- Allow explicit generic argument.

### v1.3.2

- Add `dyn_into`.

### v1.3.0

- Add `hex2array`, `hex_try_into` and `hex_into_unchecked`.
- Support `serde`.

### v1.2.0

- Deprecated macro `hex2array_unchecked`.
- Introduce function `hex2array_unchecked`.
- Require at least Rust `1.51.0`.
53 changes: 21 additions & 32 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ license = "Apache-2.0/GPL-3.0"
name = "array-bytes"
readme = "README.md"
repository = "https://github.com/hack-ink/array-bytes"
version = "9.2.1"
version = "9.2.2"

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

[dev-dependencies]
const-hex = { version = "1.14" }
criterion = { version = "0.5" }
criterion = { version = "0.6" }
faster-hex = { version = "0.10" }
hex_crate = { package = "hex", version = "0.4" }
rustc-hex = { version = "2.1" }
Expand Down
Loading