{"id":71682,"library":"cosmwasm-derive","title":"CosmWasm Derive","description":"A package for auto-generated code used for CosmWasm contract development. This is shipped as part of cosmwasm-std. Do not use directly.","status":"active","version":"3.0.7","language":"rust","source_language":null,"source_url":"https://github.com/CosmWasm/cosmwasm","tags":["cosmwasm","blockchain","smart-contract","derive"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ncosmwasm-derive = \"3.0.7\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add cosmwasm-derive","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Contract","correct":"use cosmwasm_derive::Contract;"}],"quickstart":{"code":"use cosmwasm_derive::Contract;\n\n#[derive(Contract)]\npub struct MyContract;\n\nfn main() {}","lang":"rust","description":"Derives the Contract trait for a CosmWasm contract."},"warnings":[{"fix":"Add cosmwasm-std as a dependency and use its re-exports.","message":"Do not use directly; use cosmwasm-std instead.","severity":"gotcha","affected_versions":">=3.0.0"}],"env_vars":null,"search_vec":"'auto':7 'auto-gener':6 'blockchain':29 'code':9 'contract':13,32 'cosmwasm':1,12,22,28 'cosmwasm-std':21 'deriv':2,33 'develop':14 'direct':27 'generat':8 'packag':4 'part':19 'ship':17 'smart':31 'smart-contract':30 'std':23 'use':10,26","created_at":"2026-06-17T18:30:16.077665+00:00","updated_at":"2026-06-17T18:30:16.077665+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/CosmWasm/cosmwasm","github":"https://github.com/CosmWasm/cosmwasm","docs":"https://docs.rs/cosmwasm-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}}