Skip to content

Crate names unable to have digits #8829

@ghost

Description

Describe the problem you are trying to solve
Today, we had a project for uni, we could use any programming language to solve the problem and I wanted to use Rust as the language to solve the problem, unfortunately, in the specifications, we were told we needed the compiled binary that needed to be named "101Pong". So I tried creating a crate with that name, and cargo didn't let me do it.

Describe the solution you'd like
I'd like to see an option that can let one force the name of the crate even tho it is not authorized to have a crate with digits in front of the name, (I will not upload that crate to anywhere except a private GitHub repository), this would be great so that person doesn't have to use an external tool (like make/Makefile) to invoke the compilation process and then rename the binary from an authorized name to a non-authorized name

Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Error and warning messages generated by Cargo itself.C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-new

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions