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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Rust Dylib Rabbit Holes

63 点作者 jmillikin9 个月前

3 条评论

ninkendo9 个月前
&gt; I sometimes wonder if Rust (or more accurately Cargo) needs a third default profile “fastbuild” that doesn’t have debug info and is optimised for building fast.<p>I’d go even further and say that cargo should have an option for simply checking if the code compiles (and borrow checks), but doesn’t even link it. 95% of the time when I’m writing code, I run cargo to see if the code I just wrote, compiles. Then it tells me about an error, I try to fix it, then run cargo again. In each of these instances I don’t even need to run or even link the code.<p>I use an IDE with LSP&#x2F;rust-analyzer support to get errors as I type but it doesn’t catch a lot of errors (and doesn’t seem run borrow checking) so I need to do a cargo build to get the full error report, I just want this loop to be faster.
评论 #41378502 未加载
评论 #41380228 未加载
vollbrecht9 个月前
A nice article that looks into a specific difference between llvm&#x2F;lld and gnu ld, when it comes to shared objects on linux.
o11c9 个月前
Note that making shared generics protected breaks pointer equality when multiple shared libraries are involved. I&#x27;m pretty sure this is illegal in C++ but I&#x27;m not sure about Rust&#x27;s rules.