diff --git a/Cargo.lock b/Cargo.lock index 4b540792..3c5f3bcb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -452,6 +452,26 @@ dependencies = [ "serde", ] +[[package]] +name = "bincode" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ad1fa75f77bbd06f187540aa1d70ca50b80b27ce85e7f41c0ce7ff42b34ed3b" +dependencies = [ + "bincode_derive", + "serde", + "unty", +] + +[[package]] +name = "bincode_derive" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1cef5dd4a4457dd11529e743d18ba4fabbd5f20b6895f4c865cb257337dcf9f" +dependencies = [ + "virtue", +] + [[package]] name = "bit-set" version = "0.8.0" @@ -3815,7 +3835,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0f949fe4edaeaea78c844023bfc1c898e0b1f5a100f8a8d2d0f85d0a7b090258" dependencies = [ - "bincode", + "bincode 1.3.3", "serde", "serde_bytes", "serde_derive", @@ -3835,7 +3855,7 @@ checksum = "8db59bff0a5d42bd756cfe5ad08d720d4e4259794e5f4ee8eb7422610dd56d2b" dependencies = [ "Inflector", "base64 0.22.1", - "bincode", + "bincode 1.3.3", "bs58", "bv", "lazy_static", @@ -3888,7 +3908,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e0c17d606a298a205fae325489fbed88ee6dc4463c111672172327e741c8905d" dependencies = [ - "bincode", + "bincode 1.3.3", "serde", "solana-program-error", "solana-program-memory", @@ -3902,7 +3922,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b7c93e9f9184f8c785da2136e84adb4123e45297890ec1d39baa2f693bc83c3" dependencies = [ "ahash", - "bincode", + "bincode 1.3.3", "blake3", "bv", "bytemuck", @@ -3950,7 +3970,7 @@ version = "2.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d1673f67efe870b64a65cb39e6194be5b26527691ce5922909939961a6e6b395" dependencies = [ - "bincode", + "bincode 1.3.3", "bytemuck", "serde", "serde_derive", @@ -3967,7 +3987,7 @@ version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bffd21cefb44a61a051f5f36bdb8863b619754e057099506a73cabd8716b10d4" dependencies = [ - "bincode", + "bincode 1.3.3", "bytemuck", "log", "num-derive", @@ -4030,7 +4050,7 @@ version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5f3a1c619d54d4a8c30802b4ac6f572a293914e592f2c3e904be3cdacbb22333" dependencies = [ - "bincode", + "bincode 1.3.3", "crossbeam-channel", "futures", "solana-banks-interface", @@ -4063,7 +4083,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "19a3787b8cf9c9fe3dd360800e8b70982b9e5a8af9e11c354b6665dd4a003adc" dependencies = [ - "bincode", + "bincode 1.3.3", "serde", "solana-instruction", ] @@ -4111,7 +4131,7 @@ version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f452bd2217eb46f24a828c7408c9e4fef2cc1767656560ca26006e20febf4068" dependencies = [ - "bincode", + "bincode 1.3.3", "libsecp256k1", "qualifier_attr", "scopeguard", @@ -4314,7 +4334,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5c77e1bdc6d727070a3ddfb571cfaf4a8e46a4d81049fd8510c7fe12a40b4768" dependencies = [ "async-trait", - "bincode", + "bincode 1.3.3", "dashmap", "futures", "futures-util", @@ -4468,7 +4488,7 @@ version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e0f6a00ecb0eb3e4c68186a26216deb6c2376929f235fc9f3fd59e5745df937a" dependencies = [ - "bincode", + "bincode 1.3.3", "chrono", "serde", "serde_derive", @@ -4493,7 +4513,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fcdc19eff90b17e022a5642b7ab0d3fe5c8dc251cb9d2b032dc73bd25fa4171e" dependencies = [ "async-trait", - "bincode", + "bincode 1.3.3", "crossbeam-channel", "futures-util", "indexmap", @@ -4683,7 +4703,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0f9c7fbf3e58b64a667c5f35e90af580538a95daea7001ff7806c0662d301bdf" dependencies = [ - "bincode", + "bincode 1.3.3", "serde", "serde_derive", "solana-account", @@ -4750,7 +4770,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "968dabd2b92d57131473eddbd475339da530e14f54397386abf303de3a2595a2" dependencies = [ - "bincode", + "bincode 1.3.3", "chrono", "memmap2", "serde", @@ -4829,7 +4849,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ce496a475e5062ba5de97215ab39d9c358f9c9df4bb7f3a45a1f1a8bd9065ed" dependencies = [ - "bincode", + "bincode 1.3.3", "borsh 1.5.5", "getrandom 0.2.15", "js-sys", @@ -5016,7 +5036,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "268486ba8a294ed22a4d7c1ec05f540c3dbe71cfa7c6c54b6d4d13668d895678" dependencies = [ - "bincode", + "bincode 1.3.3", "blake3", "lazy_static", "serde", @@ -5073,7 +5093,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "797b3c3534d999e868e5859392976619653b3bc679e7e729019b462c775bb498" dependencies = [ "anyhow", - "bincode", + "bincode 1.3.3", "bytes", "crossbeam-channel", "itertools 0.12.1", @@ -5142,7 +5162,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "004f2d2daf407b3ec1a1ca5ec34b3ccdfd6866dd2d3c7d0715004a96e4b6d127" dependencies = [ - "bincode", + "bincode 1.3.3", "bitflags 2.8.0", "cfg_eval", "serde", @@ -5157,7 +5177,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "682214ffa84ad08fe3a3a013fc0a487596b007027777fa7d7f865d8dcd3d808c" dependencies = [ "ahash", - "bincode", + "bincode 1.3.3", "bv", "caps", "curve25519-dalek 4.1.3", @@ -5248,7 +5268,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "586469467e93ceb79048f8d8e3a619bf61d05396ee7de95cb40280301a589d05" dependencies = [ - "bincode", + "bincode 1.3.3", "blake3", "borsh 0.10.4", "borsh 1.5.5", @@ -5382,7 +5402,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ef8ce68ce0f2777490a7ca3662d1c793e1dd5a400c9772514025185838fc5162" dependencies = [ "base64 0.22.1", - "bincode", + "bincode 1.3.3", "enum-iterator", "itertools 0.12.1", "log", @@ -5425,7 +5445,7 @@ dependencies = [ "assert_matches", "async-trait", "base64 0.22.1", - "bincode", + "bincode 1.3.3", "chrono-humanize", "crossbeam-channel", "log", @@ -5651,7 +5671,7 @@ checksum = "039ad5152d72bd530ecc98dc55fa36d7e16ce92b2faf58befc07d51da1b72cdb" dependencies = [ "async-trait", "base64 0.22.1", - "bincode", + "bincode 1.3.3", "bs58", "indicatif", "log", @@ -5739,7 +5759,7 @@ dependencies = [ "aquamarine", "arrayref", "base64 0.22.1", - "bincode", + "bincode 1.3.3", "blake3", "bv", "bytemuck", @@ -5865,7 +5885,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4808e8d7f3c931657e615042d4176b423e66f64dc99e3dc3c735a197e512029b" dependencies = [ - "bincode", + "bincode 1.3.3", "bs58", "getrandom 0.1.16", "js-sys", @@ -5957,7 +5977,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a0a1caa972414cc78122c32bdae65ac5fe89df7db598585a5cde19d16a20280a" dependencies = [ - "bincode", + "bincode 1.3.3", "digest 0.10.7", "libsecp256k1", "serde", @@ -6189,7 +6209,7 @@ version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7045076ed29255f228dede3a2554755449a610e42f3694afadb59e3424920858" dependencies = [ - "bincode", + "bincode 1.3.3", "log", "solana-account", "solana-bincode", @@ -6349,7 +6369,7 @@ version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ef4c7851977d6fc24c5d734b836c5c1d5c0f40d07d835c1bcc76021e325492c5" dependencies = [ - "bincode", + "bincode 1.3.3", "log", "serde", "serde_derive", @@ -6391,7 +6411,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bf6b44740d7f0c9f375d045c165bc0aab4a90658f92d6835aeb0649afaeaff9a" dependencies = [ "base64 0.22.1", - "bincode", + "bincode 1.3.3", "bytemuck", "bytemuck_derive", "lazy_static", @@ -6437,7 +6457,7 @@ version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f6c6b2376c3e0a6ae5538d86818e403841b8b11861c6b39a943221c6c2164eea" dependencies = [ - "bincode", + "bincode 1.3.3", "log", "rayon", "solana-account", @@ -6497,7 +6517,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1045fd558ad215e8d2f2a0e87154444ea0dc8821a80f088dcdcf4831a510879a" dependencies = [ "async-trait", - "bincode", + "bincode 1.3.3", "futures-util", "indexmap", "indicatif", @@ -6530,7 +6550,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "753b3e9afed170e4cfc0ea1e87b5dfdc6d4a50270869414edd24c6ea1f529b29" dependencies = [ - "bincode", + "bincode 1.3.3", "serde", "serde_derive", "solana-bincode", @@ -6558,7 +6578,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5022de04cbba05377f68bf848c8c1322ead733f88a657bf792bb40f3257b8218" dependencies = [ - "bincode", + "bincode 1.3.3", "serde", "serde_derive", "solana-account", @@ -6587,7 +6607,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a7d97bffaf9515adbf3b1a04efbc9dbc815d635da684f358357e76abdbe2a4e5" dependencies = [ "base64 0.22.1", - "bincode", + "bincode 1.3.3", "lazy_static", "log", "rand 0.8.5", @@ -6605,7 +6625,7 @@ checksum = "0ddcf3ac1d17457a5e07145ba18aaf275f62b7c471d56febe1a2c2f3049a7913" dependencies = [ "Inflector", "base64 0.22.1", - "bincode", + "bincode 1.3.3", "borsh 1.5.5", "bs58", "lazy_static", @@ -6645,7 +6665,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6d348cd4cd79cab56e58590a301aef5b5247ba503f94f97900db3a0f8f7ff94" dependencies = [ "base64 0.22.1", - "bincode", + "bincode 1.3.3", "bs58", "serde", "serde_derive", @@ -6751,7 +6771,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d4507bb9d071fb81cfcf676f12fba3db4098f764524ef0b5567d671a81d41f3e" dependencies = [ - "bincode", + "bincode 1.3.3", "num-derive", "num-traits", "serde", @@ -6775,7 +6795,7 @@ version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4862f099c25d20857d270a2423ed4e0dd11038ad2f7f25905ff72c33c5132828" dependencies = [ - "bincode", + "bincode 1.3.3", "log", "num-derive", "num-traits", @@ -6827,7 +6847,7 @@ checksum = "26f66acae4f01a718825ae0201ea0a05ae3c9a3afb27a7eed6f0803b96da639b" dependencies = [ "aes-gcm-siv", "base64 0.22.1", - "bincode", + "bincode 1.3.3", "bytemuck", "bytemuck_derive", "curve25519-dalek 4.1.3", @@ -6881,7 +6901,7 @@ checksum = "77367202d84b62d224289ff7174ddecd737626108e5a3278deb1c3b38d050084" dependencies = [ "aes-gcm-siv", "base64 0.22.1", - "bincode", + "bincode 1.3.3", "bytemuck", "bytemuck_derive", "curve25519-dalek 4.1.3", @@ -7064,7 +7084,7 @@ version = "2.0.1" dependencies = [ "arrayref", "assert_matches", - "bincode", + "bincode 2.0.0", "borsh 1.5.5", "bytemuck", "num-derive", @@ -7089,7 +7109,7 @@ dependencies = [ name = "spl-stake-pool-cli" version = "2.0.1" dependencies = [ - "bincode", + "bincode 2.0.0", "borsh 1.5.5", "bs58", "clap", @@ -7761,7 +7781,7 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "911a61637386b789af998ee23f50aa30d5fd7edcec8d6d3dedae5e5815205466" dependencies = [ - "bincode", + "bincode 1.3.3", "bytes", "educe", "futures-core", @@ -8023,6 +8043,12 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" +[[package]] +name = "unty" +version = "0.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1a88342087869553c259588a3ec9ca73ce9b2d538b7051ba5789ff236b6c129" + [[package]] name = "uriparse" version = "0.6.4" @@ -8086,6 +8112,12 @@ version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" +[[package]] +name = "virtue" +version = "0.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "051eb1abcf10076295e815102942cc58f9d5e3b4560e46e53c21e8ff6f3af7b1" + [[package]] name = "void" version = "1.0.2" diff --git a/clients/cli/Cargo.toml b/clients/cli/Cargo.toml index 06837106..5acf068b 100644 --- a/clients/cli/Cargo.toml +++ b/clients/cli/Cargo.toml @@ -34,7 +34,7 @@ spl-token = { version = "=7.0", features = [ "no-entrypoint", ] } bs58 = "0.5.1" -bincode = "1.3.1" +bincode = "2.0.0" [[bin]] name = "spl-stake-pool" diff --git a/program/Cargo.toml b/program/Cargo.toml index ebe15922..42b6e94d 100644 --- a/program/Cargo.toml +++ b/program/Cargo.toml @@ -29,7 +29,7 @@ spl-token-2022 = { version = "7.0.0", features = [ "no-entrypoint", ] } thiserror = "2.0" -bincode = "1.3.1" +bincode = "2.0.0" [dev-dependencies] assert_matches = "1.5.0"