
Linuxeden 开源社区 --
Rust 1.22.0 已发布,该版本带来了语言、编译器、库和稳定 API 方面的更新,具体如下:
Language
non_snake_caselint now allows extern no-mangle functions- Now accepts underscores in unicode escapes
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.
- strict memory alignment now enabled on ARMv6
- Remove support for the PNaCl target
le32-unknown-nacl
Libraries
- Allow atomic operations up to 32 bits on
armv5te_unknown_linux_gnueabi Box<Error>now implsFrom<Cow<str>>std::mem::Discriminantis now guaranteed to beSend + Syncfs::copynow returns the length of the main stream on NTFS.- Properly detect overflow in
Instant += Duration. - impl
Hasherfor{&mut Hasher, Box<Hasher>} - impl
fmt::DebugforSplitWhitespace. Option<T>now implsTryThis allows for using?withOptiontypes.
Stabilized APIs
Cargo
- Cargo will now build multi file examples in subdirectories of the
examplesfolder that have amain.rsfile. - Changed
[root]to[package]inCargo.lockPackages with the old format will continue to work and can be updated withcargo update. - Now supports vendoring git repositories
Misc
libbacktraceis now available on Apple platforms.- 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.3 - Allowing
T op= &Tfor numeric types has broken some type inference cases
下载地址
Rust 是一种系统编程语言。 它有着惊人的运行速度,能够防止段错误,并保证线程安全。
转自 http://ift.tt/2jfDz9I
The post Rust 1.22.0 发布,Mozilla 开发的系统编程语言 appeared first on Linuxeden开源社区.
http://ift.tt/2A2I4wd
没有评论:
发表评论