{"id":57486,"library":"serde-wasm-bindgen","title":"Serde WASM Bindgen","description":"Native Serde adapter for wasm-bindgen, enabling serialization/deserialization between Rust and JavaScript.","status":"active","version":"0.6.5","language":"rust","source_language":null,"source_url":"https://github.com/RReverser/serde-wasm-bindgen","tags":["wasm","serde","bindgen","serialization"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nserde-wasm-bindgen = \"0.6.5\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add serde-wasm-bindgen","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"from_value","correct":"use serde_wasm_bindgen::from_value;"}],"quickstart":{"code":"use wasm_bindgen::prelude::*;\nuse serde::{Deserialize, Serialize};\nuse serde_wasm_bindgen::from_value;\n\n#[wasm_bindgen]\npub fn process(data: JsValue) -> JsValue {\n    let input: MyStruct = from_value(data).unwrap();\n    // ...\n    JsValue::NULL\n}\n\n#[derive(Deserialize)]\nstruct MyStruct {\n    name: String,\n}","lang":"rust","description":"Deserializes a JavaScript value into a Rust struct using Serde."},"warnings":[{"fix":"Ensure you are compiling for wasm32-unknown-unknown and have wasm-bindgen as a dependency.","message":"Requires the 'wasm-bindgen' feature and a WebAssembly target; not usable in native Rust.","severity":"gotcha","affected_versions":">=0.4.0"}],"env_vars":null,"search_vec":"'adapt':6 'bindgen':3,10,19 'enabl':11 'javascript':16 'nativ':4 'rust':14 'serd':1,5,18 'serial':20 'serialization/deserialization':12 'wasm':2,9,17 'wasm-bindgen':8","created_at":"2026-06-16T15:44:21.428330+00:00","updated_at":"2026-06-16T15:44:21.428330+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/RReverser/serde-wasm-bindgen","github":"https://github.com/RReverser/serde-wasm-bindgen","docs":"https://docs.rs/serde-wasm-bindgen/","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-16","next_check":"2026-12-13","install_tag":null}}