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


Opaque Systems Introduces Gateway GenAI Solution
14/03/2024

Opaque Systems has announced an early access program for Opaque Gateway, software designed to address data privacy, security, and sovereignty concerns in managing GenAI implementations.



Crazy Clocks
10/03/2024

It's that time again when the clocks change and  time is of the essence and I indulge my interest in crazy clocks. I am always surprised that there are still new ideas for how to display the time [ ... ]


More News

raspberry pi books

 

Comments




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

Last Updated ( Monday, 12 June 2017 )