Updated Rust Improves Documentation
Written by Kay Ewbank   
Monday, 12 June 2017

There's a new version of the systems programming language Rust with improvements to package handling and rewritten documentation.

rust

Rust was originally sponsored by Mozilla, and is designed to be safe, fast and concurrent without having a garbage collector. Intended uses include embedding in other languages, writing programs with specific space and time requirements, and writing low-level code, like device drivers and operating systems.

A major improvement to the new version is a new edition of “The Rust Programming Language”, the official book about Rust. The new edition is a complete re-write on the previous edition, with better explanations for a lot of Rust’s core concepts, and instructions for new projects to build.

In the language, the way the pub keyword works has been changed to make it easier to declare APIs that are “public to your crate”, but not exposed to your users.

Seven new APIs were stabilized this release: 

  • Child::try_wait is a non-blocking form of Child::wait.

  • HashMap::retain and HashSet::retain bring the retain API Vec<T> has to these two hash data structures.

  • PeekMut::pop lets you pop the top element from a BinaryHeap<T> after you’ve already peeked at it without needing to reorder the heap a second time.

  • TcpStream::peek, UdpSocket::peek, UdpSocket::peek_from let you peek at a stream or socket.

 

Cargo has also been improved. Cargo lets developers use modern application package management within Rust. The updated version has added support for the Pijul VCS. Cargo also has several new flags including  --bins, --examples, --tests, and --benches, which will let you build all programs of that type. Finally, Cargo now supports Haiku and Android.

The next release of Rust, which is currently in beta, will focus more on improvements to the compiler speed.

rust

More Information

Rust Language Site

Related Articles

Rust 1.16

Rust 1.12

Rust 1.6 Released

Rust 1.3 Released

Rust Releases New Versions

Rust Hits Stable 1.0 - So What?

Rust 1.0 Alpha Released       

Rust Reaches 0.9

Rust 0.7 Released

Rust 0.4 Full Integration of Borrowed Pointers

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Amazon Adds AWS Lambda Code Editing Tool
04/11/2024

Amazon has added a new code editing option for AWS Lambda in the AWS console based on the Code-OSS, Visual Studio Code Open Source code editor.



Flutter Forked As Flock
05/11/2024

One of developers who worked on the Flutter team at Google has created an open-source form of the framework. Matt Carroll says Flock will be "Flutter+", will remain constantly up to date with Flutter, [ ... ]


More News

espbook

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Monday, 12 June 2017 )