1
0
Fork
You've already forked native-ossl
0

release: v0.1.6 #33

Merged
abbra merged 4 commits from release/v0.1.6 into main 2026年04月26日 13:47:51 +02:00
Owner
Copy link

Summary

  • Remove hex external dev-dependency; replace all call sites with new public helpers native_ossl::util::hex_encode and native_ossl::util::hex_decode
  • Bump both crates to 0.1.6 and update RPM spec files accordingly
  • Fix cargo fmt line-length issues introduced by the longer native_ossl::util::hex_encode call path

Changes

  • src/util.rs — add pub fn hex_encode<T: AsRef<[u8]>> and pub fn hex_decode
  • src/digest.rs, src/kdf.rs, src/mac.rs — replace local test helpers with use crate::util::{hex_encode, hex_decode}
  • examples/*.rs — replace hex::encode(...) with native_ossl::util::hex_encode(...)
  • native-ossl/Cargo.toml — remove [dev-dependencies] section (hex = "0.4")
  • native-ossl/rust-native-ossl.spec, native-ossl/rust2rpm.toml — remove hex BuildRequires
  • RPM spec files — bump Version to 0.1.6
  • Both CHANGELOG.md files updated for 0.1.6

Why

The hex crate was unavailable in Fedora/COPR offline RPM build environments, causing %check to fail even when listed in BuildRequires. The new helpers live in the crate itself, eliminating the external dependency entirely.

## Summary - Remove `hex` external dev-dependency; replace all call sites with new public helpers `native_ossl::util::hex_encode` and `native_ossl::util::hex_decode` - Bump both crates to 0.1.6 and update RPM spec files accordingly - Fix `cargo fmt` line-length issues introduced by the longer `native_ossl::util::hex_encode` call path ## Changes - `src/util.rs` — add `pub fn hex_encode<T: AsRef<[u8]>>` and `pub fn hex_decode` - `src/digest.rs`, `src/kdf.rs`, `src/mac.rs` — replace local test helpers with `use crate::util::{hex_encode, hex_decode}` - `examples/*.rs` — replace `hex::encode(...)` with `native_ossl::util::hex_encode(...)` - `native-ossl/Cargo.toml` — remove `[dev-dependencies]` section (hex = "0.4") - `native-ossl/rust-native-ossl.spec`, `native-ossl/rust2rpm.toml` — remove hex BuildRequires - RPM spec files — bump Version to 0.1.6 - Both CHANGELOG.md files updated for 0.1.6 ## Why The `hex` crate was unavailable in Fedora/COPR offline RPM build environments, causing `%check` to fail even when listed in `BuildRequires`. The new helpers live in the crate itself, eliminating the external dependency entirely.
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
native-ossl-sys: update spec
All checks were successful
CI / Lint Workflows (pull_request) Successful in 1m13s
CI / Rustfmt (pull_request) Successful in 1m13s
CI / Build (pull_request) Successful in 2m57s
CI / Documentation (pull_request) Successful in 3m8s
CI / Clippy (pull_request) Successful in 3m11s
CI / Test Suite (pull_request) Successful in 3m20s
CI / Rustfmt (push) Successful in 1m11s
CI / Lint Workflows (push) Successful in 1m11s
CI / Build (push) Successful in 2m54s
CI / Documentation (push) Successful in 3m13s
CI / Clippy (push) Successful in 3m17s
CI / Test Suite (push) Successful in 3m26s
0661bd427b
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
abbra deleted branch release/v0.1.6 2026年04月26日 13:47:52 +02:00
Sign in to join this conversation.
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
abbra/native-ossl!33
Reference in a new issue
abbra/native-ossl
No description provided.
Delete branch "release/v0.1.6"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?