2510rs,rust,1.90

原文

1.90.0稳定版中有什么

LLD现在是x86_64-unknown-linux-gnu上的默认链接器

默认,x86_64-unknown-linux-gnu目标现在将使用LLD链接器来链接Rust仓库.与默认的林操链接器(BFD)相比,这应该会提高链接性能,特别是对大型二进制文件,有大量调试信息二进制文件增量重建.

更一般,LLD应该后向兼容BFD,除了减少编译时间之外,你应该看不到任何区别.但是,如果你确实遇见任何新的链接器问题,你总是可用-C linker-features=-lld,编译器标志来选出.

或通过一般的RUSTFLAGS环境变量添加它,或在项目的.cargo/config.toml配置文件中,如下:

cpp 复制代码
[target.x86_64unknownlinuxgnu]
rustflags = ["Clinkerfeatures=lld"]

稳定的API

cpp 复制代码
u{n}::checked_sub_signed
u{n}::overflowing_sub_signed
u{n}::saturating_sub_signed
u{n}::wrapping_sub_signed
impl Copy for IntErrorKind
impl Hash for IntErrorKind
impl PartialEq<&CStr> for CStr
impl PartialEq<CString> for CStr
impl PartialEq<Cow<CStr>> for CStr
impl PartialEq<&CStr> for CString
impl PartialEq<CStr> for CString
impl PartialEq<Cow<CStr>> for CString
impl PartialEq<&CStr> for Cow<CStr>
impl PartialEq<CStr> for Cow<CStr>
impl PartialEq<CString> for Cow<CStr>

这些以前稳定的API,现在在环境中是稳定的:

cpp 复制代码
<[T]>::reverse
f32::floor
f32::ceil
f32::trunc
f32::fract
f32::round
f32::round_ties_even
f64::floor
f64::ceil
f64::trunc
f64::fract
f64::round
f64::round_ties_even
相关推荐
独孤留白4 小时前
从C到Rust:告别 C 的"指针 + 长度"手动模式
前端·rust
doiito5 小时前
【Agent Harness】 给 ComfyUI 装上一个 Rust 大脑:media_agent 架构深度揭秘
ai·rust·架构设计·系统设计·ai agent
花褪残红青杏小1 天前
Rust图像处理第11节-故障风 RGB 通道偏移:错位错色制造电子故障
rust·webassembly·图形学
花褪残红青杏小1 天前
Rust图像处理第10节-浮雕/雕刻滤镜:邻域差值生成凹凸效果
rust·webassembly·图形学
Rockbean1 天前
10分钟Solana-性能web3-2.4 Rust 编程基础三:结构体、枚举、错误处理与集合
rust·web3·智能合约
doiito1 天前
【Agent Harness】Gliding Horse 上下文感知与智能压缩:让 Agent 的“注意力”永不偏移
ai·rust·架构设计·系统设计·ai agent
花褪残红青杏小2 天前
Rust图像处理第9节-Sobel 边缘检测:第一个真正用卷积的算法
rust·webassembly·图形学