encoded

Crates.ioencoded
lib.rsencoded
version0.4.2
sourcesrc
created_at2022-12-04 08:57:01.897359
updated_at2022-12-07 09:24:00.527308
descriptionMacros converting character encodings at compile time
homepage
repositoryhttps://github.com/p4ken/encoded
max_upload_size
id729529
size25,595
p4ken (p4ken)

documentation

https://docs.rs/encoded

README

encoded

Rust macros converting character encodings at compile time

install

cargo add encoded

usage

const BYTES: &[u8] = encoded::shift_jis!("漢字");
assert_eq!(BYTES, b"\x8a\xbf\x8e\x9a");

For more information, see the documentation.

Commit count: 37

cargo fmt