2018-Specific Changes

The following is a summary of changes that only apply to code compiled withthe 2018 edition compared to the 2015 edition.

Cargo

  • If there is a target definition in a Cargo.toml manifest, it no longerautomatically disables automatic discovery of other targets.
  • Target paths of the form src/{target_name}.rs are no longer inferred fortargets where the path field is not set.
  • cargo install for the current directory is no longer allowed, you mustspecify cargo install —path . to install the current package.