Rust 语言 1.25 版本发布 编译器升级至 LLVM 6

2018年03月30日 08:10 次阅读 稿源:开源中国 条评论

Rust 是一门由 Mozilla 开发的专注于安全性,速度和并发性的系统编程语言。Rust 1.25 已发布,这不是一个特别大的版本更新,但值得关注的是编译器已从 LLVM 4 升级到 LLVM 6 。

1200px-Rust_programming_language_black_logo.svg.png

新版本带来了新的编写 use 的方法,以前:

use std::fs::File;use std::io::Read;use std::path::{Path, PathBuf};

现在

// on one lineuse std::{fs::File, io::Read, path::{Path, PathBuf}};// with some more breathing roomuse std::{    fs::File,    io::Read,    path::{        Path,        PathBuf    }};

更多细节请查阅:

版本更新:

$ rustup update stable

下载地址:

对文章打分

Rust 语言 1.25 版本发布 编译器升级至 LLVM 6

2 (20%)
已有 条意见

    最新资讯

    加载中...

    编辑精选

    加载中...

    热门评论

      Top 10

      招聘