Skip to content
Discussion options

You must be logged in to vote

main is a special function name so the Rust compiler is applying special handling to it.

Try the following instead, which uses a different name in Python than in Rust:

#[pyfunction(name="main")]
fn py_main(

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@brandons209
Comment options

Answer selected by brandons209
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants