10000 Heads-up: #[start] is being removed · Issue #897 · rune-rs/rune · GitHub
[go: up one dir, main page]

Skip to content

Heads-up: #[start] is being removed #897

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
RalfJung opened this issue Dec 20, 2024 · 1 comment
Closed

Heads-up: #[start] is being removed #897

RalfJung opened this issue Dec 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@RalfJung
Copy link

We are planning to remove the unstable #[start] attribute from the compiler, see rust-lang/rust#134299 for rationale and further details. This repo showed up in a search for users of the attribute in this file. For all we know, there's no good reason to use this attribute and you can do the following instead:

#![no_main]

#[no_mangle]
extern "C" fn main(argc: core::ffi::c_int, argv: *const *const u8) -> core::ffi::c_int {
  // ...
}

If that for some reason does not work, please let us know!

@udoprog udoprog added the bug Something isn't working label Dec 25, 2024
@udoprog
Copy link
Collaborator
udoprog commented Dec 25, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
0