{"id":59691,"library":"plain","title":"Plain","description":"A small Rust library that allows users to reinterpret data of certain types safely.","status":"active","version":"0.2.3","language":"rust","source_language":null,"source_url":"https://github.com/randomites/plain","tags":["reinterpret","bytes","safety","derive"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nplain = \"0.2.3\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add plain","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Plain","correct":"use plain::Plain;"}],"quickstart":{"code":"use plain::Plain;\n\n#[derive(Plain)]\nstruct MyStruct {\n    x: u8,\n    y: u8,\n}\n\nfn main() {\n    let data = [1u8, 2u8];\n    let my_struct: &MyStruct = plain::from_bytes(&data).unwrap();\n    println!(\"{}, {}\", my_struct.x, my_struct.y);\n}","lang":"rust","description":"Demonstrates safe reinterpretation of bytes as a struct using the Plain derive macro."},"warnings":[],"env_vars":null,"search_vec":"'allow':7 'byte':17 'certain':13 'data':11 'deriv':19 'librari':5 'plain':1 'reinterpret':10,16 'rust':4 'safe':15 'safeti':18 'small':3 'type':14 'user':8","created_at":"2026-06-16T17:13:44.144402+00:00","updated_at":"2026-06-16T17:13:44.144402+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/randomites/plain","github":"https://github.com/randomites/plain","docs":"https://docs.rs/plain/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"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}}