Skip to content

Commit 6302a5f

Browse files
committed
Update dependencies and upgrade toolchains
1 parent cbdc96b commit 6302a5f

File tree

79 files changed

+7075
-4179
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+7075
-4179
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
[workspace]
2-
members = [
3-
"crate"
4-
]
2+
members = ["crate"]
3+
resolver = "2"

crate/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
anchor-syn = "0.29.0"
8-
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "ac4c2094a6030530661bee3876e0228ddfeb6b8b" }
7+
anchor-syn = "0.30.1"
8+
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "19e305bb57a7595f2a8d81f521c0dd8bf854e739" }
99
if_chain = "1.0"
1010
syn = { version = "1.0.109", features = ["parsing"] }
1111

1212
[dev-dependencies]
1313
assert_cmd = "2.0"
1414
predicates = "3.1"
15-
similar-asserts = "1.5"
16-
tempfile = "3.10"
15+
similar-asserts = "1.6"
16+
tempfile = "3.16"
1717
toml = "0.8"
1818

1919
[package.metadata.rust-analyzer]

crate/diffs/arbitrary_cpi.diff

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ diff -r -x Cargo.lock ./insecure/Cargo.toml ../../../../lints/arbitrary_cpi/ui/i
55
< spl-token = { version = "3.1.1", features = ["no-entrypoint"] }
66
\ No newline at end of file
77
---
8-
> anchor-lang = "0.29.0"
9-
> anchor-spl = "0.29.0"
8+
> anchor-lang = "0.30.1"
9+
> anchor-spl = "0.30.1"
1010
>
1111
> [workspace]
1212
diff -r -x Cargo.lock ./insecure/src/lib.rs ../../../../lints/arbitrary_cpi/ui/insecure/src/lib.rs
@@ -25,8 +25,8 @@ diff -r -x Cargo.lock ./recommended/Cargo.toml ../../../../lints/arbitrary_cpi/u
2525
< spl-token = { version = "3.1.1", features = ["no-entrypoint"] }
2626
\ No newline at end of file
2727
---
28-
> anchor-lang = "0.29.0"
29-
> anchor-spl = "0.29.0"
28+
> anchor-lang = "0.30.1"
29+
> anchor-spl = "0.30.1"
3030
>
3131
> [workspace]
3232
diff -r -x Cargo.lock ./recommended/src/lib.rs ../../../../lints/arbitrary_cpi/ui/recommended/src/lib.rs
@@ -44,8 +44,8 @@ diff -r -x Cargo.lock ./secure/Cargo.toml ../../../../lints/arbitrary_cpi/ui/sec
4444
< anchor-spl = "0.20.1"
4545
< spl-token = { version = "3.1.1", features = ["no-entrypoint"] }
4646
---
47-
> anchor-lang = "0.29.0"
48-
> anchor-spl = "0.29.0"
47+
> anchor-lang = "0.30.1"
48+
> anchor-spl = "0.30.1"
4949
>
5050
> [workspace]
5151
diff -r -x Cargo.lock ./secure/src/lib.rs ../../../../lints/arbitrary_cpi/ui/secure/src/lib.rs

crate/diffs/bump_seed_canonicalization.diff

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ diff -r -x Cargo.lock ./insecure/Cargo.toml ../../../../lints/bump_seed_canonica
22
19c19,21
33
< anchor-lang = "0.20.1"
44
---
5-
> anchor-lang = "0.29.0"
5+
> anchor-lang = "0.30.1"
66
>
77
> [workspace]
88
diff -r -x Cargo.lock ./insecure/src/lib.rs ../../../../lints/bump_seed_canonicalization/ui/insecure/src/lib.rs
@@ -19,7 +19,7 @@ diff -r -x Cargo.lock ./recommended/Cargo.toml ../../../../lints/bump_seed_canon
1919
19c19,21
2020
< anchor-lang = "0.20.1"
2121
---
22-
> anchor-lang = "0.29.0"
22+
> anchor-lang = "0.30.1"
2323
>
2424
> [workspace]
2525
diff -r -x Cargo.lock ./recommended/src/lib.rs ../../../../lints/bump_seed_canonicalization/ui/recommended/src/lib.rs
@@ -33,7 +33,7 @@ diff -r -x Cargo.lock ./secure/Cargo.toml ../../../../lints/bump_seed_canonicali
3333
19c19,21
3434
< anchor-lang = "0.20.1"
3535
---
36-
> anchor-lang = "0.29.0"
36+
> anchor-lang = "0.30.1"
3737
>
3838
> [workspace]
3939
diff -r -x Cargo.lock ./secure/src/lib.rs ../../../../lints/bump_seed_canonicalization/ui/secure/src/lib.rs

crate/diffs/insecure_account_close.diff

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ diff -r -x Cargo.lock ./insecure/Cargo.toml ../../../../lints/insecure_account_c
22
19c19,21
33
< anchor-lang = "0.20.1"
44
---
5-
> anchor-lang = "0.29.0"
5+
> anchor-lang = "0.30.1"
66
>
77
> [workspace]
88
diff -r -x Cargo.lock ./insecure/src/lib.rs ../../../../lints/insecure_account_close/ui/insecure/src/lib.rs
@@ -17,7 +17,7 @@ diff -r -x Cargo.lock ./insecure-still/Cargo.toml ../../../../lints/insecure_acc
1717
19c19,21
1818
< anchor-lang = "0.20.1"
1919
---
20-
> anchor-lang = "0.29.0"
20+
> anchor-lang = "0.30.1"
2121
>
2222
> [workspace]
2323
diff -r -x Cargo.lock ./insecure-still/src/lib.rs ../../../../lints/insecure_account_close/ui/insecure-still/src/lib.rs
@@ -32,12 +32,21 @@ diff -r -x Cargo.lock ./insecure-still-still/Cargo.toml ../../../../lints/insecu
3232
19c19,21
3333
< anchor-lang = "0.20.1"
3434
---
35-
> anchor-lang = "0.29.0"
35+
> anchor-lang = "0.30.1"
3636
>
3737
> [workspace]
3838
diff -r -x Cargo.lock ./insecure-still-still/src/lib.rs ../../../../lints/insecure_account_close/ui/insecure-still-still/src/lib.rs
3939
1a2
4040
> use anchor_lang::solana_program::entrypoint::ProgramResult;
41+
6a8,9
42+
> const CLOSED_ACCOUNT_DISCRIMINATOR: [u8; 8] = [255, 255, 255, 255, 255, 255, 255, 255];
43+
>
44+
28,30c31
45+
< cursor
46+
< .write_all(&anchor_lang::__private::CLOSED_ACCOUNT_DISCRIMINATOR)
47+
< .unwrap();
48+
---
49+
> cursor.write_all(&CLOSED_ACCOUNT_DISCRIMINATOR).unwrap();
4150
45a47,49
4251
>
4352
> #[allow(dead_code)]
@@ -47,7 +56,7 @@ diff -r -x Cargo.lock ./recommended/Cargo.toml ../../../../lints/insecure_accoun
4756
19c19,21
4857
< anchor-lang = "0.20.1"
4958
---
50-
> anchor-lang = "0.29.0"
59+
> anchor-lang = "0.30.1"
5160
>
5261
> [workspace]
5362
diff -r -x Cargo.lock ./recommended/src/lib.rs ../../../../lints/insecure_account_close/ui/recommended/src/lib.rs
@@ -64,13 +73,18 @@ diff -r -x Cargo.lock ./secure/Cargo.toml ../../../../lints/insecure_account_clo
6473
19c19,21
6574
< anchor-lang = "0.20.1"
6675
---
67-
> anchor-lang = "0.29.0"
76+
> anchor-lang = "0.30.1"
6877
>
6978
> [workspace]
7079
diff -r -x Cargo.lock ./secure/src/lib.rs ../../../../lints/insecure_account_close/ui/secure/src/lib.rs
71-
2a3
80+
1d0
81+
< use anchor_lang::__private::CLOSED_ACCOUNT_DISCRIMINATOR;
82+
2a2
7283
> use anchor_lang::solana_program::entrypoint::ProgramResult;
73-
71a73,75
84+
7a8,9
85+
> const CLOSED_ACCOUNT_DISCRIMINATOR: [u8; 8] = [255, 255, 255, 255, 255, 255, 255, 255];
86+
>
87+
71a74,76
7488
>
7589
> #[allow(dead_code)]
7690
> fn main() {}

crate/diffs/missing_owner_check.diff

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ diff -r -x Cargo.lock ./insecure/Cargo.toml ../../../../lints/missing_owner_chec
44
< anchor-spl = "0.20.1"
55
< spl-token = "3.2.0"
66
---
7-
> anchor-lang = "0.29.0"
8-
> anchor-spl = "0.29.0"
7+
> anchor-lang = "0.30.1"
8+
> anchor-spl = "0.30.1"
99
>
1010
> [workspace]
1111
diff -r -x Cargo.lock ./insecure/src/lib.rs ../../../../lints/missing_owner_check/ui/insecure/src/lib.rs
@@ -26,8 +26,8 @@ diff -r -x Cargo.lock ./recommended/Cargo.toml ../../../../lints/missing_owner_c
2626
< anchor-spl = "0.20.1"
2727
< spl-token = "3.2.0"
2828
---
29-
> anchor-lang = "0.29.0"
30-
> anchor-spl = "0.29.0"
29+
> anchor-lang = "0.30.1"
30+
> anchor-spl = "0.30.1"
3131
>
3232
> [workspace]
3333
diff -r -x Cargo.lock ./recommended/src/lib.rs ../../../../lints/missing_owner_check/ui/recommended/src/lib.rs
@@ -44,8 +44,8 @@ diff -r -x Cargo.lock ./secure/Cargo.toml ../../../../lints/missing_owner_check/
4444
< anchor-spl = "0.20.1"
4545
< spl-token = "3.2.0"
4646
---
47-
> anchor-lang = "0.29.0"
48-
> anchor-spl = "0.29.0"
47+
> anchor-lang = "0.30.1"
48+
> anchor-spl = "0.30.1"
4949
>
5050
> [workspace]
5151
diff -r -x Cargo.lock ./secure/src/lib.rs ../../../../lints/missing_owner_check/ui/secure/src/lib.rs

crate/diffs/missing_signer_check.diff

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ diff -r -x Cargo.lock ./insecure/Cargo.toml ../../../../lints/missing_signer_che
22
19c19,21
33
< anchor-lang = "0.20.0"
44
---
5-
> anchor-lang = "0.29.0"
5+
> anchor-lang = "0.30.1"
66
>
77
> [workspace]
88
diff -r -x Cargo.lock ./insecure/src/lib.rs ../../../../lints/missing_signer_check/ui/insecure/src/lib.rs
@@ -20,7 +20,7 @@ diff -r -x Cargo.lock ./recommended/Cargo.toml ../../../../lints/missing_signer_
2020
19c19,21
2121
< anchor-lang = "0.20.0"
2222
---
23-
> anchor-lang = "0.29.0"
23+
> anchor-lang = "0.30.1"
2424
>
2525
> [workspace]
2626
diff -r -x Cargo.lock ./recommended/src/lib.rs ../../../../lints/missing_signer_check/ui/recommended/src/lib.rs
@@ -35,7 +35,7 @@ diff -r -x Cargo.lock ./secure/Cargo.toml ../../../../lints/missing_signer_check
3535
19c19,21
3636
< anchor-lang = "0.20.0"
3737
---
38-
> anchor-lang = "0.29.0"
38+
> anchor-lang = "0.30.1"
3939
>
4040
> [workspace]
4141
diff -r -x Cargo.lock ./secure/src/lib.rs ../../../../lints/missing_signer_check/ui/secure/src/lib.rs

crate/diffs/type_cosplay.diff

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ diff -r -x Cargo.lock ./insecure/Cargo.toml ../../../../lints/type_cosplay/ui/in
22
19c19,21
33
< anchor-lang = "0.20.1"
44
---
5-
> anchor-lang = "0.29.0"
5+
> anchor-lang = "0.30.1"
66
>
77
> [workspace]
88
diff -r -x Cargo.lock ./insecure/src/lib.rs ../../../../lints/type_cosplay/ui/insecure/src/lib.rs
@@ -20,7 +20,7 @@ diff -r -x Cargo.lock ./recommended/Cargo.toml ../../../../lints/type_cosplay/ui
2020
19c19,21
2121
< anchor-lang = "0.20.1"
2222
---
23-
> anchor-lang = "0.29.0"
23+
> anchor-lang = "0.30.1"
2424
>
2525
> [workspace]
2626
diff -r -x Cargo.lock ./recommended/src/lib.rs ../../../../lints/type_cosplay/ui/recommended/src/lib.rs
@@ -36,7 +36,7 @@ diff -r -x Cargo.lock ./secure/Cargo.toml ../../../../lints/type_cosplay/ui/secu
3636
19c19,21
3737
< anchor-lang = "0.20.1"
3838
---
39-
> anchor-lang = "0.29.0"
39+
> anchor-lang = "0.30.1"
4040
>
4141
> [workspace]
4242
diff -r -x Cargo.lock ./secure/src/lib.rs ../../../../lints/type_cosplay/ui/secure/src/lib.rs

crate/src/paths.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ pub const BORSH_TRY_FROM_SLICE: [&str; 4] = ["borsh", "de", "BorshDeserialize",
3131
pub const CORE_BRANCH: [&str; 5] = ["core", "ops", "try_trait", "Try", "branch"];
3232
pub const CORE_CLONE: [&str; 4] = ["core", "clone", "Clone", "clone"];
3333

34+
pub const SOLANA_ACCOUNT_INFO: [&str; 2] = ["solana_account_info", "AccountInfo"];
35+
3436
pub const SOLANA_PROGRAM_ACCOUNT_INFO: [&str; 3] =
3537
["solana_program", "account_info", "AccountInfo"];
3638
pub const SOLANA_PROGRAM_INVOKE: [&str; 3] = ["solana_program", "program", "invoke"];

0 commit comments

Comments
 (0)