Chapter 1
- Yes, it is The Rust Programming Language by Steve Klabnik and Carol Nichols.
- In 2015, it was long 64 bits (or 8 bytes). At the end of 2018, it was long 128 bits (or 16 bytes).
- They are networking, command-line applications, WebAssembly, and embedded software.
- It checks for non-idiomatic syntax and suggests changes to code for better maintainability.
- It converts a 2015 edition project to a 2018 edition project.
- 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)}
- With the dependency used in ...