Assessments

Chapter 1

  1. Yes, it is The Rust Programming Language by Steve Klabnik and Carol Nichols.
  2. In 2015, it was long 64 bits (or 8 bytes). At the end of 2018, it was long 128 bits (or 16 bytes).
  3. They are networking, command-line applications, WebAssembly, and embedded software.
  4. It checks for non-idiomatic syntax and suggests changes to code for better maintainability.
  5. It converts a 2015 edition project to a 2018 edition project.
  6. Add this dependency to the Cargo.toml file:
rand = "0.6"

Then, add this code to the main.rs file:

use rand::prelude::*;fn main() {    let mut rng = thread_rng();    let mut numbers = vec![];    for _ in 0..10 {        numbers.push(rng.gen_range(100_f32, 400_f32));    }    println!("{:?} ", numbers)}
  1. With the dependency used in ...

Get Creative Projects for Rust Programmers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.