Skip to content

Commit

Permalink
Fix use of unmaintaned crate proc-macro-error, by replacing it with t…
Browse files Browse the repository at this point in the history
…he maintained proc-macro-error2 crate (#627)

# Objective

The Avian macro crate uses `proc-macro-error`, which is [unmaintained](https://rustsec.org/advisories/RUSTSEC-2024-0370), this also leads to an outdated version of `syn` in the dependency tree.

## Solution

Replace `proc-macro-error` with `proc-macro-error2`.
  • Loading branch information
PhantomMorrigan authored Jan 13, 2025
1 parent 6a65e8f commit 4d94a9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/avian_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ bench = false

[dependencies]
proc-macro2 = "1.0.78"
proc-macro-error = "1.0"
proc-macro-error2 = "2.0"
quote = "1.0"
syn = "2.0"
2 changes: 1 addition & 1 deletion crates/avian_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use proc_macro::TokenStream;

use proc_macro_error::{abort, emit_error, proc_macro_error};
use proc_macro_error2::{abort, emit_error, proc_macro_error};
use quote::quote;
use syn::{parse_macro_input, spanned::Spanned, Data, DeriveInput};

Expand Down

0 comments on commit 4d94a9b

Please # to comment.