| Crates.io | hexga_encoding |
| lib.rs | hexga_encoding |
| version | 0.0.11-beta.47 |
| created_at | 2025-11-07 02:20:09.232737+00 |
| updated_at | 2026-01-09 20:50:34.484393+00 |
| description | Encoding and I/O abstraction for loading, saving, and converting data with custom extensions and media types, with optional Serde integration. |
| homepage | https://github.com/Thomas-Mewily/hexga |
| repository | https://github.com/Thomas-Mewily/hexga |
| max_upload_size | |
| id | 1921007 |
| size | 98,933 |
🚧 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 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.
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!");
Check hexga : https://crates.io/crates/hexga if you are interested in a quick start, it regroup multiple hexga crates.