Rust 1.6 發布,libcore 變穩定

jopen 8年前發布 | 7K 次閱讀

Rust 是 Mozilla 的一個新的編程語言,由web語言的領軍人物Brendan Eich(js之父),Dave Herman以及Mozilla公司的Graydon Hoare 合力開發。

Rust 1.6 發布,該版本最主要的新特性是 libcore 變穩定,主要更新如下:

Language

  • The #![no_std] attribute causes a crate to not be linked to the standard library, but only the core library, as described in RFC 1184. The core library defines common types and traits but has no platform dependencies whatsoever, and is the basis for Rust software in environments that cannot support a full port of the standard library, such as operating systems. Most of the core library is now stable.

Libraries

Cargo

  • Cargo will look in $CARGO_HOME/bin for subcommands by default.

  • Cargo build scripts can specify their dependencies by emitting thererun-if-changed key.

  • crates.io will reject publication of crates with dependencies that have a wildcard version constraint. Crates with wildcard dependencies were seen to cause a variety of problems, as described in RFC 1241. Disallowing them will create more predictable development experience and a more stable ecosystem. Since 1.5 publication of such crates has emitted a warning.

  • cargo clean accepts a --release flag to clean the release folder.  A variety of artifacts that Cargo failed to clean are now correctly deleted.

Misc

Compatibility Notes

更多內容請看:release notes

下載頁面:1.6.0





來自:
http://www.oschina.net//news/70107/rust-1-6

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!