c.f. https://github.com/rustsec/advisory-db/pull/2057 Perhaps your approach here is worth being an alternative? Is it ready to be published? note https://crates.io/crates/proc-macro-error2 already exists, so that name cant be used.