TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

No-panic: Attribute macro to require rustc to prove a function can't ever panic

2 点作者 Smaug1239 个月前

1 comment

Smaug1239 个月前
Source for this submission: <a href="https:&#x2F;&#x2F;x.com&#x2F;kupiakos&#x2F;status&#x2F;1820897820255338899" rel="nofollow">https:&#x2F;&#x2F;x.com&#x2F;kupiakos&#x2F;status&#x2F;1820897820255338899</a> which links to a different crate; I selected this crate because it has orders of magnitude more downloads.<p>&gt; With the right tooling, Rust would make a big difference [to the CrowdStrike situation]. You can forbid panics in an entire binary (e.g. <a href="https:&#x2F;&#x2F;docs.rs&#x2F;panic-never&#x2F;0.1.0&#x2F;panic_never" rel="nofollow">https:&#x2F;&#x2F;docs.rs&#x2F;panic-never&#x2F;0.1.0&#x2F;panic_never</a>) and that would statically require that that code explicitly handle the case of unexpected size…