{"id":57391,"library":"windows-sys","title":"windows-sys","description":"Rust for Windows - provides raw Windows API bindings for Rust.","status":"active","version":"0.61.2","language":"rust","source_language":null,"source_url":"https://github.com/microsoft/windows-rs","tags":["windows","ffi","system","api","bindings"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nwindows-sys = \"0.61.2\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add windows-sys","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"BOOL","correct":"use windows_sys::Win32::Foundation::BOOL;"}],"quickstart":{"code":"use windows_sys::Win32::Foundation::BOOL;\n\nfn main() {\n    let value: BOOL = 1;\n    println!(\"BOOL value: {}\", value);\n}","lang":"rust","description":"Demonstrates importing and using a basic Windows type from windows-sys."},"warnings":[{"fix":"Use conditional compilation with #[cfg(target_os = \"windows\")].","message":"Requires Windows target platform; will not compile on non-Windows systems.","severity":"breaking","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'api':10,17 'bind':11,18 'ffi':15 'provid':7 'raw':8 'rust':4,13 'sys':3 'system':16 'window':2,6,9,14 'windows-si':1","created_at":"2026-06-16T15:40:46.907090+00:00","updated_at":"2026-06-16T15:40:46.907090+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-sys/","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-16","next_check":"2026-12-13","install_tag":null}}