Rust Programming Cookbook
上QQ阅读APP看书,第一时间看更新

Getting ready

Using new sharing-ownership --lib, create a new library project and open the directory in your favorite editor. We will also use the nightly compiler for benchmarks, so running rustup default nightly is highly recommended.

To enable benchmarks, add #![feature(test)] to the top of the lib.rs file.