toly 🇺🇸· @toly · X·· 2026-10-09精选AI 评分62
AI 导读
@clairefxyz 表示,Solana 历史上首次可以直接从上游 rustc 和 LLVM 生成 Solana 程序。从 sbpf-linker 0.2.3 开始,只需 cargo +nightly build 就能编译 no_std Solana 程序,无法编译的情况会被视为 bug 并修复。推文还附有 .cargo/config.toml 和 Solana libcalls 的快速指南。toly 转发该内容并评论 Incredibly based。
推荐理由
引用内容说明 sbpf-linker 0.2.3 起可直接用 cargo +nightly build 编译 Solana 程序,开发者可据此了解工具链变化。
正文
Omg. Incredibly based!
For the first time in Solana history, we can generate Solana programs directly from upstream rustc and LLVM! Starting with sbpf-linker 0.2.3, you can compile a no_std Solana program with just cargo +nightly build, and voilà! ✨ Anything that doesn't work should be considered a bug, and I'll fix it! I've chewed through all the compiler and assembly glass so you don't have to. The only thing left for you is to learn Rust properly. Below is a quick guide to .cargo/config.toml 101 and Solana libcalls在 X 查看被引用的帖子
来源:toly 🇺🇸 · x.com