{"id":62733,"library":"serdect","title":"Serdect","description":"Constant-time serde serializer/deserializer helpers for data that potentially contains secrets (e.g., cryptographic keys).","status":"active","version":"0.4.3","language":"rust","source_language":null,"source_url":"https://github.com/RustCrypto/formats","tags":["serde","crypto","constant-time","security"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nserdect = \"0.4.3\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add serdect","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Serialize","correct":"use serdect::serde::Serialize;"}],"quickstart":{"code":"use serdect::serde::{Serialize, Deserialize};\n\n#[derive(Serialize, Deserialize)]\nstruct SecretKey(#[serde(with = \"serdect::array\")] [u8; 32]);\n\nfn main() {\n    let key = SecretKey([0u8; 32]);\n    let json = serde_json::to_string(&key).unwrap();\n    println!(\"{}\", json);\n}","lang":"rust","description":"Serializes a secret key using constant-time helpers."},"warnings":[{"fix":"Enable the 'alloc' feature if using no_std with an allocator.","message":"Using serdect without the 'alloc' feature may cause compilation errors in no_std environments.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'constant':3,20 'constant-tim':2,19 'contain':12 'crypto':18 'cryptograph':15 'data':9 'e.g':14 'helper':7 'key':16 'potenti':11 'secret':13 'secur':22 'serd':5,17 'serdect':1 'serializer/deserializer':6 'time':4,21","created_at":"2026-06-17T16:34:53.284740+00:00","updated_at":"2026-06-17T16:34:53.284740+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/RustCrypto/formats/tree/master/serdect","github":"https://github.com/RustCrypto/formats","docs":"https://docs.rs/serdect/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization","crypto"],"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}}