{"id":283954,"date":"2023-10-11T09:00:56","date_gmt":"2023-10-11T01:00:56","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=283954"},"modified":"2023-09-30T18:59:17","modified_gmt":"2023-09-30T10:59:17","slug":"wrkywyrkfwqd","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/wrkywyrkfwqd.html","title":{"rendered":"\u5fae\u8f6f\u5f00\u6e90 windows-drivers-rs\uff0c\u7528 Rust \u5f00\u53d1 Windows \u9a71\u52a8\u7a0b\u5e8f"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nMicrosoft Azure \u9996\u5e2d\u6280\u672f\u5b98\u517c\u8457\u540d Windows \u8f6f\u4ef6\u5f00\u53d1\u4eba\u5458 Mark Russinovich \u5728\u793e\u4ea4\u5e73\u53f0\u4e0a\u5ba3\u5e03\uff0c\u542f\u52a8\u4e86\u4e00\u4e2a\u540d\u4e3a windows-drivers-rs \u7684\u65b0\u5f00\u6e90\u9879\u76ee\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u8be5\u9879\u76ee\u53ef\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u4f7f\u7528 Rust \u5f00\u53d1 Windows \u9a71\u52a8\u7a0b\u5e8f\uff0c\u65e8\u5728\u652f\u6301 WDM (Windows Driver Model) \u548c WDF (Windows Driver Framework) \u9a71\u52a8\u7a0b\u5e8f\u5f00\u53d1\u6a21\u578b\u3002<\/p>\n

\"\"<\/p>\n

\u5f53\u524d\u7248\u672c\u7684\u8d44\u6e90\u5e93\u4e3b\u8981\u7531 Rust crates \u7ec4\u6210\uff0c\u5177\u4f53\u5305\u62ec\uff1a<\/p>\n

  • wdk-build\uff1a\u7528\u4e8e\u914d\u7f6e Cargo \u6784\u5efa\u811a\u672c\u4ee5\u8fdb\u884c WDK \u7684\u7ed1\u5b9a\u751f\u6210\u548c\u4e0b\u6e38\u94fe\u63a5\u7684\u5e93\u3002\u867d\u7136\u6b64 crate \u7684\u7f16\u5199\u76ee\u7684\u662f\u7075\u6d3b\u5730\u9002\u5e94\u4e0d\u540c\u7684 WDK \u7248\u672c\u548c\u4e0d\u540c\u7684 WDF \u7248\u672c\uff0c\u4f46\u76ee\u524d\u4ec5\u9488\u5bf9 NI eWDK\u3001KMDF 1.33\u3001UMDF 2.33 \u548c WDM \u9a71\u52a8\u7a0b\u5e8f\u8fdb\u884c\u4e86\u6d4b\u8bd5\u3002\u65e7\u7248 DDK \u53ef\u80fd\u7f3a\u5c11\u94fe\u63a5\u5668\u9009\u9879\u3002<\/li>\n
  • wdk-sys\uff1a\u76f4\u63a5 FFI \u7ed1\u5b9a\u5230 WDK \u4e2d\u53ef\u7528\u7684 API\u3002\u8fd9\u5305\u62ec\u4ece bindgen \u4e2d\u81ea\u52a8\u751f\u6210\u7684 ffi \u7ed1\u5b9a\uff0c\u4ee5\u53ca\u5305\u62ec\u624b\u52a8\u91cd\u65b0\u5b9e\u73b0 bindgen \u65e0\u6cd5\u751f\u6210\u7684\u5b8f\u3002<\/li>\n
  • wdk\uff1a\u4e0e WDK \u4e2d\u53ef\u7528\u7684 API \u7684\u5b89\u5168\u60ef\u7528\u7ed1\u5b9a<\/li>\n
  • wdk-panic\uff1a\u4f7f\u7528 WDK \u6784\u5efa\u7684\u7a0b\u5e8f\u7684\u9ed8\u8ba4 panic \u5904\u7406\u7a0b\u5e8f\u5b9e\u73b0<\/li>\n
  • wdk-alloc\uff1a\u5bf9\u4f7f\u7528 WDK \u7f16\u8bd1\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u7684\u5206\u914d\u652f\u6301<\/li>\n
  • wdk-macros\uff1a\u5b8f\u7684\u96c6\u5408\uff0c\u6709\u52a9\u4e8e\u66f4\u8f7b\u677e\u5730\u4e0e wdk-sys \u7684\u76f4\u63a5\u7ed1\u5b9a\u8fdb\u884c\u4ea4\u4e92\u3002\u8be5 crate \u901a\u8fc7 wdk-sys \u91cd\u65b0\u5bfc\u51fa\uff0c\u5e76\u4e14\u901a\u5e38\u60c5\u51b5\u4e0b crates \u4e0d\u9700\u8981\u76f4\u63a5\u4f9d\u8d56 wdk-macros<\/li>\n

    \u5177\u4f53\u793a\u4f8b\u53ef\u67e5\u770b Windows-rust-driver-samples\u3002<\/p>\n

    \u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c\u8be5\u9879\u76ee\u4ecd\u5904\u4e8e\u65e9\u671f\u9636\u6bb5\uff0c\u4e0d\u5efa\u8bae\u7528\u4e8e\u5546\u4e1a\u7528\u9014\uff1b\u4f46\u5fae\u8f6f\u65b9\u9762\u9f13\u52b1\u793e\u533a\u5bf9\u8be5\u9879\u76ee\u7684\u5b9e\u9a8c\u3001\u5efa\u8bae\u548c\u8ba8\u8bba\u3002\u5728 windows-drivers-rs \u7684\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u8be5\u516c\u53f8\u5c06\u628a GitHub \u8ba8\u8bba\u533a\u4f5c\u4e3a\u4e0e\u793e\u533a\u4e92\u52a8\u7684\u4e3b\u8981\u5f62\u5f0f\u3002\u76ee\u524d\uff0cwindows-drivers-rs \u9879\u76ee\u5df2\u5f97\u5230\u4e86\u5fae\u8f6f\u5f00\u53d1\u4eba\u5458 Melvin Wang \u7684\u652f\u6301\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

    \u8be5\u9879\u76ee\u53ef\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u4f7f\u7528 Rust \u5f00\u53d1 Windows \u9a71\u52a8\u7a0b\u5e8f\uff0c\u65e8\u5728\u652f\u6301 WDM (Windows Dri […]<\/p>\n","protected":false},"author":1479,"featured_media":49800,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-283954","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/283954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1479"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=283954"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/283954\/revisions"}],"predecessor-version":[{"id":284172,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/283954\/revisions\/284172"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/49800"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=283954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=283954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=283954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}