Crates.io | encoded |
lib.rs | encoded |
version | 0.4.2 |
source | src |
created_at | 2022-12-04 08:57:01.897359 |
updated_at | 2022-12-07 09:24:00.527308 |
description | Macros converting character encodings at compile time |
homepage | |
repository | https://github.com/p4ken/encoded |
max_upload_size | |
id | 729529 |
size | 25,595 |
Rust macros converting character encodings at compile time
cargo add encoded
const BYTES: &[u8] = encoded::shift_jis!("漢字");
assert_eq!(BYTES, b"\x8a\xbf\x8e\x9a");
For more information, see the documentation.