Skip to content

How to create a *new* project that uses the 2018 edition? #102

Closed
@japaric

Description

@japaric

The guide has a great section on migrating an existing crate to the 2018 edition but if you want to start a new project that uses the 2018 edition is not obvious that you need to set package.edition = "2018" in your Cargo.toml as this is only mentioned (AFAICT) in Section 1.1 Transitioning your code to a new edition.

It would be great to have a short section on this topic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions