Skip to content

Commit 3fb2652

Browse files
yihauray-kast
authored andcommitted
bump rust to 1.80.1 / 2024-08-08 (anza-xyz#2487)
* bump rust to 1.80 * bump nightly version to 2024-07-21 * bump rust stable to 1.80.1, nightly to 2024-08-08 * clippy: macro_metavars_in_unsafe * fix unexpected tag * run anchor downstream test with their master * add no-entrypoint into workspace level lint * use correct llvm path for coverage test
1 parent 472fda2 commit 3fb2652

47 files changed

Lines changed: 155 additions & 5 deletions

File tree

Some content is hidden

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

.github/workflows/downstream-project-anchor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
runs-on: ubuntu-latest
4242
strategy:
4343
matrix:
44-
version: ["v0.29.0", "v0.30.0"]
44+
version: ["master"]
4545
steps:
4646
- uses: actions/checkout@v4
4747

Cargo.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,15 @@ homepage = "https://anza.xyz/"
159159
license = "Apache-2.0"
160160
edition = "2021"
161161

162+
[workspace.lints.rust.unexpected_cfgs]
163+
level = "warn"
164+
check-cfg = [
165+
'cfg(target_os, values("solana"))',
166+
'cfg(feature, values("frozen-abi", "no-entrypoint"))',
167+
'cfg(RUSTC_WITH_SPECIALIZATION)',
168+
'cfg(RUSTC_WITHOUT_SPECIALIZATION)',
169+
]
170+
162171
[workspace.dependencies]
163172
Inflector = "0.11.4"
164173
agave-transaction-view = { path = "transaction-view", version = "=2.1.0" }

account-decoder/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ spl-pod = { workspace = true }
3434

3535
[package.metadata.docs.rs]
3636
targets = ["x86_64-unknown-linux-gnu"]
37+
38+
[lints]
39+
workspace = true

accounts-db/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,6 @@ harness = false
111111
[[bench]]
112112
name = "bench_lock_accounts"
113113
harness = false
114+
115+
[lints]
116+
workspace = true

bloom/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@ frozen-abi = [
4141
"dep:solana-frozen-abi-macro",
4242
"solana-sdk/frozen-abi",
4343
]
44+
45+
[lints]
46+
workspace = true

builtins-default-costs/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@ frozen-abi = [
4444
"dep:solana-frozen-abi",
4545
"solana-vote-program/frozen-abi",
4646
]
47+
48+
[lints]
49+
workspace = true

ci/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ RUN \
7070
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs/ | sh -s -- --no-modify-path --profile minimal --default-toolchain $RUST_VERSION -y && \
7171
rustup component add rustfmt && \
7272
rustup component add clippy && \
73-
rustup component add llvm-tools-preview && \
7473
rustup install $RUST_NIGHTLY_VERSION && \
7574
rustup component add clippy --toolchain=$RUST_NIGHTLY_VERSION && \
7675
rustup component add rustfmt --toolchain=$RUST_NIGHTLY_VERSION && \
7776
rustup component add miri --toolchain=$RUST_NIGHTLY_VERSION && \
77+
rustup component add llvm-tools-preview --toolchain=$RUST_NIGHTLY_VERSION && \
7878
rustup target add wasm32-unknown-unknown && \
7979
cargo install cargo-audit && \
8080
cargo install cargo-hack && \

ci/rust-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fi
2929
if [[ -n $RUST_NIGHTLY_VERSION ]]; then
3030
nightly_version="$RUST_NIGHTLY_VERSION"
3131
else
32-
nightly_version=2024-05-02
32+
nightly_version=2024-08-08
3333
fi
3434

3535

compute-budget/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ frozen-abi = [
2222
"dep:solana-frozen-abi",
2323
"solana-sdk/frozen-abi",
2424
]
25+
26+
[lints]
27+
workspace = true

core/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,6 @@ name = "sigverify_stage"
153153

154154
[package.metadata.docs.rs]
155155
targets = ["x86_64-unknown-linux-gnu"]
156+
157+
[lints]
158+
workspace = true

0 commit comments

Comments
 (0)