You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rustc exports amain when build library for android to provide an start point that initiate rust runtime.
Now we have start_on_main_thread exported publicaly, a rust library is able to provide an entry function without amain hack .
#[no_mangle]
pub extern fn entry(argc: int, argv: **u8) -> int {
do std::rt::start_on_main_thread(argc, argv) {
// do what you want.
}
}
Thus I don't think we need amain hack any longer.
The text was updated successfully, but these errors were encountered:
…p1995
Adapt versions.html file to cleaned up gh-pages
Companion PR to rust-lang#10875
changelog: Remove legacy v0.0.* versions from Clippy repository and documentation.
Must be merged together with rust-lang#10875 (best with a closed tree)
r? `@Alexendoo` (because you were randomly selected on the other PR :P)
rustc exports
amain
when build library for android to provide an start point that initiate rust runtime.Now we have
start_on_main_thread
exported publicaly, a rust library is able to provide an entry function withoutamain
hack .Thus I don't think we need
amain
hack any longer.The text was updated successfully, but these errors were encountered: