{"id":59308,"library":"const-hex","title":"Const Hex","description":"Fast byte array to hex string conversion with const generics.","status":"active","version":"1.19.1","language":"rust","source_language":null,"source_url":"https://github.com/danipopes/const-hex","tags":["hex","encoding","const","compile-time","bytes"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nconst-hex = \"1.19.1\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add const-hex","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"const_encode","correct":"use const_hex::const_encode;"}],"quickstart":{"code":"use const_hex::const_encode;\n\nconst BYTES: &[u8] = b\"hello\";\nconst HEX: &str = const_encode!(BYTES);\n\nfn main() {\n    println!(\"{}\", HEX);\n}","lang":"rust","description":"Encode a byte slice to a hex string at compile time."},"warnings":[],"env_vars":null,"search_vec":"'array':5 'byte':4,19 'compil':17 'compile-tim':16 'const':1,11,15 'convers':9 'encod':14 'fast':3 'generic':12 'hex':2,7,13 'string':8 'time':18","created_at":"2026-06-16T16:58:13.716936+00:00","updated_at":"2026-06-16T16:58:13.716936+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/danipopes/const-hex","github":"https://github.com/danipopes/const-hex","docs":"https://docs.rs/const-hex/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility","crypto"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}