Closed Jedsek closed 3 weeks ago
This code was not allowed before:
No, arbitrary function names are supported.
No, arbitrary function names are supported.
Oh, I know what you mean, but I mean as a entry point.
Close it because It deviates from the semantics I thought. Thanks for tips. :)
Importing main from other modules or crates.
has been stabilized in rust 1.79.Maybe we could improve it a little for
#[tokio::main]
?This code was not allowed before:
note: This is
backwards compatible
because the previous code not allowed.how to solved: We could add prefix before any function and then
use prefix_{name} as main;
.