红联Linux门户
Linux帮助

Rust 1.24.0发布,Mozilla开发的系统编程语言

发布时间:2018-02-16 10:14:16来源:红联作者:baihuo
Rust 1.24.0 发布了。Rust 是一门由 Mozilla 开发的专注于安全性,速度和并发性的系统编程语言。

更新内容:

语言

External sysv64 ffi is now available. eg. extern "sysv64" fn foo () {}

编译器

rustc now uses 16 codegen units by default for release builds. For the fastest builds, utilize codegen-units=1.

Added armv4t-unknown-linux-gnueabi target.

Add aarch64-unknown-openbsd support



str::find:: now uses memchr. This should lead to a 10x improvement in performance in the majority of cases.

OsStr's Debug implementation is now lossless and consistent with Windows.

time::{SystemTime, Instant} now implement Hash.

impl From for AtomicBool

impl From<{CString, &CStr}> for {Arc, Rc}

impl From<{OsString, &OsStr}> for {Arc, Rc}

impl From<{PathBuf, &Path}> for {Arc, Rc}

float::from_bits now just uses transmute. This provides some optimisations from LLVM.

Copied AsciiExt methods onto char

Remove T: Sized requirement on ptr::is_null()

impl From for {TryRecvError, RecvTimeoutError}

Optimised f32::{min, max} to generate more efficent x86 assembly

[u8]::contains now uses memchr which provides a 3x speed improvement

软件详情:https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1240-2018-02-15

下载地址:https://www.rust-lang.org/install.html

来自:开源中国社区
文章评论

共有 0 条评论