Skip to content

pub fn main() doesn't work #14

Closed
Closed
@meluskyc

Description

@meluskyc

Looks like only these signatures are supported currently:

let source = if source   
    .lines()   
    .any(|line| line.starts_with("fn main()") || line.starts_with("async fn main()"))

Could we also support pub fn main()? This would make it easier to develop/debug scripts from the IDE, since currently I keep them all in a cargo project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions