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


Ursina - A Game Engine Powered by Python
08/11/2024

Ursina is a new open source game engine in which you can code any type of game in Python, be it 2-D, 3-D, an application, a visualization, you name it.



Wasmer 5 Adds iOS Support
12/11/2024

The Wasmer team has released Wasmer 5.0. The WebAssembly runtime adds experimental support for more back ends including V8, Wasmi and WAMR. It also now has iOS support, and upgraded compilers includin [ ... ]


More News

espbook

 

Comments




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

Last Updated ( Monday, 12 June 2017 )