{"id":67397,"library":"hex-buffer-serde","title":"Hex Buffer Serde","description":"Helper for serializing byte buffers as hex strings in `serde`.","status":"active","version":"0.4.0","language":"rust","source_language":null,"source_url":"https://github.com/slowli/hex-buffer-serde","tags":["serde","hex","serialization","buffer"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nhex-buffer-serde = \"0.4.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add hex-buffer-serde","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Hex","correct":"use hex_buffer_serde::Hex;"}],"quickstart":{"code":"use hex_buffer_serde::Hex;\nuse serde::{Serialize, Deserialize};\n\n#[derive(Serialize, Deserialize)]\nstruct Data {\n    #[serde(with = \"Hex\")]\n    bytes: Vec<u8>,\n}\n\nfn main() {\n    let data = Data { bytes: vec![0, 255] };\n    let json = serde_json::to_string(&data).unwrap();\n    println!(\"{}\", json);\n}","lang":"rust","description":"Serializes a Vec<u8> as a hex string using serde."},"warnings":[],"env_vars":null,"search_vec":"'buffer':2,8,17 'byte':7 'helper':4 'hex':1,10,15 'serd':3,13,14 'serial':6,16 'string':11","created_at":"2026-06-17T17:36:40.862362+00:00","updated_at":"2026-06-17T17:36:40.862362+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/slowli/hex-buffer-serde","github":"https://github.com/slowli/hex-buffer-serde","docs":"https://docs.rs/hex-buffer-serde/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}