Skip to content

Attribute to allow naming the entry point something other than main #4207

@ILyoan

Description

@ILyoan

How about we add a new command line option to change the entry point from "fn main()" to another?

for example
$ rustc a.rs --entry=myEntry

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-attributesArea: Attributes (`#[…]`, `#![…]`)C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions