Rust 1.7 正式发布,Rust 是一个系统编程语言,专注于安全,速度和并发。
可以从官网直接安装 Rust 1.7,Rust 1.7 详细更新说明 请看 GitHub 里面的 1300 Patches。
Rust 1.7 稳定版包含什么?
此版本主要是 库 特性,同时 Rust 团队也在为未来版本添加更多的语言特性。
1. 大约 40 个库函数在此版本达到稳定状态,其中最主要的是标准库 HashMap<K, V> 类型支持自定义 Hash 算法的 APIs;
这个变化可以在 crates.io 的 fnv crate 中看出来,或者创建一个 HashMapvia:
extern crate fnv;
use std::collections::HashMap;
use std::hash::BuildHasherDefault;
use fnv::FnvHasher;
type MyHasher = BuildHasherDefault;
fnmain(){
let mutmap:HashMap<_,_,MyHasher> = HashMap::default();
map.insert(1,"Hello");
map.insert(2,", world!");
println!("{:?}",map);
}
其他值得关注的更新如下:
1. <[T]>::clone_from_slice(),一个高效的数据复制方式,从一个部分到另一个部分
2. 提供给 Ipv4Addr 和 Ipv6Addr 各种便捷的方法,比如 is_loopback()
3. 各种 CString 改进,用于 FFI
4. 为各种数值类型提供检验,饱和与满溢操作
5. 更新 Cargo:优化构建脚本,修改 cargo rustc 子命令
Rust 1.7 发行说明:http://blog.rust-lang.org/2016/03/02/Rust-1.7.html
Rust 1.7 参与的独立贡献者有 144 位,非常感谢:
Aaron Turon
Adam Perry
Adrian Heine
Aidan Hobson Sayers
Aleksey Kladov
Alexander Lopatin
Alex Burka
Alex Crichton
Ali Clark
Amanieu d’Antras
Andrea Bedini
Andrea Canciani
Andre Bogus
Andrew Barchuk
Andrew Paseltiner
angelsl
Anton Blanchard
arcnmx
Ariel Ben-Yehuda
arthurprs
ashleysommer
Barosl Lee
Benjamin Herr
Björn Steinbrink
bors
Brandon W Maister
Brian Anderson
Brian Campbell
Carlos E. Garcia
Chad Shaffer
Corey Farwell
Daan Sprenkels
Daniel Campbell
Daniel Robertson
Dave Hodder
Dave Huseby
dileepb
Dirk Gadsden
Eduard Burtescu
Erick Tryzelaar
est31
Evan
Fabrice Desré
fbergr
Felix Gruber
Felix S. Klock II
Florian Hahn
Geoff Catlin
Geoffrey Thomas
Georg Brandl
ggomez
Gleb Kozyrev
Gökhan Karabulut
Greg Chapple
Guillaume Bonnet
Guillaume Gomez
Ivan Kozik
Jack O’Connor
Jeffrey Seyfried
Johan Lorenzo
Johannes Oertel
John Hodge
John Kåre Alsaker
Jonas Schievink
Jonathan Reem
Jonathan S
Jorge Aparicio
Josh Stone
Kamal Marhubi
Katze
Keith Yeung
Kenneth Koski
Kevin Stock
Luke Jones
Manish Goregaokar
Marc Bowes
Marvin Löbel
Masood Malekghassemi
Matt Brubeck
Mátyás Mustoha
Michael Huynh
Michael Neumann
Michael Woerister
mitaa
mopp
Nathan Kleyn
Nicholas Mazzuca
Nick Cameron
Nikita Baksalyar
Niko Matsakis
NODA, Kai
nxnfufunezn
Olaf Buddenhagen
Oliver ‘ker’ Schneider
Oliver Middleton
Oliver Schneider
Pascal Hertleif
Paul Dicker
Paul Smith
Peter Atashian
Peter Kolloch
petevine
Pierre Krieger
Piotr Czarnecki
Prayag Verma
qpid
Ravi Shankar
Reeze Xia
Richard Bradfield
Robin Kruppe
rphmeier
Ruud van Asseldonk
Ryan Thomas
Sandeep Datta
Scott Olson
Scott Whittaker
Sean Leffler
Sean McArthur
Sebastian Hahn
Sebastian Wicki
Sébastien Marie
Seo Sanghyeon
Sergey Veselkov
Simonas Kazlauskas
Simon Sapin
Stepan Koltsov
Stephan Hügel
Steve Klabnik
Steven Allen
Steven Fackler
Tamir Duberstein
tgor
Thomas Wickham
Thomas Winwood
Tobias Bucher
Toby Scrace
Tomasz Miąsko
tormol
Tshepang Lekhonkhobe
Ulrik Sverdrup
Vadim Petrochenkov
Vincent Esche
Vlad Ureche
Wangshan Lu
Wesley Wiser