Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Reinit is broken while readme says it works #20

Open
Ten0 opened this issue Mar 23, 2023 · 1 comment
Open

Reinit is broken while readme says it works #20

Ten0 opened this issue Mar 23, 2023 · 1 comment

Comments

@Ten0
Copy link

Ten0 commented Mar 23, 2023

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

1. Wkhtmltopdf initialization can only occur once per process; deinitialization does make it safe to reuse

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");
}
@anowell
Copy link
Owner

anowell commented Mar 27, 2023

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants