diff --git a/Cargo.lock b/Cargo.lock index 43fc42e..2a80386 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -620,6 +620,26 @@ dependencies = [ "serde", ] +[[package]] +name = "bincode" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36eaf5d7b090263e8150820482d5d93cd964a81e4019913c972f4edcc6edb740" +dependencies = [ + "bincode_derive", + "serde", + "unty", +] + +[[package]] +name = "bincode_derive" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf95709a440f45e986983918d0e8a1f30a9b1df04918fc828670606804ac3c09" +dependencies = [ + "virtue", +] + [[package]] name = "bindgen" version = "0.69.5" @@ -5025,7 +5045,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", @@ -5045,7 +5065,7 @@ checksum = "c472eebf9ec7ee72c8d25e990a2eaf6b0b783619ef84d7954c408d6442ad5e57" dependencies = [ "Inflector", "base64 0.22.1", - "bincode", + "bincode 1.3.3", "bs58", "bv", "lazy_static", @@ -5098,7 +5118,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", @@ -5112,7 +5132,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d65a1a23a53cae19cb92bab2cbdd9e289e5210bb12175ce27642c94adf74b220" dependencies = [ "ahash 0.8.11", - "bincode", + "bincode 1.3.3", "blake3", "bv", "bytemuck", @@ -5160,7 +5180,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", @@ -5177,7 +5197,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c758a82a60e5fcc93b3ee00615b0e244295aa8b2308475ea2b48f4900862a2e0" dependencies = [ - "bincode", + "bincode 1.3.3", "bytemuck", "log", "num-derive", @@ -5240,7 +5260,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ea32797f631ff60b3eb3c793b0fddd104f5ffdf534bf6efcc59fbe30cd23b15" dependencies = [ - "bincode", + "bincode 1.3.3", "crossbeam-channel", "futures 0.3.31", "solana-banks-interface", @@ -5273,7 +5293,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", ] @@ -5337,7 +5357,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0cbc2581d0f39cd7698e46baa06fc5e8928b323a85ed3a4fdbdfe0d7ea9fc152" dependencies = [ - "bincode", + "bincode 1.3.3", "libsecp256k1", "qualifier_attr", "scopeguard", @@ -5571,7 +5591,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e25b7073890561a6b7875a921572fc4a9a2c78b3e60fb8e0a7ee4911961f8bd" dependencies = [ "async-trait", - "bincode", + "bincode 1.3.3", "dashmap", "futures 0.3.31", "futures-util", @@ -5725,7 +5745,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ab5647203179631940e0659a635e5d3f514ba60f6457251f8f8fbf3830e56b0" dependencies = [ - "bincode", + "bincode 1.3.3", "chrono", "serde", "serde_derive", @@ -5750,7 +5770,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0392439ea05772166cbce3bebf7816bdcc3088967039c7ce050cea66873b1c50" dependencies = [ "async-trait", - "bincode", + "bincode 1.3.3", "crossbeam-channel", "futures-util", "indexmap 2.7.1", @@ -5781,7 +5801,7 @@ dependencies = [ "arrayvec", "assert_matches", "base64 0.22.1", - "bincode", + "bincode 1.3.3", "bs58", "bytes", "chrono", @@ -5966,7 +5986,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "17eeec2852ad402887e80aa59506eee7d530d27b8c321f4824f8e2e7fe3e8cb2" dependencies = [ - "bincode", + "bincode 1.3.3", "crossbeam-channel", "dlopen2", "lazy_static", @@ -6062,7 +6082,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ca8bd25a809e1763794de4c28d699d859d77947fd7c6b11883c781d2cdfb3cf2" dependencies = [ - "bincode", + "bincode 1.3.3", "clap 2.34.0", "crossbeam-channel", "log", @@ -6095,7 +6115,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", @@ -6162,7 +6182,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", @@ -6225,7 +6245,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "587f7e73d3ee7173f1f66392f1aeb4e582c055ad30f4e40f3a4b2cf9bce434fe" dependencies = [ "assert_matches", - "bincode", + "bincode 1.3.3", "bv", "clap 2.34.0", "crossbeam-channel", @@ -6326,7 +6346,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", @@ -6418,7 +6438,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "25ef5ef594139afbf9db0dd0468a4d904d3275ce07f3afdb3a9b68d38676a75e" dependencies = [ "assert_matches", - "bincode", + "bincode 1.3.3", "bitflags 2.9.0", "bzip2", "chrono", @@ -6599,7 +6619,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", @@ -6656,7 +6676,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0752a7103c1a5bdbda04aa5abc78281232f2eda286be6edf8e44e27db0cca2a1" dependencies = [ "anyhow", - "bincode", + "bincode 1.3.3", "bytes", "crossbeam-channel", "itertools 0.12.1", @@ -6725,7 +6745,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.9.0", "cfg_eval", "serde", @@ -6740,7 +6760,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f0962d3818fc942a888f7c2d530896aeaf6f2da2187592a67bbdc8cf8a54192" dependencies = [ "ahash 0.8.11", - "bincode", + "bincode 1.3.3", "bv", "caps", "curve25519-dalek 4.1.3", @@ -6854,7 +6874,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", @@ -6988,7 +7008,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c3d36fed5548b1a8625eb071df6031a95aa69f884e29bf244821e53c49372bc" dependencies = [ "base64 0.22.1", - "bincode", + "bincode 1.3.3", "enum-iterator", "itertools 0.12.1", "log", @@ -7031,7 +7051,7 @@ dependencies = [ "assert_matches", "async-trait", "base64 0.22.1", - "bincode", + "bincode 1.3.3", "chrono-humanize", "crossbeam-channel", "log", @@ -7256,7 +7276,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b978303a9d6f3270ab83fa28ad07a2f4f3181a65ce332b4b5f5d06de5f2a46c5" dependencies = [ "base64 0.22.1", - "bincode", + "bincode 1.3.3", "bs58", "crossbeam-channel", "dashmap", @@ -7319,7 +7339,7 @@ checksum = "7cb874b757d9d3c646f031132b20d43538309060a32d02b4aebb0f8fc2cd159a" dependencies = [ "async-trait", "base64 0.22.1", - "bincode", + "bincode 1.3.3", "bs58", "indicatif", "log", @@ -7407,7 +7427,7 @@ dependencies = [ "aquamarine", "arrayref", "base64 0.22.1", - "bincode", + "bincode 1.3.3", "blake3", "bv", "bytemuck", @@ -7533,7 +7553,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", @@ -7625,7 +7645,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", @@ -7798,7 +7818,7 @@ dependencies = [ name = "solana-slashing-cli" version = "1.0.0" dependencies = [ - "bincode", + "bincode 2.0.1", "bytemuck", "clap 3.2.25", "console", @@ -7834,7 +7854,7 @@ dependencies = [ name = "solana-slashing-program" version = "1.0.0" dependencies = [ - "bincode", + "bincode 2.0.1", "bitflags 2.9.0", "bytemuck", "lazy_static", @@ -7922,7 +7942,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dabc713c25ff999424ec68ac4572f2ff6bfd6317922c7864435ccaf9c76504a8" dependencies = [ - "bincode", + "bincode 1.3.3", "log", "solana-account", "solana-bincode", @@ -7952,7 +7972,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "11114c617be52001af7413ee9715b4942d80a0c3de6296061df10da532f6b192" dependencies = [ "backoff", - "bincode", + "bincode 1.3.3", "bytes", "bzip2", "enum-iterator", @@ -7993,7 +8013,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "45ed614e38d7327a6a399a17afb3b56c9b7b53fb7222eecdacd9bb73bf8a94d9" dependencies = [ - "bincode", + "bincode 1.3.3", "bs58", "prost", "protobuf-src", @@ -8149,7 +8169,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "43c8f684977e4439031b3a27b954ab05a6bdf697d581692aaf8888cf92b73b9e" dependencies = [ - "bincode", + "bincode 1.3.3", "log", "serde", "serde_derive", @@ -8191,7 +8211,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", @@ -8238,7 +8258,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "723ed26f24b185c36d476b8cd69c1b727ce2074d7342099aa56fce20bec19280" dependencies = [ "base64 0.22.1", - "bincode", + "bincode 1.3.3", "crossbeam-channel", "log", "serde_derive", @@ -8270,7 +8290,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "721a034e94fcfaf8bde1ae4980e7eb58bfeb0c9a243b032b0761fdd19018afbf" dependencies = [ - "bincode", + "bincode 1.3.3", "log", "rayon", "solana-account", @@ -8330,7 +8350,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aaceb9e9349de58740021f826ae72319513eca84ebb6d30326e2604fdad4cefb" dependencies = [ "async-trait", - "bincode", + "bincode 1.3.3", "futures-util", "indexmap 2.7.1", "indicatif", @@ -8363,7 +8383,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", @@ -8391,7 +8411,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", @@ -8420,7 +8440,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e9256ea8a6cead9e03060fd8fdc24d400a57a719364db48a3e4d1776b09c2365" dependencies = [ "base64 0.22.1", - "bincode", + "bincode 1.3.3", "lazy_static", "log", "rand 0.8.5", @@ -8438,7 +8458,7 @@ checksum = "64f739fb4230787b010aa4a49d3feda8b53aac145a9bc3ac2dd44337c6ecb544" dependencies = [ "Inflector", "base64 0.22.1", - "bincode", + "bincode 1.3.3", "borsh 1.5.5", "bs58", "lazy_static", @@ -8478,7 +8498,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d5ac91c8f0465c566164044ad7b3d18d15dfabab1b8b4a4a01cb83c047efdaae" dependencies = [ "base64 0.22.1", - "bincode", + "bincode 1.3.3", "bs58", "serde", "serde_derive", @@ -8500,7 +8520,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0a646980cf7729a5f9b01e90a8707eb4b045525c894b538ddf91bd43d216a187" dependencies = [ - "bincode", + "bincode 1.3.3", "bytes", "crossbeam-channel", "futures 0.3.31", @@ -8657,7 +8677,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", @@ -8681,7 +8701,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ab654bb2622d85b2ca0c36cb89c99fa1286268e0d784efec03a3d42e9c6a55f4" dependencies = [ - "bincode", + "bincode 1.3.3", "log", "num-derive", "num-traits", @@ -8759,7 +8779,7 @@ checksum = "d8318220b73552a2765c6545a4be04fc87fe21b6dd0cb8c2b545a66121bf5b8a" dependencies = [ "aes-gcm-siv", "base64 0.22.1", - "bincode", + "bincode 1.3.3", "bytemuck", "bytemuck_derive", "curve25519-dalek 4.1.3", @@ -8813,7 +8833,7 @@ checksum = "b3cf301f8d8e02ef58fc2ce85868f5c760720e1ce74ee4b3c3dcb64c8da7bcff" dependencies = [ "aes-gcm-siv", "base64 0.22.1", - "bincode", + "bincode 1.3.3", "bytemuck", "bytemuck_derive", "curve25519-dalek 4.1.3", @@ -9768,7 +9788,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", @@ -10153,6 +10173,12 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" +[[package]] +name = "unty" +version = "0.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d49784317cd0d1ee7ec5c716dd598ec5b4483ea832a2dced265471cc0f690ae" + [[package]] name = "uriparse" version = "0.6.4" @@ -10233,6 +10259,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 16e8730..edc5ef3 100644 --- a/clients/cli/Cargo.toml +++ b/clients/cli/Cargo.toml @@ -11,7 +11,7 @@ edition = "2021" tokio = "1.44" clap = { version = "3.2.23", features = ["derive"] } console = "0.15.10" -bincode = "1.3.1" +bincode = "2.0.1" bytemuck = "1.21.0" serde = "1.0.217" serde_derive = "1.0.103" diff --git a/program/Cargo.toml b/program/Cargo.toml index 0d223ef..31c775e 100644 --- a/program/Cargo.toml +++ b/program/Cargo.toml @@ -15,7 +15,7 @@ test-sbf = [] bitflags = { version = "2.9.0", features = ["serde"] } bytemuck = { version = "1.22.0", features = ["derive"] } num_enum = "0.7.3" -bincode = "1.3.3" +bincode = "2.0.1" num-derive = "0.4" num-traits = "0.2" solana-program = "2.2.0"