Skip to content

Can't Scaffold A New Project With Name Beginning With Number? #8613

Closed
@JimLynchCodes

Description

@JimLynchCodes

Problem
Problem is that cargo gives an error "error: Package names starting with a digit cannot be used as a crate name" rather than creating a project with name beginning with number.

Steps

run this:

cargo new 1-hello-world

Possible Solution(s)

Notes

There is the additional output in the console, "use --name to override crate name", but I'm not really sure how to change my command to make it work. 🤔

Output of cargo version: cargo 1.42.0 (8633429 2020-01-31)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Error and warning messages generated by Cargo itself.C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions