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
相关推荐
布列瑟农的星空14 小时前
前端都能看懂的Rust入门教程(三)——控制流语句
前端·后端·rust
Andrew_Ryan20 小时前
用 Rust 构建高性能 LiteLLM 客户端:支持流式与非流式调用
rust
魔力军21 小时前
Rust学习Day3: 3个小demo实现
java·学习·rust
Smart-Space1 天前
htmlbuilder - rust灵活构建html
rust·html
魔力军1 天前
Rust学习Day2: 变量与可变性、数据类型和函数和控制流
开发语言·学习·rust
暴躁小师兄数据学院1 天前
【WEB3.0零基础转行笔记】Rust编程篇-第一讲:课程简介
rust·web3·区块链·智能合约
Hello.Reader2 天前
Rocket Fairings 实战把全局能力做成“结构化中间件”
中间件·rust·rocket
Andrew_Ryan2 天前
rust arena 内存分配
rust
Andrew_Ryan2 天前
深入理解 Rust 内存管理:基于 typed_arena 的指针操作实践
rust
微小冷3 天前
Rust异步编程详解
开发语言·rust·async·await·异步编程·tokio