内容简介:Rust 1.22.0 已发布,该版本带来了语言、编译器、库和稳定 API 方面的更新,具体如下: Language non_snake_case lint now allows extern no-mangle functions Now accepts underscores in unicode escapes T o...
Rust 1.22.0 已发布,该版本带来了语言、编译器、库和稳定 API 方面的更新,具体如下:
Language
T op= &Tnow works for numeric types. eg.let mut x = 2; x += &8;types that impl
Dropare now allowed inconstandstatictypes
Compiler
rustc now defaults to having 16 codegen units at debug on supported platforms.
rustc will no longer inline in codegen units when compiling for debug This should decrease compile times for debug builds.
Libraries
Allow atomic operations up to 32 bits on
armv5te_unknown_linux_gnueabiOption<T>now implsTryThis allows for using?withOptiontypes.
Stabilized APIs
Cargo
Changed
[root]to[package]inCargo.lockPackages with the old format will continue to work and can be updated withcargo update.
Misc
Stabilised the
compile_failattribute for code fences in doc-comments. This now lets you specify that a given code example will fail to compile.
Compatibility Notes
The minimum Android version that rustc can build for has been bumped to
4.0from2.3Allowing
T op= &Tfor numeric types has broken some type inference cases
下载地址
Rust 是一种系统编程语言。 它有着惊人的运行速度,能够防止段错误,并保证线程安全。
【声明】文章转载自:开源中国社区 [http://www.oschina.net]
以上所述就是小编给大家介绍的《Rust 1.22.0 发布,Mozilla 开发的系统编程语言》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:- Scala面向对象编程之Trait高级编程技术实践-JVM生态编程语言实战
- 逻辑式编程语言极简实现(使用C#) - 1. 逻辑式编程语言介绍
- 我的“第二”编程语言
- 编程语言特性:函数
- 编程语言的巅峰
- 各种编程语言对比
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
JavaScript修炼之道
波顿纽威 / 巩朋、张铁 / 人民邮电 / 2011-11 / 29.00元
《JavaScript修炼之道》是JavaScript的实战秘籍。作者将自己多年的编程经验融入其中,不仅可以作为学习之用,更是日常JavaScript开发中不可多得的参考手册,使读者少走很多弯路。《JavaScript修炼之道》的内容涵盖了当今流行的JavaScript库的运行机制,也提供了许多应用案例。《JavaScript修炼之道》针对各任务采取对页式编排,在对各任务的讲解中,左页解释了任务的......一起来看看 《JavaScript修炼之道》 这本书的介绍吧!
JS 压缩/解压工具
在线压缩/解压 JS 代码
html转js在线工具
html转js在线工具