Skip to content

Commit 2b0128d

Browse files
nbdd0121jwnrt
authored andcommitted
Upgrade syn to 2.0
Signed-off-by: Gary Guo <[email protected]>
1 parent 2e3b33e commit 2b0128d

File tree

4 files changed

+10
-98
lines changed

4 files changed

+10
-98
lines changed

Cargo.Bazel.lock

+3-80
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"checksum": "5cd297aee7b1618bc3ab52a21b5c9b7b82726e12ac44889b16336186f873aee3",
2+
"checksum": "86f3866f98596097eea2cee8034bb8ed8fc3f8c3e3835efd418b39d80c52f8c2",
33
"crates": {
44
"aho-corasick 1.0.5": {
55
"name": "aho-corasick",
@@ -79,7 +79,7 @@
7979
"target": "quote"
8080
},
8181
{
82-
"id": "syn 1.0.109",
82+
"id": "syn 2.0.31",
8383
"target": "syn"
8484
}
8585
],
@@ -2471,84 +2471,6 @@
24712471
},
24722472
"license": "MIT"
24732473
},
2474-
"syn 1.0.109": {
2475-
"name": "syn",
2476-
"version": "1.0.109",
2477-
"repository": {
2478-
"Http": {
2479-
"url": "https://crates.io/api/v1/crates/syn/1.0.109/download",
2480-
"sha256": "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
2481-
}
2482-
},
2483-
"targets": [
2484-
{
2485-
"Library": {
2486-
"crate_name": "syn",
2487-
"crate_root": "src/lib.rs",
2488-
"srcs": [
2489-
"**/*.rs"
2490-
]
2491-
}
2492-
},
2493-
{
2494-
"BuildScript": {
2495-
"crate_name": "build_script_build",
2496-
"crate_root": "build.rs",
2497-
"srcs": [
2498-
"**/*.rs"
2499-
]
2500-
}
2501-
}
2502-
],
2503-
"library_target_name": "syn",
2504-
"common_attrs": {
2505-
"compile_data_glob": [
2506-
"**"
2507-
],
2508-
"crate_features": {
2509-
"common": [
2510-
"clone-impls",
2511-
"default",
2512-
"derive",
2513-
"extra-traits",
2514-
"parsing",
2515-
"printing",
2516-
"proc-macro",
2517-
"quote"
2518-
],
2519-
"selects": {}
2520-
},
2521-
"deps": {
2522-
"common": [
2523-
{
2524-
"id": "proc-macro2 1.0.66",
2525-
"target": "proc_macro2"
2526-
},
2527-
{
2528-
"id": "quote 1.0.33",
2529-
"target": "quote"
2530-
},
2531-
{
2532-
"id": "syn 1.0.109",
2533-
"target": "build_script_build"
2534-
},
2535-
{
2536-
"id": "unicode-ident 1.0.11",
2537-
"target": "unicode_ident"
2538-
}
2539-
],
2540-
"selects": {}
2541-
},
2542-
"edition": "2018",
2543-
"version": "1.0.109"
2544-
},
2545-
"build_script_attrs": {
2546-
"data_glob": [
2547-
"**"
2548-
]
2549-
},
2550-
"license": "MIT OR Apache-2.0"
2551-
},
25522474
"syn 2.0.31": {
25532475
"name": "syn",
25542476
"version": "2.0.31",
@@ -2579,6 +2501,7 @@
25792501
"clone-impls",
25802502
"default",
25812503
"derive",
2504+
"extra-traits",
25822505
"full",
25832506
"parsing",
25842507
"printing",

Cargo.lock

+5-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

annotate_derive/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ proc-macro = true
99
[dependencies]
1010
proc-macro2 = "1.0"
1111
quote = "1.0"
12-
syn = {version="1.0", features=["extra-traits"]}
12+
syn = {version="2", features=["extra-traits"]}

annotate_derive/src/attr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub fn get(input: &[Attribute]) -> Result<Attrs> {
3838
};
3939

4040
for attr in input {
41-
if attr.path.is_ident("annotate") {
41+
if attr.path().is_ident("annotate") {
4242
attrs.annotate = Some(attr);
4343
parse_annotate_attribute(&mut attrs, attr)?;
4444
}

0 commit comments

Comments
 (0)