Rust 1.25 brings improvements for the Cargo command-line interface

Rust 1.25, the latest version of the programming language feature changes in the Cargo CLI command-line interface, with cargo new the default for generating a binary, rather than just part of the library.

While developers try to keep the CLI stable, as it's unlikely to result in breakage with cargo new accepting these two flags: --lib (for building libraries) and --bin ( for building binaries), as with previous versions of Cargo, developers would default to --lib, if they did not pass one of the flags.

As each binary depends on other libraries; making the library case more common, albeit this behavior is actually incorrect, with many binaries dependent on each library.

This latest version of Rust also brought improvements for the stabilization of library and an upgrade to the Low-Level Virtual Machine (LLVM) compiler infrastructure which provide support for the WebAssembly portable code format.

The upgraded to LLVM 6 from LLVM 4 ensures that the programing language keeps abreast of the upstream WebAssembly back end and able to pick up new features when available. Also, it fixes some SIMD-related compilation errors.

Mozilla claims, Rust brings improved security and reliability to IoT devices; which is far better than the C/C++ languages commonly used to write micro-controller firmware. And for Internet of Things (IoT) development, LLVM 6 brings Rust closer to supporting the AVR micr-ontroller family, leveraged in the Arduino Uno board.

To run Rust, you can install it using your terminal and entering the following command: curl -sSf | sh.
Next Post »