Rust 1.39 发布,async-await支持


Rust团队今天非常高兴地宣布Rust的最新稳定更新版本1.39.0。 Rust是一种编程语言,它使每个人都可以构建可靠且高效的软件。

Rust 1.39 发布,async-await支持

如果您通过rustup安装了旧版本的Rust,那么获取Rust 1.39.0就像下面这样简单:

[root@localhost linuxidc]# rustup update stable
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2019-11-07, rust version 1.39.0 (4560ea788 2019-11-04)
info: downloading component 'rustc'
 66.3 MiB /  66.3 MiB (100 %)  10.3 MiB/s in  8s ETA:  0s
info: downloading component 'rust-std'
176.4 MiB / 176.4 MiB (100 %)  10.2 MiB/s in 17s ETA:  0s
info: downloading component 'cargo'
info: downloading component 'rust-docs'
 11.8 MiB /  11.8 MiB (100 %)  9.6 MiB/s in  1s ETA:  0s
info: removing previous version of component 'rustc'
info: removing previous version of component 'rust-std'
info: removing previous version of component 'cargo'
info: removing previous version of component 'rust-docs'
info: installing component 'rustc'
 66.3 MiB /  66.3 MiB (100 %)  10.8 MiB/s in  6s ETA:  0s
info: installing component 'rust-std'
176.4 MiB / 176.4 MiB (100 %)  20.4 MiB/s in  8s ETA:  0s
info: installing component 'cargo'
info: installing component 'rust-docs'
 11.8 MiB /  11.8 MiB (100 %)  2.8 MiB/s in  3s ETA:  0s

  stable-x86_64-unknown-linux-gnu updated - rustc 1.39.0 (4560ea788 2019-11-04)

info: checking for self-updates

查看版本命令:

[root@localhost linuxidc]# rustc --version
rustc 1.39.0 (4560ea788 2019-11-04)

Rust 1.39.0最突出的亮点包括async-await支持,对匹配保护中by-move绑定的共享引用以及函数参数上的属性。

它允许功能通常出于I/O或其他目的而“暂停”,然后恢复功能。

Rust 1.39现在还支持函数参数,新的const函数,标准库添加和其他更改的属性。

有关Rust 1.39的更多详细信息,请参阅Rust-Lang.org

下面关于Rust的文章您也可能喜欢,不妨参考下:

  • 为什么我说 Rust 是靠谱的编程语言  https://www.linuxboy.net/Linux/2015-05/117711.htm
  • Rust 1.2带来了更快的编译速度和并行代码生成  https://www.linuxboy.net/Linux/2015-08/121830.htm
  • Rust语言2017年调查报告  https://www.linuxboy.net/Linux/2017-09/146799.htm
  • 为什么Linux用户应该尝试Rust  https://www.linuxboy.net/Linux/2018-09/1544.htm
  • 如何在 Linux 中安装 Rust 编程语言  https://www.linuxboy.net/Linux/2019-01/156211.htm

  • 如何在Linux中安装Rust编程语言  https://www.linuxboy.net/Linux/2019-03/157229.htm

Rust 的详细介绍:请点这里
Rust 的下载地址:请点这里

linuxboy的RSS地址:https://www.linuxboy.net/rssFeed.aspx

本文永久更新链接地址:https://www.linuxboy.net/Linux/2019-11/161313.htm

相关内容