Skip to content

Commit 3365de1

Browse files
authored
fix(i18n-embed-fl): Switch to proc-macro-error2 (#133)
`proc-macro-error` is reported as a security advisory. See https://rustsec.org/advisories/RUSTSEC-2024-0370.html.
1 parent 20b0562 commit 3365de1

File tree

3 files changed

+20
-32
lines changed

3 files changed

+20
-32
lines changed

Cargo.lock

Lines changed: 18 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

i18n-embed-fl/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ i18n-config = { workspace = true }
1919
i18n-embed = { workspace = true, features = ["fluent-system", "filesystem-assets"]}
2020
lazy_static = { workspace = true }
2121
proc-macro2 = { workspace = true }
22-
proc-macro-error = "1.0"
22+
proc-macro-error2 = "2.0.1"
2323
quote = { workspace = true }
2424
strsim = "0.11"
2525
unic-langid = { workspace = true }

i18n-embed-fl/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use fluent::{FluentAttribute, FluentMessage};
22
use fluent_syntax::ast::{CallArguments, Expression, InlineExpression, Pattern, PatternElement};
33
use i18n_embed::{fluent::FluentLanguageLoader, FileSystemAssets, LanguageLoader};
44
use proc_macro::TokenStream;
5-
use proc_macro_error::{abort, emit_error, proc_macro_error};
5+
use proc_macro_error2::{abort, emit_error, proc_macro_error};
66
use quote::quote;
77
use std::{
88
collections::{HashMap, HashSet},

0 commit comments

Comments
 (0)