{"id":67049,"library":"windows-macros","title":"Windows Macros","description":"Provides macros for Rust for Windows development.","status":"active","version":"0.31.0","language":"rust","source_language":null,"source_url":"https://github.com/microsoft/windows-rs","tags":["windows","macros","com","interop"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nwindows_macros = \"0.31.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add windows_macros","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"implement","correct":"use windows_macros::implement;"}],"quickstart":{"code":"use windows_macros::implement;\n\n#[implement]\nstruct MyClass;\n\nfn main() {\n    println!(\"Windows macro used\");\n}","lang":"rust","description":"Applies the `implement` macro to a struct for Windows COM interop."},"warnings":[{"fix":"Ensure you have the correct `windows` crate features enabled (e.g., `windows/macros`).","message":"This crate is part of the `windows-rs` ecosystem and may require specific feature flags from the `windows` crate.","severity":"gotcha","affected_versions":">=0.31.0"}],"env_vars":null,"search_vec":"'com':12 'develop':9 'interop':13 'macro':2,4,11 'provid':3 'rust':6 'window':1,8,10","created_at":"2026-06-17T17:32:10.800390+00:00","updated_at":"2026-06-17T17:32:10.800390+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/microsoft/windows-rs","github":"https://github.com/microsoft/windows-rs","docs":"https://docs.rs/windows_macros/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["build-tool","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}}