hexga_encoding

Crates.iohexga_encoding
lib.rshexga_encoding
version0.0.11-beta.47
created_at2025-11-07 02:20:09.232737+00
updated_at2026-01-09 20:50:34.484393+00
descriptionEncoding and I/O abstraction for loading, saving, and converting data with custom extensions and media types, with optional Serde integration.
homepagehttps://github.com/Thomas-Mewily/hexga
repositoryhttps://github.com/Thomas-Mewily/hexga
max_upload_size
id1921007
size98,933
Mewily (Thomas-Mewily)

documentation

README

🚧 Warning: Experimental Crate! 🚧

This crate is currently in beta and experimental. It is subject to breaking changes in future releases. Use it at your own risk, and keep in mind that the API may change in future versions.

HexGa Encoding

hexga_encoding provides a unified way to load, save, and encode a value across multiple formats and media types.

It includes support for Data URLs (RFC 2397), binary URLs, MIME-based media typing, and optional Serde integration.

Also export common Serde serializers and deserializers in a unified way (json, ron, ...) in the serde flag is present.

🧩 Example

use hexga_encoding::{ToUrl, FromUrl, Load, Save};

let text = String::from("Hello, world!");
let url = text.to_url("txt").unwrap();
assert!(url.starts_with("data:text/txt;base64,"));

let decoded = String::from_url(&url).unwrap();
assert_eq!(decoded, "Hello, world!");

Main Hexga crate

Check hexga : https://crates.io/crates/hexga if you are interested in a quick start, it regroup multiple hexga crates.

Commit count: 710

cargo fmt