手机版
你好,游客 登录 注册
背景:
阅读新闻

Rust 1.39 发布,async-await支持

[日期:2019-11-08] 来源:Linux公社  作者:醉落红尘 [字体: ]

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 的详细介绍请点这里
Rust 的下载地址请点这里

Linux公社的RSS地址https://www.linuxidc.com/rssFeed.aspx

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

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款