Creating a Library: –crate-type=lib

  1. Libraries get prefixed with “lib”, and by default they get named after their crate file
  2. but this default name can be overridden by passing the --crate-name option to rustc or by using the crate_name attribute.