Skip to content

Commit

Permalink
Update syn to 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Apr 14, 2023
1 parent 5fcb6c1 commit 2318d5a
Show file tree
Hide file tree
Showing 17 changed files with 349 additions and 192 deletions.
34 changes: 23 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 36 additions & 13 deletions ffi/gn/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

75 changes: 66 additions & 9 deletions ffi/gn/icu4x/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ rust_proc_macro("icu_provider_macros-v1_2_0") {
deps = []
deps += [ ":proc-macro2-v1_0_56" ]
deps += [ ":quote-v1_0_26" ]
deps += [ ":syn-v1_0_109" ]
deps += [ ":syn-v2_0_15" ]

rustenv = []

Expand Down Expand Up @@ -1088,7 +1088,7 @@ rust_library("strck_ident-v0_1_2") {

rust_library("syn-v1_0_109") {
crate_name = "syn"
crate_root = "//ffi/gn/vendor/syn/src/lib.rs"
crate_root = "//ffi/gn/vendor/syn-1.0.109/src/lib.rs"
output_name = "syn-1f55ec6ab1286b6d"

deps = []
Expand All @@ -1107,7 +1107,6 @@ rust_library("syn-v1_0_109") {
"--cfg=feature=\"default\"",
"--cfg=feature=\"derive\"",
"--cfg=feature=\"extra-traits\"",
"--cfg=feature=\"fold\"",
"--cfg=feature=\"full\"",
"--cfg=feature=\"parsing\"",
"--cfg=feature=\"printing\"",
Expand All @@ -1120,9 +1119,42 @@ rust_library("syn-v1_0_109") {
visibility = [ ":*" ]
}

rust_library("syn-v2_0_15") {
crate_name = "syn"
crate_root = "//ffi/gn/vendor/syn/src/lib.rs"
output_name = "syn-81efed302294e4e7"

deps = []
deps += [ ":proc-macro2-v1_0_56" ]
deps += [ ":quote-v1_0_26" ]
deps += [ ":unicode-ident-v1_0_8" ]

rustenv = []

rustflags = [
"--cap-lints=allow",
"--edition=2021",
"-Cmetadata=81efed302294e4e7",
"-Cextra-filename=-81efed302294e4e7",
"--cfg=feature=\"clone-impls\"",
"--cfg=feature=\"default\"",
"--cfg=feature=\"derive\"",
"--cfg=feature=\"extra-traits\"",
"--cfg=feature=\"fold\"",
"--cfg=feature=\"full\"",
"--cfg=feature=\"parsing\"",
"--cfg=feature=\"printing\"",
"--cfg=feature=\"proc-macro\"",
"--cfg=feature=\"quote\"",
"--cfg=feature=\"visit\"",
]

visibility = [ ":*" ]
}

rust_library("synstructure-v0_12_6") {
crate_name = "synstructure"
crate_root = "//ffi/gn/vendor/synstructure/src/lib.rs"
crate_root = "//ffi/gn/vendor/synstructure-0.12.6/src/lib.rs"
output_name = "synstructure-b30be16cba2970c4"

deps = []
Expand All @@ -1145,6 +1177,31 @@ rust_library("synstructure-v0_12_6") {
visibility = [ ":*" ]
}

rust_library("synstructure-v0_13_0") {
crate_name = "synstructure"
crate_root = "//ffi/gn/vendor/synstructure/src/lib.rs"
output_name = "synstructure-d99d51d75122a755"

deps = []
deps += [ ":proc-macro2-v1_0_56" ]
deps += [ ":quote-v1_0_26" ]
deps += [ ":syn-v2_0_15" ]
deps += [ ":unicode-xid-v0_2_4" ]

rustenv = []

rustflags = [
"--cap-lints=allow",
"--edition=2018",
"-Cmetadata=d99d51d75122a755",
"-Cextra-filename=-d99d51d75122a755",
"--cfg=feature=\"default\"",
"--cfg=feature=\"proc-macro\"",
]

visibility = [ ":*" ]
}

rust_library("tinystr-v0_7_1") {
crate_name = "tinystr"
crate_root = "//utils/tinystr/src/lib.rs"
Expand Down Expand Up @@ -1339,8 +1396,8 @@ rust_proc_macro("yoke-derive-v0_7_1") {
deps = []
deps += [ ":proc-macro2-v1_0_56" ]
deps += [ ":quote-v1_0_26" ]
deps += [ ":syn-v1_0_109" ]
deps += [ ":synstructure-v0_12_6" ]
deps += [ ":syn-v2_0_15" ]
deps += [ ":synstructure-v0_13_0" ]

rustenv = []

Expand Down Expand Up @@ -1385,8 +1442,8 @@ rust_proc_macro("zerofrom-derive-v0_1_2") {
deps = []
deps += [ ":proc-macro2-v1_0_56" ]
deps += [ ":quote-v1_0_26" ]
deps += [ ":syn-v1_0_109" ]
deps += [ ":synstructure-v0_12_6" ]
deps += [ ":syn-v2_0_15" ]
deps += [ ":synstructure-v0_13_0" ]

rustenv = []

Expand Down Expand Up @@ -1432,7 +1489,7 @@ rust_proc_macro("zerovec-derive-v0_9_4") {
deps = []
deps += [ ":proc-macro2-v1_0_56" ]
deps += [ ":quote-v1_0_26" ]
deps += [ ":syn-v1_0_109" ]
deps += [ ":syn-v2_0_15" ]
deps += [ ":synstructure-v0_12_6" ]

rustenv = []
Expand Down
2 changes: 1 addition & 1 deletion provider/datagen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ rust-format = { version = "0.3.4", features = ["token_stream"] }
serde = { version = "1.0", default-features = false, features = ["derive", "alloc"] }
serde_json = { version = "1.0", default-features = false, features = ["alloc"] }
serde-aux = { version = "4.1.2", default-features = false }
syn = {version = "1.0", features = ["parsing"] }
syn = {version = "2", features = ["parsing"] }
tinystr = { version = "0.7.1", path = "../../utils/tinystr", features = ["alloc", "serde", "zerovec"], default-features = false }
toml = "0.5"
writeable = { version = "0.5.1", path = "../../utils/writeable" }
Expand Down
2 changes: 1 addition & 1 deletion provider/macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ proc-macro = true
[dependencies]
proc-macro2 = "1.0.27"
quote = "1.0.9"
syn = { version = "1.0.73", features = ["full"]}
syn = { version = "2", features = ["full", "parsing"]}

[dev-dependencies]
icu_provider = { path = "../core", features = ["macros"] }
Expand Down
Loading

0 comments on commit 2318d5a

Please sign in to comment.