<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Cargo on 程序员日记</title><link>https://nanlong.github.io/tags/cargo/</link><description>Recent content in Cargo on 程序员日记</description><generator>Hugo -- 0.152.2</generator><language>zh-CN</language><lastBuildDate>Wed, 18 Nov 2026 00:00:00 +0800</lastBuildDate><atom:link href="https://nanlong.github.io/tags/cargo/index.xml" rel="self" type="application/rss+xml"/><item><title>Rust 1.100 深度解析：never 类型全面稳定，Vec 和 Box 支持自定义分配器</title><link>https://nanlong.github.io/posts/rust-1-100-0-deep-dive/</link><pubDate>Wed, 18 Nov 2026 00:00:00 +0800</pubDate><guid>https://nanlong.github.io/posts/rust-1-100-0-deep-dive/</guid><description>Rust 1.100 稳定了可在任意类型位置书写的 never 类型 `!` 与核心 `Allocator` API，将 `Infallible` 统一为 `!` 的别名，并新增 `DropGuard`、`conjure_zst`、`extern &amp;#34;custom&amp;#34;` 以及 Cargo 原生 lint、依赖冷却期和新构建目录布局。本文结合官方发布说明与 1.99.0 对照验证，拆解这些变化的语义、工程取舍和升级注意点。</description></item><item><title>Rust 1.99 深度解析：用 Rust 定义 C 变参函数，从裸指针读取布局</title><link>https://nanlong.github.io/posts/rust-1-99-0-deep-dive/</link><pubDate>Sun, 04 Oct 2026 00:00:00 +0800</pubDate><guid>https://nanlong.github.io/posts/rust-1-99-0-deep-dive/</guid><description>Rust 1.99 稳定了 C 变参函数定义、裸指针布局查询和一组 Box/Vec 所有权转换 API，Cargo 新增 debug profile 并在 CI 中默认关闭增量编译。本文结合官方资料与 1.98.1 对照实测，说明这些变化的准确语义、使用限制和升级时要注意的地方。</description></item><item><title>Rust 1.97 深度解析：让警告归 Cargo，让符号名说清类型</title><link>https://nanlong.github.io/posts/rust-1-97-0-deep-dive/</link><pubDate>Fri, 10 Jul 2026 00:00:00 +0800</pubDate><guid>https://nanlong.github.io/posts/rust-1-97-0-deep-dive/</guid><description>Rust 1.97 默认启用 v0 符号改编、让 Cargo 原生管理 warning 策略、公开链接器消息，并补齐一组位运算 API。本文用实测代码分析它们解决的问题、设计取舍与升级边界。</description></item></channel></rss>