Skip to content

Commit 7463f7b

Browse files
authored
Merge pull request #24 from m-nawa/change/proc-macro-error/to/proc-macro-error2
Change `proc-macro-error` to `proc-macro-error2` to fix https://rustsec.org/advisories/RUSTSEC-2024-0370
2 parents 456b684 + af414fc commit 7463f7b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

macros/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ license = "MIT OR Apache-2.0"
1010
proc-macro = true
1111

1212
[dependencies]
13-
proc-macro-error = "1.0.4"
13+
proc-macro-error2 = "2.0.1"
1414
proc-macro2 = "1.0.92"
1515
sqlx-conditional-queries-core = { path = "../core", version = "0.3" }
1616

macros/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![doc = include_str!("../README.md")]
22

3-
use proc_macro_error::abort;
3+
use proc_macro_error2::abort;
44
use sqlx_conditional_queries_core::{AnalyzeError, DatabaseType, Error, ExpandError};
55

66
const DATABASE_TYPE: DatabaseType = if cfg!(feature = "postgres") {
@@ -14,7 +14,7 @@ const DATABASE_TYPE: DatabaseType = if cfg!(feature = "postgres") {
1414
};
1515

1616
// The public docs for this macro live in the sql-conditional-queries crate.
17-
#[proc_macro_error::proc_macro_error]
17+
#[proc_macro_error2::proc_macro_error]
1818
#[proc_macro]
1919
pub fn conditional_query_as(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
2020
let input: proc_macro2::TokenStream = input.into();

0 commit comments

Comments
 (0)