#### Overview of this book

Mozilla’s Rust is gaining much attention with amazing features and a powerful library. This book will take you through varied recipes to teach you how to leverage the Standard library to implement efficient solutions. The book begins with a brief look at the basic modules of the Standard library and collections. From here, the recipes will cover packages that support file/directory handling and interaction through parsing. You will learn about packages related to advanced data structures, error handling, and networking. You will also learn to work with futures and experimental nightly features. The book also covers the most relevant external crates in Rust. By the end of the book, you will be proficient at using the Rust Standard library.
Preface
Free Chapter
Learning the Basics
Working with Collections
Handling Files and the Filesystem
Serialization
`1   fn main() {2     let fib: Vec<_> = fibonacci().take(10).collect();3     println!("First 10 numbers of the fibonacci sequence: {:?}",         fib);4 5     let mut squared_vec = SquaredVec::new();6     squared_vec.push(1);7     squared_vec.push(2);8     squared_vec.push(3);9     squared_vec.push(4);10    for (index, num) in squared_vec.iter().enumerate() {11      println!("{}^2 is {}", index + 1, num);12    }13  }14 15 16  fn fibonacci() -> Fibonacci {17    Fibonacci { curr: 0, next: 1 }18  }19  struct Fibonacci {20  curr: u32,21  next: u32,22  }23  // A custom iterator has to implement24  // only one method: What comes next25  impl Iterator for Fibonacci {26    type Item = u32;27    fn next(&mut self) -> Option<u32> {28      let old = self.curr;29      self.curr = self.next;30      self.next +...`