rust-ctor
rust-ctor copied to clipboard
Refresh project a bit
Update documentation, fix clippy lints, replace libc print macro in some places
Proofs:
MSRV for std printing in dtor:
#[ctor]
fn sturtup() {
println!("Staring...");
}
fn main() {
println!("Running...");
}
#[dtor]
fn shutdown() {
println!("Shutting down!");
}

Print in ctor works on 1.31

Hi, thanks for this patch. Give me a bit to look at it. Do you have a link to the Rust changeset allowing println in shutdown?
I think I want to split this patch into two: one removing the libc_* methods and the other with general cleanup. I'll take a look at this and can split it manually.
Hi, thanks for this patch. Give me a bit to look at it. Do you have a link to the Rust changeset allowing println in shutdown?
I think I want to split this patch into two: one removing the libc_* methods and the other with general cleanup. I'll take a look at this and can split it manually.
I'm not sure what PR added an ability to use print in shutdown, I've just bisected it though compiler versions UPD: Possibly this PR https://github.com/rust-lang/rust/pull/76275/
Also I of course can split this into two PR's, seems rational