chore: update deny and audit

The deny tooling removed many of the keys that were in the `deny.toml`.

The auditing of the repository reported that `proc-macro-error` is
unmaintained ([RUSTSEC-2024-0370]). This is replaced with the fork, `proc-macro-error2`,
which is a drop-in replacement.

It also produced a vulnerability report ([RUSTSEC-2024-0421]) for the
`idna` crate, a transitive dependency of `url`. This is fixed by
pinning `url` to `>= 2.5.4`

[RUSTSEC-2024-0370]: https://rustsec.org/advisories/RUSTSEC-2024-0370
[RUSTSEC-2024-0421]: https://rustsec.org/advisories/RUSTSEC-2024-0421
It also pins `url` to be `>= 2.5.4`, since
This commit is contained in:
Fintan Halpenny
2025-02-10 14:11:28 +00:00
parent ecb3969a88
commit 41e3f30ffc
5 changed files with 281 additions and 157 deletions
@@ -13,7 +13,7 @@ proc-macro = true
test = false
[dependencies]
proc-macro-error = "1.0.4"
proc-macro-error2 = "2"
quote = "1"
syn = "2"
@@ -4,12 +4,12 @@
// Linking Exception. For full terms see the included LICENSE file.
#[macro_use]
extern crate proc_macro_error;
extern crate proc_macro_error2;
use std::convert::TryInto;
use proc_macro::TokenStream;
use proc_macro_error::abort;
use proc_macro_error2::abort;
use quote::quote;
use syn::{parse_macro_input, LitStr};