{"id":90765,"date":"2020-05-10T11:50:18","date_gmt":"2020-05-10T03:50:18","guid":{"rendered":"http:\/\/4563.org\/?p=90765"},"modified":"2020-05-10T11:50:18","modified_gmt":"2020-05-10T03:50:18","slug":"rust-search-extension-0-9-%e5%8f%91%e5%b8%83%ef%bc%81%e6%94%af%e6%8c%81%e6%90%9c%e7%b4%a2%e4%bb%bb%e6%84%8f%e7%ac%ac%e4%b8%89%e6%96%b9-crate-%e7%9a%84%e6%96%87%e6%a1%a3%e4%ba%86%ef%bc%81","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=90765","title":{"rendered":"Rust Search Extension 0.9 \u53d1\u5e03\uff01\u652f\u6301\u641c\u7d22\u4efb\u610f\u7b2c\u4e09\u65b9 crate \u7684\u6587\u6863\u4e86\uff01"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Rust Search Extension 0.9 \u53d1\u5e03\uff01\u652f\u6301\u641c\u7d22\u4efb\u610f\u7b2c\u4e09\u65b9 crate \u7684\u6587\u6863\u4e86\uff01               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Wichna <\/span>  <span><i><\/i> 24<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>Rust Search Extension \u662f\u4e00\u6b3e\u53ef\u4ee5\u5728\u5730\u5740\u680f\u5feb\u901f\u641c\u7d22 Rust \u6587\u6863\u3001crates \u3001\u5185\u7f6e\u5c5e\u6027\u548c\u9519\u8bef\u7801\u7b49\u7684\u6d4f\u89c8\u5668\u63d2\u4ef6\uff0c\u4e0d\u4ec5\u652f\u6301 Chrome \u548c Firefox\uff0c\u73b0\u5728\u4e5f\u652f\u6301 Edge \u6d4f\u89c8\u5668\u4e86\uff0c\u76ee\u524d\u83b7\u5f97\u4e86\u793e\u533a\u5f88\u591a Rust \u5f00\u53d1\u8005\u7684\u559c\u6b22\uff0c\u975e\u5e38\u611f\u8c22\u5927\u5bb6\u7684\u652f\u6301\uff01<\/p>\n<p>Rust Search Extension \u4e5f\u5728\u6301\u7eed\u66f4\u65b0\u4e2d\uff0c\u8fd9\u6b21\u53d1\u5e03\u7684 0.9 \u7248\u7ed9\u5927\u5bb6\u5e26\u6765\u4e86\u5982\u4e0b\u51e0\u9879\u4e3b\u8981\u529f\u80fd\uff1a<\/p>\n<ul>\n<li>\u652f\u6301\u641c\u7d22\u4efb\u610f\u7b2c\u4e09\u65b9 crate \u7684\u6587\u6863<\/li>\n<li>\u652f\u6301\u641c\u7d22 Clippy lint<\/li>\n<li>\u65b0\u7684:label \u547d\u4ee4 &#8211; \u641c\u7d22 Rust \u4ed3\u5e93\u91cc\u9762\u7684 issue label<\/li>\n<li>\u652f\u6301\u6697\u8272\u6a21\u5f0f<\/li>\n<li>\u652f\u6301 Microsoft Edge \u6d4f\u89c8\u5668<\/li>\n<\/ul>\n<blockquote>\n<p>\u5982\u679c\u8fd8\u4e0d\u4e86\u89e3 Rust Search Extension \u7684\u670b\u53cb\uff0c\u6b22\u8fce\u67e5\u770b\u6211\u4e4b\u524d\u53d1\u7684\u53e6\u5916\u4e00\u7bc7\u6587\u7ae0\u3002<\/p>\n<ul>\n<li>Rust Search Extension&#8211;\u5728\u5730\u5740\u680f\u5feb\u901f\u641c\u7d22 Rust \u6587\u6863\u3001\u5c5e\u6027\u548c\u5e93\u7684\u6d4f\u89c8\u5668\u63d2\u4ef6<\/li>\n<\/ul>\n<\/blockquote>\n<h2>\u652f\u6301\u641c\u7d22\u4efb\u610f\u7b2c\u4e09\u65b9 crate \u7684\u6587\u6863<\/h2>\n<p>Rust Search Extension \u8fc7\u53bb\u7684\u6240\u6709\u7248\u672c\u53ea\u652f\u6301\u641c\u7d22 std, proc_macro, test \u8fd9\u4e09\u4e2a\u5b98\u65b9\u6807\u51c6\u5e93\u91cc\u9762\u7684\u6587\u6863\u3002\u4f46\u662f\u663e\u7136\u4e0d\u591f\uff0c\u6240\u4ee5\u8fd9\u4e00\u7248\u6700\u5927\u7684\u66f4\u65b0\u5c31\u662f\u628a\u6587\u6863\u7684\u641c\u7d22\u8303\u56f4\u6269\u5927\u5230\u4e86\u4efb\u610f\u7b2c\u4e09\u65b9 crate \u3002\u5bf9\uff0c\u6ca1\u542c\u9519\uff0c\u662f\u4efb\u610f\u7b2c\u4e09\u65b9 crate \uff01 \u5f53\u7136\u4e3a\u4e86\u5b9e\u73b0\u8fd9\u4e00\u6b65\uff0c\u9996\u5148\u9700\u8981\u628a\u4f60\u60f3\u8981\u641c\u7d22\u7684 crate \u52a0\u5165\u5230\u63d2\u4ef6\u4e2d\u3002\u4e3a\u6b64 Rust Search Extension \u4f1a\u5728 docs.rs \u9875\u9762\u7684\u9876\u680f\u52a0\u5165\u4e00\u4e2a\u9ec4\u8272\u7684\u6309\u94ae\uff0c\u5982\u56fe\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200519_5ec3736982fd9.jpg\" alt=\"Rust Search Extension 0.9 \u53d1\u5e03\uff01\u652f\u6301\u641c\u7d22\u4efb\u610f\u7b2c\u4e09\u65b9 crate \u7684\u6587\u6863\u4e86\uff01\" \/><\/p>\n<p>\u70b9\u51fb\u5b8c\u6309\u94ae\u540e\uff0c\u8fd9\u4e2a crate \u5c31\u4f1a\u88ab\u6536\u5f55\u81f3\u63d2\u4ef6\u4e2d\uff0c\u7136\u540e\u5c31\u53ef\u4ee5\u5728\u5730\u5740\u680f\u641c\u7d22\u8be5 crate \u7684\u6587\u6863\u4e86\uff01 \u641c\u7d22\u65b9\u6cd5\u4e5f\u5f88\u7b80\u5355\uff0c\u76f4\u63a5\u8f93\u5165 <strong>@crate<\/strong> \uff0c\u7a7a\u683c\uff0c\u7136\u540e\u52a0 <strong>\u5173\u952e\u5b57<\/strong> \u5373\u53ef\uff01\u6bd4\u5982\u6211\u628a <strong>tokio<\/strong> \u52a0\u5165\u5230\u63d2\u4ef6\u4e2d\u4e4b\u540e\uff0c\u76f4\u63a5\u53ef\u4ee5\u8f93\u5165 <strong>@tokio spawn<\/strong> \u5c31\u80fd\u7acb\u5373\u641c\u7d22\u51fa <strong>tokio<\/strong> \u8fd9\u4e2a crate \u4e2d\u8ddf<code>spawn<\/code>\u6709\u5173\u7684\u6587\u6863\uff01<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200519_5ec37371c0c9d.gif\" alt=\"Rust Search Extension 0.9 \u53d1\u5e03\uff01\u652f\u6301\u641c\u7d22\u4efb\u610f\u7b2c\u4e09\u65b9 crate \u7684\u6587\u6863\u4e86\uff01\" \/><\/p>\n<p>\u5f53\u7136\uff0c\u5982\u679c\u67d0\u4e2a crate \u540d\u5b57\u6bd4\u8f83\u957f\uff0c\u5728\u5730\u5740\u680f\u8fd8\u8981\u6253\u51fa\u6574\u4e2a crate \u7684\u540d\u5b57\u4f1a\u7279\u522b\u9ebb\u70e6\uff0c\u6240\u4ee5\u63d2\u4ef6\u4f1a\u6839\u636e\u8f93\u5165\u7684\u5b57\u6bcd\u5339\u914d\u5019\u9009\u7684 crate \uff08\u524d\u63d0\u662f\u8981\u52a0\u5165\u5230\u63d2\u4ef6\u4e2d\uff09\uff0c\u7136\u540e\u7528 Tab \u6216\u4e0a\u4e0b\u952e\u9009\u4e2d\u5373\u53ef\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200519_5ec37377cce57.jpg\" alt=\"Rust Search Extension 0.9 \u53d1\u5e03\uff01\u652f\u6301\u641c\u7d22\u4efb\u610f\u7b2c\u4e09\u65b9 crate \u7684\u6587\u6863\u4e86\uff01\" \/><\/p>\n<p>\u5982\u679c\u4e0d\u518d\u9700\u8981\u641c\u7d22\u67d0\u4e2a crate \u4e86\uff0c\u53ea\u9700\u8981\u5728 crate \u7684 docs.rs \u9875\u9762\u540c\u6837\u70b9\u51fb\u9ec4\u8272\u6309\u94ae\u5373\u53ef\u5220\u9664\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200519_5ec3737e52ef3.jpg\" alt=\"Rust Search Extension 0.9 \u53d1\u5e03\uff01\u652f\u6301\u641c\u7d22\u4efb\u610f\u7b2c\u4e09\u65b9 crate \u7684\u6587\u6863\u4e86\uff01\" \/><\/p>\n<p>\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c\u4f60\u52a0\u5165\u63d2\u4ef6\u7684 crate \u662f\u533a\u5206\u7248\u672c\u7684\u3002\u4f60\u5f53\u65f6\u7684 docs.rs \u91cc\u9762\u662f\u4ec0\u4e48\u7248\u672c\uff0c\u52a0\u5165\u63d2\u4ef6\u7684\u5c31\u662f\u90a3\u4e2a\u7248\u672c\u3002\u63d2\u4ef6\u4e0d\u4f1a\u81ea\u52a8\u5e2e\u4f60\u5347\u7ea7\u7248\u672c\u53f7\uff0c\u6bd5\u7adf crate \u4f5c\u8005\u66f4\u65b0\u7248\u672c\u53f7\u4e4b\u540e\uff0c\u5e76\u4e0d\u4e00\u5b9a\u9002\u5408\u7acb\u5373\u8ddf\u8fdb\u8be5\u7248\u672c\uff0c\u51b5\u4e14\u65b0\u7684\u7248\u672c\u53ef\u80fd\u8fd8\u4e0d\u7a33\u5b9a\u3002\u5982\u679c\u4f60\u6536\u85cf\u7684\u7248\u672c\u6bd4\u5f53\u524d\u7f51\u9875\u4e2d\u7248\u672c\u8981\u65e7\uff0c\u5219\u9ec4\u8272\u6309\u94ae\u4f1a\u663e\u793a\u4e00\u4e2a\u5347\u7ea7\u56fe\u6807\uff0c\u70b9\u51fb\u5c31\u53ef\u4ee5\u66f4\u65b0\u81f3\u65b0\u7248\u3002\u5c31\u50cf\u8fd9\u6837\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200519_5ec3738616ceb.jpg\" alt=\"Rust Search Extension 0.9 \u53d1\u5e03\uff01\u652f\u6301\u641c\u7d22\u4efb\u610f\u7b2c\u4e09\u65b9 crate \u7684\u6587\u6863\u4e86\uff01\" \/><\/p>\n<h2>\u652f\u6301\u641c\u7d22 Clippy lint<\/h2>\n<p>\u8fd9\u662f Github \u4e0a\u4e00\u4f4d\u7528\u6237\u63d0\u7684\u9700\u6c42\uff0c\u6211\u89c9\u5f97\u53ef\u80fd\u90e8\u5206\u5f00\u53d1\u8005\u4e5f\u9700\u8981\u3002cargo clippy \u7ed9\u51fa\u7684 lint \u5efa\u8bae\u90fd\u975e\u5e38\u68d2\uff0c\u4e0d\u8fc7\u8be6\u7ec6\u7684\u5efa\u8bae\u8fd8\u662f\u9700\u8981\u5230 clippy \u7684\u5b98\u65b9\u6587\u6863\u9875\u67e5\u770b\uff0c\u4e0d\u592a\u65b9\u4fbf\u7684\u662f\u9700\u8981\u81ea\u5df1\u6253\u5f00\u6587\u6863\u641c\u7d22\u5bf9\u5e94\u7684 lint \u540d\u5b57\u3002\u73b0\u5728\u4f60\u53ef\u4ee5\u76f4\u63a5\u5728\u5730\u5740\u680f\u8f93\u5165 <strong>&gt;<\/strong>\uff08\u5927\u4e8e\u7b26\u53f7\uff09\u52a0 lint \u540d\uff0c\u5373\u53ef\u5feb\u901f\u5b9a\u4f4d\u5230\u8be5 lint \u7684\u6587\u6863\uff01<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200519_5ec3738bc8d12.jpg\" alt=\"Rust Search Extension 0.9 \u53d1\u5e03\uff01\u652f\u6301\u641c\u7d22\u4efb\u610f\u7b2c\u4e09\u65b9 crate \u7684\u6587\u6863\u4e86\uff01\" \/><\/p>\n<h2>\u65b0\u7684<code>:label<\/code>\u547d\u4ee4 &#8211; \u641c\u7d22 Rust \u4ed3\u5e93\u91cc\u9762\u7684 issue label<\/h2>\n<p>Rust \u4ed3\u5e93\u7684\u76ee\u524d\u4ea7\u751f\u4e86\u5c06\u8fd1 34 \u4e07\u4e2a issue \uff08\u5305\u62ec\u5df2\u5173\u95ed\u7684\uff09\uff0c\u8fd9\u4e48\u5e9e\u5927\u6570\u91cf\u7684 issue \u662f\u901a\u8fc7\u63a5\u8fd1 300 \u4e2a issue label \u6765\u6709\u6761\u4e0d\u7d0a\u7ba1\u7406\u7684\u3002\u8fd9\u4e9b issue label \u662f\u4e00\u4e2a\u4e86\u89e3 rust \u5f00\u53d1\u8fdb\u5ea6\u3001\u65b0\u529f\u80fd\u65b0\u8fdb\u5c55\u3001bug \u4fee\u590d\u60c5\u51b5\u7684\u7edd\u4f73\u65b9\u5f0f\u3002\u8fd9\u4e9b issue label \u8fd8\u4f1a\u6309\u7167\u4e0d\u540c\u7684\u7ef4\u5ea6\u6309\u4e0d\u540c\u7684\u524d\u7f00\u547d\u540d\uff0c\u6bd4\u5982 F \u524d\u7f00\u7684\u8868\u793a\u67d0\u4e2a\u65b0 feature \u76f8\u5173\u7684 issue\uff0cO \u524d\u7f00\u8868\u793a\u548c OS \u6709\u5173\u7684 issue\uff0cS \u524d\u7f00\u8868\u793a\u548c\u72b6\u6001\u6709\u5173\u7684 issue\uff0cT \u524d\u7f00\u8868\u793a\u67d0\u4e2a rust \u5b98\u65b9 team \u8d1f\u8d23\u7684 issue \u7b49\u7b49\u3002\u5176\u4e2d\u6709\u4e00\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u6807\u7b7e\u662f <code>C-tracking-issue<\/code>,\u901a\u8fc7\u8fd9\u4e2a\u6807\u7b7e\u80fd\u770b\u5230\u76ee\u524d\u67d0\u4e2a RFC \u529f\u80fd\u6c47\u603b\u7684\u8fdb\u5ea6\u72b6\u51b5\uff0c\u975e\u5e38\u6709\u7528\uff01 \u6240\u4ee5\uff0c<code>:labe<\/code>l \u5c31\u662f\u8fd9\u6837\u4e00\u4e2a\u5e2e\u52a9\u5927\u5bb6\u975e\u5e38\u65b9\u4fbf\u5feb\u6377\u641c\u7d22\u8fd9\u4e9b label \u7684\u547d\u4ee4\uff0c\u53ea\u9700\u8981\u8f93\u5165<code>:label<\/code>\u5373\u53ef\u3002\u4e5f\u53ef\u4ee5\u5728\u540e\u9762\u8f93\u5165\u4f60\u60f3\u8fc7\u6ee4\u7684\u5b57\u6bcd\u6765\u5feb\u901f\u67e5\u627e label \u3002\u9009\u4e2d\u56de\u8f66\u4e4b\u540e\u5c31\u53ef\u4ee5\u7b5b\u9009\u51fa\u8be5 label \u4e0b\u9762\u7684\u6240\u6709 issue \u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200519_5ec373922f2a0.jpg\" alt=\"Rust Search Extension 0.9 \u53d1\u5e03\uff01\u652f\u6301\u641c\u7d22\u4efb\u610f\u7b2c\u4e09\u65b9 crate \u7684\u6587\u6863\u4e86\uff01\" \/><\/p>\n<h2>\u5b98\u7f51<\/h2>\n<p>https:\/\/rust-search-extension.now.sh \u5b98\u7f51\u4e0a\u8be6\u7ec6\u5217\u4e3e\u4e86\u5404\u4e2a\u529f\u80fd\uff0c\u5e76\u914d\u5907\u4e86 GIF \u56fe\u7247\u793a\u4f8b\u3002<\/p>\n<h2>Github<\/h2>\n<p>Rust Search Extension \u5728 Github https:\/\/github.com\/huhu\/rust-search-extension\u5f00\u6e90\uff0c\u6b22\u8fce\u5927\u5bb6\u63d0 issue \u6216 PR \uff01<\/p>\n<h2>\u4e0b\u8f7d\u5730\u5740<\/h2>\n<ul>\n<li>\n<p>Chrome Web Store<\/p>\n<\/li>\n<li>\n<p>Firefox<\/p>\n<\/li>\n<li>\n<p>Microsoft Edge<\/p>\n<\/li>\n<\/ul><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>5<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1308515\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Pagliacii <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7528\u8d77\u6765\u633a\u8212\u670d\u7684\uff0c\u5e2e\u9876                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1308516\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : saltbo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u597d\u7528 \u624b\u52a8\u70b9\u8d5e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1308517\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Yucklys <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u66f4\u65b0\u5f88\u597d\uff0c\u7701\u4e86\u5f88\u591a\u53cd\u590d\u641c\u6587\u6863\u7684\u65f6\u95f4                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1308518\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Wichna <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Pagliacii \u8c22\u8c22\u652f\u6301                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1308519\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Wichna <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @saltbo <br \/>@Yucklys <br \/>\u8c22\u8c22\u5927\u5bb6\u7684\u559c\u6b22                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Rust Search Exten&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/90765"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=90765"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/90765\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=90765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=90765"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=90765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}