{"id":74069,"library":"elrond-wasm-derive","title":"Elrond WASM Derive","description":"Elrond WebAssembly smart contract API procedural macros.","status":"active","version":"0.38.0","language":"rust","source_language":null,"source_url":"https://github.com/ElrondNetwork/elrond-wasm-rs","tags":["elrond","wasm","smart-contract","macro"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nelrond-wasm-derive = \"0.38.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add elrond-wasm-derive","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"contract","correct":"use elrond_wasm_derive::contract;"}],"quickstart":{"code":"use elrond_wasm_derive::contract;\n\n#[contract]\npub trait MyContract {\n    #[init]\n    fn init(&self) {}\n}","lang":"rust","description":"Defines an Elrond smart contract using the contract macro."},"warnings":[{"fix":"Ensure you are building for wasm32-unknown-unknown and have the elrond-wasm crate.","message":"Only works with the Elrond WASM target; not for general Rust.","severity":"gotcha","affected_versions":">=0.38.0"}],"env_vars":null,"search_vec":"'api':8 'contract':7,15 'deriv':3 'elrond':1,4,11 'macro':10,16 'procedur':9 'smart':6,14 'smart-contract':13 'wasm':2,12 'webassembl':5","created_at":"2026-06-17T18:58:24.317289+00:00","updated_at":"2026-06-17T18:58:24.317289+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://elrond.com/","github":"https://github.com/ElrondNetwork/elrond-wasm-rs","docs":"https://docs.rs/elrond-wasm-derive/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"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}}