Packages / rupm

hex-tools 0.1.0

Hex encode and decode for bytes, with upper case, separators and a hex dump

Install

cargo add hex-tools --registry rupm

In Ruststudio: Packages, search for hex-tools, Install.

Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-22.

Versions

README

# hex-tools

Hex encode and decode for bytes, with upper case, separators and a hex dump

Add it with `rupm add hex-tools` (or `cargo add hex-tools --registry rupm`).

```rust
let s = hex_tools::encode(b"hi");            // "6869"
let b = hex_tools::decode("68 69")?;         // b"hi" (whitespace is ignored)
println!("{}", hex_tools::dump(b"Rust Studio"));
```