Merge pull request #301355 from u2d3rsc0re/update-solana-cli

solana-cli: 1.16.27 → 1.17.28
This commit is contained in:
Yt 2024-04-03 23:49:23 +00:00 committed by GitHub
commit fa1aeafea5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1384 additions and 1173 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,12 +0,0 @@
diff --git a/sdk/program/src/account_info.rs b/sdk/program/src/account_info.rs
index 372370d0e15a0f2877b02ad29586e5b352438b24..3db3e9839b6535786e60be5602c03d0c909bf937 100644
--- a/sdk/program/src/account_info.rs
+++ b/sdk/program/src/account_info.rs
@@ -182,6 +182,7 @@ impl<'a> AccountInfo<'a> {
Ok(())
}
+ #[rustversion::attr(since(1.72), allow(invalid_reference_casting))]
pub fn assign(&self, new_owner: &Pubkey) {
// Set the non-mut owner field
unsafe {

View File

@ -22,6 +22,7 @@
"solana-log-analyzer"
"solana-net-shaper"
"solana-validator"
"solana-test-validator"
] ++ [
# XXX: Ensure `solana-genesis` is built LAST!
# See https://github.com/solana-labs/solana/issues/5826
@ -29,8 +30,8 @@
]
}:
let
version = "1.16.27";
sha256 = "sha256-xd0FCSlpPJDVWOlt9rIlnSbjksmvlXJWHkvlZONd2dM=";
version = "1.17.28";
sha256 = "y79zsUfYsX377ofsFSg9a2il99uJsA+qdCu3J+EU5nQ=";
inherit (darwin.apple_sdk_11_0) Libsystem;
inherit (darwin.apple_sdk_11_0.frameworks) System IOKit AppKit Security;
@ -51,16 +52,10 @@ rustPlatform.buildRustPackage rec {
outputHashes = {
"crossbeam-epoch-0.9.5" = "sha256-Jf0RarsgJiXiZ+ddy0vp4jQ59J9m0k3sgXhWhCdhgws=";
"ntapi-0.3.7" = "sha256-G6ZCsa3GWiI/FeGKiK9TWkmTxen7nwpXvm5FtjNtjWU=";
"tokio-1.29.1" = "sha256-Z/kewMCqkPVTXdoBcSaFKG5GSQAdkdpj3mAzLLCjjGk=";
};
};
patches = [
# Fix: https://github.com/solana-labs/solana/issues/34203
# From https://github.com/Homebrew/homebrew-core/pull/156930/files#diff-f27c55b86df31cd4935c956efee1be743eae0958e3850f3f9891d51bfea50b1cR76
./account-info.patch
];
strictDeps = true;
cargoBuildFlags = builtins.map (n: "--bin=${n}") solanaPkgs;