Bug 1840022 - Switch phf_macros to syn 2. r=emilio,supply-chain-reviewers,nika

Differential Revision: https://phabricator.services.mozilla.com/D181855
This commit is contained in:
Mike Hommey 2023-06-24 20:18:24 +00:00
parent 09e321a9db
commit 16cada87f1
4 changed files with 9 additions and 4 deletions

4
Cargo.lock generated
View File

@ -4047,15 +4047,13 @@ dependencies = [
[[package]]
name = "phf_macros"
version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "58fdf3184dd560f160dd73922bea2d5cd6e8f064bf4b13110abd81b03697b4e0"
dependencies = [
"phf_generator",
"phf_shared",
"proc-macro-hack",
"proc-macro2",
"quote",
"syn 1.0.107",
"syn 2.0.18",
]
[[package]]

View File

@ -165,6 +165,9 @@ rure = { path = "third_party/rust/rure" }
# num-derive 0.3.3 + https://github.com/rust-num/num-derive/pull/54
num-derive = { path = "third_party/rust/num-derive" }
# phf_macros 0.10.0 + https://github.com/rust-phf/rust-phf/pull/284
phf_macros = { path = "third_party/rust/phf_macros" }
# Other overrides
chardetng = { git = "https://github.com/hsivonen/chardetng", rev="3484d3e3ebdc8931493aa5df4d7ee9360a90e76b" }
chardetng_c = { git = "https://github.com/hsivonen/chardetng_c", rev="ed8a4c6f900a90d4dbc1d64b856e61490a1c3570" }

View File

@ -144,6 +144,10 @@ audit-as-crates-io = false
[policy.peek-poke-derive]
audit-as-crates-io = false
[policy.phf_macros]
audit-as-crates-io = true
notes = "Local fork with a patch from https://github.com/rust-phf/rust-phf/pull/284"
[policy.pulse]
audit-as-crates-io = false
notes = "This is a first-party crate which is entirely unrelated to the crates.io package of the same name."

View File

@ -39,7 +39,7 @@ version = "1"
version = "1"
[dependencies.syn]
version = "1"
version = "2"
features = ["full"]
[dependencies.unicase_]