{"id":13472610,"url":"https://github.com/microsoft/windows-rs","last_synced_at":"2025-09-09T20:41:24.849Z","repository":{"id":37032688,"uuid":"208102250","full_name":"microsoft/windows-rs","owner":"microsoft","description":"Rust for Windows","archived":false,"fork":false,"pushed_at":"2025-09-04T20:27:26.000Z","size":1152885,"stargazers_count":11555,"open_issues_count":24,"forks_count":578,"subscribers_count":130,"default_branch":"master","last_synced_at":"2025-09-05T00:23:49.787Z","etag":null,"topics":["rust","windows"],"latest_commit_sha":null,"homepage":"https://kennykerr.ca/rust-getting-started/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/microsoft.png","metadata":{"files":{"readme":"docs/readme.md","changelog":null,"contributing":"docs/contributing.md","funding":null,"license":"license-apache-2.0","code_of_conduct":"docs/code_of_conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/security.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-09-12T17:03:25.000Z","updated_at":"2025-09-04T21:49:45.000Z","dependencies_parsed_at":"2023-12-13T18:42:13.977Z","dependency_job_id":"6999d33c-0f7f-487c-a000-498262150d78","html_url":"https://github.com/microsoft/windows-rs","commit_stats":{"total_commits":1518,"total_committers":82,"mean_commits":18.51219512195122,"dds":0.5862977602108037,"last_synced_commit":"a8e14c75581bb89fc244ad480f98567be972aea2"},"previous_names":["microsoft/winrt-rs"],"tags_count":71,"template":false,"template_full_name":null,"purl":"pkg:github/microsoft/windows-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fwindows-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fwindows-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fwindows-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fwindows-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoft","download_url":"https://codeload.github.com/microsoft/windows-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fwindows-rs/sbom","scorecard":{"id":643592,"data":{"date":"2025-08-11","repo":{"name":"github.com/microsoft/windows-rs","commit":"f6eba5974685bdf649ef34cb54c13689408d80fe"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Code-Review","score":1,"reason":"Found 4/30 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: docs/security.md:1","Info: Found linked content: docs/security.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: docs/security.md:1","Info: Found text in security policy: docs/security.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 26 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: license-apache-2.0:0","Info: FSF or OSI recognized license: Apache License 2.0: license-apache-2.0:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/clippy.yml:1","Warn: no topLevel permission defined: .github/workflows/cross.yml:1","Warn: no topLevel permission defined: .github/workflows/doc.yml:1","Warn: no topLevel permission defined: .github/workflows/fmt.yml:1","Warn: no topLevel permission defined: .github/workflows/gen.yml:1","Warn: no topLevel permission defined: .github/workflows/lib.yml:1","Warn: no topLevel permission defined: .github/workflows/linux.yml:1","Warn: no topLevel permission defined: .github/workflows/miri.yml:1","Warn: no topLevel permission defined: .github/workflows/msrv.yml:1","Warn: no topLevel permission defined: .github/workflows/no-default-features.yml:1","Warn: no topLevel permission defined: .github/workflows/no_std.yml:1","Warn: no topLevel permission defined: .github/workflows/slim_errors.yml:1","Warn: no topLevel permission defined: .github/workflows/stale.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Warn: topLevel 'contents' permission set to 'write': .github/workflows/web.yml:4","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":0,"reason":"binaries present in source code","details":["Warn: binary detected: crates/libs/bindgen/default/Windows.Wdk.winmd:1","Warn: binary detected: crates/libs/bindgen/default/Windows.Win32.winmd:1","Warn: binary detected: crates/libs/bindgen/default/Windows.winmd:1","Warn: binary detected: crates/libs/cppwinrt/cppwinrt.exe:1","Warn: binary detected: crates/targets/aarch64_gnullvm/lib/libwindows.0.53.0.a:1","Warn: binary detected: crates/targets/aarch64_msvc/lib/windows.0.53.0.lib:1","Warn: binary detected: crates/targets/i686_gnu/lib/libwindows.0.53.0.a:1","Warn: binary detected: crates/targets/i686_gnullvm/lib/libwindows.0.53.0.a:1","Warn: binary detected: crates/targets/i686_msvc/lib/windows.0.53.0.lib:1","Warn: binary detected: crates/targets/x86_64_gnu/lib/libwindows.0.53.0.a:1","Warn: binary detected: crates/targets/x86_64_gnullvm/lib/libwindows.0.53.0.a:1","Warn: binary detected: crates/targets/x86_64_msvc/lib/windows.0.53.0.lib:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/clippy.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/microsoft/windows-rs/clippy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cross.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/microsoft/windows-rs/cross.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cross.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/microsoft/windows-rs/cross.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/doc.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/microsoft/windows-rs/doc.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/doc.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/microsoft/windows-rs/doc.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/doc.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/microsoft/windows-rs/doc.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/fmt.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/microsoft/windows-rs/fmt.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gen.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/microsoft/windows-rs/gen.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lib.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/microsoft/windows-rs/lib.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lib.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/microsoft/windows-rs/lib.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/linux.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/microsoft/windows-rs/linux.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/miri.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/microsoft/windows-rs/miri.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/msrv.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/microsoft/windows-rs/msrv.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/no-default-features.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/microsoft/windows-rs/no-default-features.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/no_std.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/microsoft/windows-rs/no_std.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/slim_errors.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/microsoft/windows-rs/slim_errors.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/stale.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/microsoft/windows-rs/stale.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/microsoft/windows-rs/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/web.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/microsoft/windows-rs/web.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/web.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/microsoft/windows-rs/web.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/web.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/microsoft/windows-rs/web.yml/master?enable=pin","Info:   0 out of  21 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-4www-5p9h-95mh","Warn: Project is vulnerable to: GHSA-9gqv-wp59-fq42","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-cpj6-fhp6-mr6j","Warn: Project is vulnerable to: GHSA-4v9v-hfq4-rm2v","Warn: Project is vulnerable to: GHSA-9jgg-88mc-972h"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T11:27:32.419Z","repository_id":37032688,"created_at":"2025-08-21T11:27:32.419Z","updated_at":"2025-08-21T11:27:32.419Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274358656,"owners_count":25270680,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rust","windows"],"created_at":"2024-07-31T16:00:56.234Z","updated_at":"2025-09-09T20:41:24.840Z","avatar_url":"https://github.com/microsoft.png","language":"Rust","readme":"## Rust for Windows\n\nThe [windows](https://crates.io/crates/windows) and [windows-sys](https://crates.io/crates/windows-sys) crates let you call any Windows API past, present, and future using code generated on the fly directly from the [metadata describing the API](https://github.com/microsoft/windows-rs/tree/master/crates/libs/bindgen/default) and right into your Rust package where you can call them as if they were just another Rust module. The Rust language projection follows in the tradition established by [C++/WinRT](https://github.com/microsoft/cppwinrt) of building language projections for Windows using standard languages and compilers, providing a natural and idiomatic way for Rust developers to call Windows APIs.\n\n* [Getting started](https://kennykerr.ca/rust-getting-started/)\n* [Samples](https://github.com/microsoft/windows-rs/tree/master/crates/samples)\n* [Releases](https://github.com/microsoft/windows-rs/releases)\n* [Feature search](https://microsoft.github.io/windows-rs/features)\n\nThis repo is the home of the following crates (and other supporting crates):\n\n* [windows-sys](https://crates.io/crates/windows-sys) - Raw bindings for C-style Windows APIs.\n* [windows](https://crates.io/crates/windows) - Safer bindings including C-style APIs as well as COM and WinRT APIs.\n\n* [windows-bindgen](https://crates.io/crates/windows-bindgen) - Code generator for Windows metadata.\n* [windows-collections](https://crates.io/crates/windows-collections) - Windows collection types.\n* [windows-core](https://crates.io/crates/windows-core) - Core type support for COM and Windows.\n* [windows-metadata](https://crates.io/crates/windows-metadata) - Low-level metadata library for ECMA-335.\n* [windows-future](https://crates.io/crates/windows-future) - Windows async type support.\n* [windows-link](https://crates.io/crates/windows-link) - Linking for Windows.\n* [windows-numerics](https://crates.io/crates/windows-numerics) - Windows numeric types.\n* [windows-registry](https://crates.io/crates/windows-registry) - Windows registry.\n* [windows-result](https://crates.io/crates/windows-result) - Windows error handling.\n* [windows-services](https://crates.io/crates/windows-services) - Windows services.\n* [windows-strings](https://crates.io/crates/windows-strings) - Windows string types.\n* [windows-targets](https://crates.io/crates/windows-targets) - Import libs for Windows (and the precursor to `windows-link` for older compilers).\n* [windows-threading](https://crates.io/crates/windows-threading) - Windows threading.\n* [windows-version](https://crates.io/crates/windows-version) - Windows version information.\n\n* [cppwinrt](https://crates.io/crates/cppwinrt) - Bundles the C++/WinRT compiler for use in Rust.\n","funding_links":[],"categories":["Rust","Libraries \u0026 Frameworks:","Libraries","Rust 程序设计","windows","rust"],"sub_categories":["Graphics","Platform specific","网络服务_其他"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fwindows-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrosoft%2Fwindows-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fwindows-rs/lists"}