wkhtmltopdf-rs icon indicating copy to clipboard operation
wkhtmltopdf-rs copied to clipboard

Reinit is broken while readme says it works

Open Ten0 opened this issue 2 years ago • 1 comments

Readme says "deinitialization does make it safe to reuse":

https://github.com/anowell/wkhtmltopdf-rs/blob/c944f270c3b73c6eb7593b702be69f91f57106ca/README.md?plain=1#L17

But the following test panics on second initialization, while the first one is dropped.

#[test]
fn double_init() {
	PdfApplication::new().expect("Failed to init PDF application");
	PdfApplication::new().expect("Failed to init PDF application");
}

Ten0 avatar Mar 23 '23 17:03 Ten0

Fwiw: I am no longer using or maintaining this crate (nor am I aware of the upstream maintenance or compatibility status of upstream wkhtmltopdf). I'd still do the bare minimum to merge a reasonable PR and/or republish the crate, and I'd entertain transferring the crate if there was a demonstrated effort to maintain it, but otherwise, I don't intend to invest in resolving issues like this one.

anowell avatar Mar 27 '23 18:03 anowell