Summary
- Remove
hexexternal dev-dependency; replace all call sites with new public helpersnative_ossl::util::hex_encodeandnative_ossl::util::hex_decode - Bump both crates to 0.1.6 and update RPM spec files accordingly
- Fix
cargo fmtline-length issues introduced by the longernative_ossl::util::hex_encodecall path
Changes
src/util.rs— addpub fn hex_encode<T: AsRef<[u8]>>andpub fn hex_decodesrc/digest.rs,src/kdf.rs,src/mac.rs— replace local test helpers withuse crate::util::{hex_encode, hex_decode}examples/*.rs— replacehex::encode(...)withnative_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.