-
Notifications
You must be signed in to change notification settings - Fork 616
bump rust to 1.80.1 / 2024-08-08 #2487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
e24c93a
4437ec8
833905a
5abdd56
7bb3dc8
9a7f45d
351dfb9
cc71b2a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,6 +159,15 @@ homepage = "https://anza.xyz/" | |
license = "Apache-2.0" | ||
edition = "2021" | ||
|
||
[workspace.lints.rust.unexpected_cfgs] | ||
level = "warn" | ||
check-cfg = [ | ||
'cfg(target_os, values("solana"))', | ||
'cfg(feature, values("frozen-abi", "no-entrypoint"))', | ||
'cfg(RUSTC_WITH_SPECIALIZATION)', | ||
'cfg(RUSTC_WITHOUT_SPECIALIZATION)', | ||
] | ||
|
||
Comment on lines
+162
to
+170
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: this can be a follow up pr, but it seems it's prime time for us to finally move lints from for that, i think this formatting is preferred: [workspace.lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = [
...
] } like this: https://github.com/anza-xyz/agave/pull/2487/files#r1718380391 |
||
[workspace.dependencies] | ||
Inflector = "0.11.4" | ||
agave-transaction-view = { path = "transaction-view", version = "=2.1.0" } | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,3 +111,6 @@ harness = false | |
[[bench]] | ||
name = "bench_lock_accounts" | ||
harness = false | ||
|
||
[lints] | ||
workspace = true |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,6 @@ frozen-abi = [ | |
"dep:solana-frozen-abi-macro", | ||
"solana-sdk/frozen-abi", | ||
] | ||
|
||
[lints] | ||
workspace = true |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,3 +44,6 @@ frozen-abi = [ | |
"dep:solana-frozen-abi", | ||
"solana-vote-program/frozen-abi", | ||
] | ||
|
||
[lints] | ||
workspace = true |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,6 @@ frozen-abi = [ | |
"dep:solana-frozen-abi", | ||
"solana-sdk/frozen-abi", | ||
] | ||
|
||
[lints] | ||
workspace = true |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,3 +53,6 @@ frozen-abi = [ | |
|
||
[[bench]] | ||
name = "cost_tracker" | ||
|
||
[lints] | ||
workspace = true |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,8 @@ edition = { workspace = true } | |
|
||
[package.metadata.docs.rs] | ||
targets = ["x86_64-unknown-linux-gnu"] | ||
|
||
[lints.rust] | ||
unexpected_cfgs = { level = "warn", check-cfg = [ | ||
'cfg(target_feature, values("static-syscalls"))', | ||
] } | ||
Comment on lines
+15
to
+18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. here |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,3 +94,6 @@ path = "src/main.rs" | |
|
||
[package.metadata.docs.rs] | ||
targets = ["x86_64-unknown-linux-gnu"] | ||
|
||
[lints] | ||
workspace = true |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,10 @@ homepage = "https://anza.xyz" | |
license = "Apache-2.0" | ||
edition = "2021" | ||
|
||
[workspace.lints.rust.unexpected_cfgs] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
level = "warn" | ||
check-cfg = ['cfg(target_os, values("solana"))'] | ||
|
||
[workspace.dependencies] | ||
array-bytes = "=1.4.1" | ||
bincode = { version = "1.1.4", default-features = false } | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,6 @@ custom-heap = [] | |
|
||
[lib] | ||
crate-type = ["cdylib"] | ||
|
||
[lints] | ||
workspace = true |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,6 @@ solana-program = { workspace = true } | |
|
||
[lib] | ||
crate-type = ["cdylib"] | ||
|
||
[lints] | ||
workspace = true |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,6 @@ solana-sbf-rust-mem-dep = { workspace = true } | |
|
||
[lib] | ||
crate-type = ["cdylib"] | ||
|
||
[lints] | ||
workspace = true |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,6 @@ custom-panic = [] | |
|
||
[lib] | ||
crate-type = ["cdylib"] | ||
|
||
[lints] | ||
workspace = true |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,6 @@ solana-program = { workspace = true } | |
|
||
[lib] | ||
crate-type = ["cdylib"] | ||
|
||
[lints] | ||
workspace = true |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,6 @@ solana-program = { workspace = true } | |
|
||
[lib] | ||
crate-type = ["cdylib"] | ||
|
||
[lints] | ||
workspace = true |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,3 +48,6 @@ frozen-abi = [ | |
"solana-program-runtime/frozen-abi", | ||
"solana-sdk/frozen-abi", | ||
] | ||
|
||
[lints] | ||
workspace = true |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,3 +132,6 @@ frozen-abi = [ | |
|
||
[[bench]] | ||
name = "prioritization_fee_cache" | ||
|
||
[lints] | ||
workspace = true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[toolchain] | ||
channel = "1.78.0" | ||
channel = "1.80.1" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,14 @@ fi | |
# shellcheck source=ci/rust-version.sh | ||
source "$here/../ci/rust-version.sh" nightly | ||
|
||
# Check llvm path | ||
llvm_profdata="$(find "$(rustc +"$rust_nightly" --print sysroot)" -name llvm-profdata)" | ||
if [ -z "$llvm_profdata" ]; then | ||
echo "Error: couldn't find llvm-profdata. Try installing the llvm-tools component with \`rustup component add llvm-tools-preview --toolchain=$rust_nightly\`" | ||
exit 1 | ||
fi | ||
llvm_path="$(dirname "$llvm_profdata")" | ||
Comment on lines
+31
to
+37
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❤️ |
||
|
||
# get commit hash. it will be used to name output folder | ||
if [ -z "$COMMIT_HASH" ]; then | ||
COMMIT_HASH=$(git rev-parse --short=9 HEAD) | ||
|
@@ -66,6 +74,7 @@ grcov_common_args=( | |
--source-dir "$here/.." | ||
--binary-path "$here/../target/cov/debug" | ||
--llvm | ||
--llvm-path "$llvm_path" | ||
--ignore \*.cargo\* | ||
--ignore \*build.rs | ||
--ignore bench-tps\* | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,3 +119,6 @@ targets = ["x86_64-unknown-linux-gnu"] | |
|
||
[lib] | ||
crate-type = ["cdylib", "rlib"] | ||
|
||
[lints] | ||
workspace = true |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,3 +104,6 @@ frozen-abi = [ | |
"dep:solana-frozen-abi-macro", | ||
"solana-short-vec/frozen-abi", | ||
] | ||
|
||
[lints] | ||
workspace = true |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,6 @@ frozen-abi = [ | |
"dep:solana-frozen-abi-macro", | ||
"solana-sdk/frozen-abi", | ||
] | ||
|
||
[lints] | ||
workspace = true |
Uh oh!
There was an error while loading. Please reload this page.