From 7c11fb472846bcf5b983137783ca7d7a09e6c592 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 13 Oct 2023 14:35:19 +0000 Subject: [PATCH] build(deps): bump borsh from 0.10.3 to 1.0.0 Bumps [borsh](https://github.com/near/borsh-rs) from 0.10.3 to 1.0.0. - [Release notes](https://github.com/near/borsh-rs/releases) - [Changelog](https://github.com/near/borsh-rs/blob/master/CHANGELOG.md) - [Commits](https://github.com/near/borsh-rs/compare/borsh-v0.10.3...borsh-v1.0.0) --- updated-dependencies: - dependency-name: borsh dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- Cargo.lock | 63 ++++++++++++------- associated-token-account/program/Cargo.toml | 2 +- binary-option/program/Cargo.toml | 2 +- binary-oracle-pair/program/Cargo.toml | 2 +- feature-proposal/program/Cargo.toml | 2 +- governance/addin-api/Cargo.toml | 2 +- governance/addin-mock/program/Cargo.toml | 2 +- governance/chat/program/Cargo.toml | 2 +- governance/program/Cargo.toml | 2 +- governance/test-sdk/Cargo.toml | 2 +- governance/tools/Cargo.toml | 2 +- libraries/discriminator/Cargo.toml | 2 +- libraries/math/Cargo.toml | 2 +- libraries/pod/Cargo.toml | 2 +- .../type-length-value-derive-test/Cargo.toml | 2 +- managed-token/program/Cargo.toml | 2 +- name-service/program/Cargo.toml | 2 +- record/program/Cargo.toml | 2 +- single-pool/cli/Cargo.toml | 2 +- single-pool/program/Cargo.toml | 2 +- stake-pool/cli/Cargo.toml | 2 +- stake-pool/program/Cargo.toml | 2 +- stateless-asks/program/Cargo.toml | 2 +- token-metadata/interface/Cargo.toml | 2 +- token/program-2022-test/Cargo.toml | 2 +- 25 files changed, 63 insertions(+), 48 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b27db051257..5dc6f80501d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -558,7 +558,7 @@ name = "binary-option" version = "0.1.0" dependencies = [ "arrayref", - "borsh 0.10.3", + "borsh 1.0.0", "solana-program", "spl-token 4.0.0", "thiserror", @@ -711,6 +711,15 @@ dependencies = [ "hashbrown 0.13.2", ] +[[package]] +name = "borsh" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e6cb63579996213e822f6d828b0a47e1d23b1e8708f52d18a6b1af5670dd207" +dependencies = [ + "cfg_aliases", +] + [[package]] name = "borsh-derive" version = "0.9.3" @@ -962,6 +971,12 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "cfg_aliases" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e" + [[package]] name = "cgen" version = "0.1.0" @@ -6368,7 +6383,7 @@ name = "spl-associated-token-account" version = "2.2.0" dependencies = [ "assert_matches", - "borsh 0.10.3", + "borsh 1.0.0", "num-derive 0.4.1", "num-traits", "solana-program", @@ -6409,7 +6424,7 @@ dependencies = [ name = "spl-binary-oracle-pair" version = "0.1.0" dependencies = [ - "borsh 0.10.3", + "borsh 1.0.0", "num-derive 0.4.1", "num-traits", "solana-program", @@ -6437,7 +6452,7 @@ dependencies = [ name = "spl-discriminator" version = "0.1.0" dependencies = [ - "borsh 0.10.3", + "borsh 1.0.0", "bytemuck", "solana-program", "spl-discriminator-derive 0.1.1", @@ -6557,7 +6572,7 @@ dependencies = [ name = "spl-feature-proposal" version = "1.0.0" dependencies = [ - "borsh 0.10.3", + "borsh 1.0.0", "solana-program", "solana-program-test", "solana-sdk", @@ -6586,7 +6601,7 @@ dependencies = [ "assert_matches", "base64 0.21.4", "bincode", - "borsh 0.10.3", + "borsh 1.0.0", "num-derive 0.4.1", "num-traits", "proptest", @@ -6607,7 +6622,7 @@ dependencies = [ name = "spl-governance-addin-api" version = "0.1.3" dependencies = [ - "borsh 0.10.3", + "borsh 1.0.0", "solana-program", "spl-governance-tools", ] @@ -6619,7 +6634,7 @@ dependencies = [ "arrayref", "assert_matches", "bincode", - "borsh 0.10.3", + "borsh 1.0.0", "num-derive 0.4.1", "num-traits", "proptest", @@ -6642,7 +6657,7 @@ dependencies = [ "arrayref", "assert_matches", "bincode", - "borsh 0.10.3", + "borsh 1.0.0", "num-derive 0.4.1", "num-traits", "proptest", @@ -6666,7 +6681,7 @@ version = "0.1.3" dependencies = [ "arrayref", "bincode", - "borsh 0.10.3", + "borsh 1.0.0", "lazy_static", "num-derive 0.4.1", "num-traits", @@ -6685,7 +6700,7 @@ version = "0.1.3" dependencies = [ "arrayref", "bincode", - "borsh 0.10.3", + "borsh 1.0.0", "num-derive 0.4.1", "num-traits", "serde", @@ -6709,7 +6724,7 @@ dependencies = [ name = "spl-managed-token" version = "0.1.0" dependencies = [ - "borsh 0.10.3", + "borsh 1.0.0", "shank", "solana-program", "solana-program-test", @@ -6723,7 +6738,7 @@ dependencies = [ name = "spl-math" version = "0.2.0" dependencies = [ - "borsh 0.10.3", + "borsh 1.0.0", "libm", "num-derive 0.4.1", "num-traits", @@ -6765,7 +6780,7 @@ dependencies = [ name = "spl-name-service" version = "0.3.0" dependencies = [ - "borsh 0.10.3", + "borsh 1.0.0", "num-derive 0.4.1", "num-traits", "solana-program", @@ -6779,7 +6794,7 @@ name = "spl-pod" version = "0.1.0" dependencies = [ "base64 0.21.4", - "borsh 0.10.3", + "borsh 1.0.0", "bytemuck", "serde", "serde_json", @@ -6854,7 +6869,7 @@ dependencies = [ name = "spl-record" version = "0.1.0" dependencies = [ - "borsh 0.10.3", + "borsh 1.0.0", "num-derive 0.4.1", "num-traits", "solana-program", @@ -6878,7 +6893,7 @@ name = "spl-single-pool-cli" version = "1.0.0" dependencies = [ "bincode", - "borsh 0.10.3", + "borsh 1.0.0", "clap 3.2.25", "console", "serde", @@ -6913,7 +6928,7 @@ dependencies = [ "approx", "arrayref", "bincode", - "borsh 0.10.3", + "borsh 1.0.0", "num-derive 0.4.1", "num-traits", "num_enum 0.7.0", @@ -6935,7 +6950,7 @@ dependencies = [ "arrayref", "assert_matches", "bincode", - "borsh 0.10.3", + "borsh 1.0.0", "bytemuck", "num-derive 0.4.1", "num-traits", @@ -6960,7 +6975,7 @@ name = "spl-stake-pool-cli" version = "0.7.0" dependencies = [ "bincode", - "borsh 0.10.3", + "borsh 1.0.0", "bs58", "clap 2.34.0", "serde", @@ -7100,7 +7115,7 @@ name = "spl-token-2022-test" version = "0.0.1" dependencies = [ "async-trait", - "borsh 0.10.3", + "borsh 1.0.0", "futures-util", "solana-program", "solana-program-test", @@ -7228,7 +7243,7 @@ dependencies = [ name = "spl-token-metadata-interface" version = "0.2.0" dependencies = [ - "borsh 0.10.3", + "borsh 1.0.0", "serde", "serde_json", "solana-program", @@ -7418,7 +7433,7 @@ dependencies = [ name = "spl-type-length-value-derive-test" version = "0.1.0" dependencies = [ - "borsh 0.10.3", + "borsh 1.0.0", "solana-program", "spl-discriminator 0.1.0", "spl-type-length-value 0.3.0", @@ -7428,7 +7443,7 @@ dependencies = [ name = "stateless-asks" version = "0.1.0" dependencies = [ - "borsh 0.10.3", + "borsh 1.0.0", "solana-program", "solana-program-test", "solana-sdk", diff --git a/associated-token-account/program/Cargo.toml b/associated-token-account/program/Cargo.toml index 282aed6ae04..f581449bea4 100644 --- a/associated-token-account/program/Cargo.toml +++ b/associated-token-account/program/Cargo.toml @@ -13,7 +13,7 @@ test-sbf = [] [dependencies] assert_matches = "1.5.0" -borsh = "0.10" +borsh = "1.0" num-derive = "0.4" num-traits = "0.2" solana-program = "1.16.16" diff --git a/binary-option/program/Cargo.toml b/binary-option/program/Cargo.toml index edbf9c39573..e8c290d397a 100644 --- a/binary-option/program/Cargo.toml +++ b/binary-option/program/Cargo.toml @@ -13,7 +13,7 @@ solana-program = "1.16.16" thiserror = "1.0" spl-token = {version = "4.0", path = "../../token/program", features = ["no-entrypoint"]} arrayref = "0.3.7" -borsh = "0.10" +borsh = "1.0" uint = "0.9" [lib] diff --git a/binary-oracle-pair/program/Cargo.toml b/binary-oracle-pair/program/Cargo.toml index 735963c89b2..832b17b8892 100644 --- a/binary-oracle-pair/program/Cargo.toml +++ b/binary-oracle-pair/program/Cargo.toml @@ -17,7 +17,7 @@ solana-program = "1.16.16" spl-token = { version = "4.0", path = "../../token/program", features = [ "no-entrypoint" ] } thiserror = "1.0" uint = "0.9" -borsh = "0.10" +borsh = "1.0" [dev-dependencies] solana-program-test = "1.16.16" diff --git a/feature-proposal/program/Cargo.toml b/feature-proposal/program/Cargo.toml index cb54196b373..965cb83a1ea 100644 --- a/feature-proposal/program/Cargo.toml +++ b/feature-proposal/program/Cargo.toml @@ -12,7 +12,7 @@ no-entrypoint = [] test-sbf = [] [dependencies] -borsh = "0.10" +borsh = "1.0" solana-program = "1.16.16" spl-token = { version = "4.0", path = "../../token/program", features = ["no-entrypoint"] } diff --git a/governance/addin-api/Cargo.toml b/governance/addin-api/Cargo.toml index c7ea403163e..5488d95bd3f 100644 --- a/governance/addin-api/Cargo.toml +++ b/governance/addin-api/Cargo.toml @@ -8,6 +8,6 @@ license = "Apache-2.0" edition = "2021" [dependencies] -borsh = "0.10" +borsh = "1.0" spl-governance-tools= { version = "0.1.3", path ="../tools"} solana-program = "1.16.16" diff --git a/governance/addin-mock/program/Cargo.toml b/governance/addin-mock/program/Cargo.toml index de665b0f283..5bde228a9b1 100644 --- a/governance/addin-mock/program/Cargo.toml +++ b/governance/addin-mock/program/Cargo.toml @@ -14,7 +14,7 @@ test-sbf = [] [dependencies] arrayref = "0.3.7" bincode = "1.3.2" -borsh = "0.10" +borsh = "1.0" num-derive = "0.4" num-traits = "0.2" serde = "1.0.189" diff --git a/governance/chat/program/Cargo.toml b/governance/chat/program/Cargo.toml index bbd365ab1b8..52bd2684749 100644 --- a/governance/chat/program/Cargo.toml +++ b/governance/chat/program/Cargo.toml @@ -14,7 +14,7 @@ test-sbf = [] [dependencies] arrayref = "0.3.7" bincode = "1.3.2" -borsh = "0.10" +borsh = "1.0" num-derive = "0.4" num-traits = "0.2" serde = "1.0.189" diff --git a/governance/program/Cargo.toml b/governance/program/Cargo.toml index 766979fc987..24d6f89bca7 100644 --- a/governance/program/Cargo.toml +++ b/governance/program/Cargo.toml @@ -14,7 +14,7 @@ test-sbf = [] [dependencies] arrayref = "0.3.7" bincode = "1.3.2" -borsh = "0.10" +borsh = "1.0" num-derive = "0.4" num-traits = "0.2" serde = "1.0.189" diff --git a/governance/test-sdk/Cargo.toml b/governance/test-sdk/Cargo.toml index ecdcd37fe2c..ff8549ffea4 100644 --- a/governance/test-sdk/Cargo.toml +++ b/governance/test-sdk/Cargo.toml @@ -10,7 +10,7 @@ edition = "2021" [dependencies] arrayref = "0.3.7" bincode = "1.3.2" -borsh = "0.10" +borsh = "1.0" lazy_static = "1.4.0" num-derive = "0.4" num-traits = "0.2" diff --git a/governance/tools/Cargo.toml b/governance/tools/Cargo.toml index 7ad8047fba4..ceac536955c 100644 --- a/governance/tools/Cargo.toml +++ b/governance/tools/Cargo.toml @@ -10,7 +10,7 @@ edition = "2021" [dependencies] arrayref = "0.3.7" bincode = "1.3.2" -borsh = "0.10" +borsh = "1.0" num-derive = "0.4" num-traits = "0.2" serde = "1.0.189" diff --git a/libraries/discriminator/Cargo.toml b/libraries/discriminator/Cargo.toml index 71d0bb00591..e80fc84665c 100644 --- a/libraries/discriminator/Cargo.toml +++ b/libraries/discriminator/Cargo.toml @@ -11,7 +11,7 @@ edition = "2021" borsh = ["dep:borsh"] [dependencies] -borsh = { version = "0.10", optional = true } +borsh = { version = "1.0", optional = true } bytemuck = { version = "1.14.0", features = ["derive"] } solana-program = "1.16.16" spl-discriminator-derive = { version = "0.1.0", path = "./derive" } diff --git a/libraries/math/Cargo.toml b/libraries/math/Cargo.toml index 3a977464e9b..2de2b6836a4 100644 --- a/libraries/math/Cargo.toml +++ b/libraries/math/Cargo.toml @@ -12,7 +12,7 @@ no-entrypoint = [] test-sbf = [] [dependencies] -borsh = "0.10" +borsh = "1.0" num-derive = "0.4" num-traits = "0.2" solana-program = "1.16.16" diff --git a/libraries/pod/Cargo.toml b/libraries/pod/Cargo.toml index 8ef07cf6a21..9be36f21a36 100644 --- a/libraries/pod/Cargo.toml +++ b/libraries/pod/Cargo.toml @@ -13,7 +13,7 @@ borsh = ["dep:borsh"] [dependencies] base64 = { version = "0.21.4", optional = true } -borsh = { version = "0.10", optional = true } +borsh = { version = "1.0", optional = true } bytemuck = { version = "1.14.0" } serde = { version = "1.0.189", optional = true } solana-program = "1.16.16" diff --git a/libraries/type-length-value-derive-test/Cargo.toml b/libraries/type-length-value-derive-test/Cargo.toml index 85c3a29df7b..c9617a5df73 100644 --- a/libraries/type-length-value-derive-test/Cargo.toml +++ b/libraries/type-length-value-derive-test/Cargo.toml @@ -8,7 +8,7 @@ license = "Apache-2.0" edition = "2021" [dev-dependencies] -borsh = "0.10" +borsh = "1.0" solana-program = "1.16" spl-discriminator = { version = "0.1.0", path = "../discriminator" } spl-type-length-value = { version = "0.3.0", path = "../type-length-value", features = ["derive"] } diff --git a/managed-token/program/Cargo.toml b/managed-token/program/Cargo.toml index 1360e6560c1..7f2c6db2710 100644 --- a/managed-token/program/Cargo.toml +++ b/managed-token/program/Cargo.toml @@ -22,7 +22,7 @@ default = [] test = [] [dependencies] -borsh = "0.10" +borsh = "1.0" shank = "^0.2.1" solana-program = "1.16.16" spl-associated-token-account = { version = "2.0", path = "../../associated-token-account/program", features = [ "no-entrypoint", ] } diff --git a/name-service/program/Cargo.toml b/name-service/program/Cargo.toml index b9047632855..4c65e27e581 100644 --- a/name-service/program/Cargo.toml +++ b/name-service/program/Cargo.toml @@ -19,7 +19,7 @@ test-sbf = [] [dependencies] solana-program = "1.16.16" num-traits = "0.2" -borsh = "0.10" +borsh = "1.0" num-derive = "0.4.1" thiserror = "1.0.49" diff --git a/record/program/Cargo.toml b/record/program/Cargo.toml index 8e984835442..31b59c5efd4 100644 --- a/record/program/Cargo.toml +++ b/record/program/Cargo.toml @@ -12,7 +12,7 @@ no-entrypoint = [] test-sbf = [] [dependencies] -borsh = "0.10" +borsh = "1.0" num-derive = "0.4" num-traits = "0.2" solana-program = "1.16.16" diff --git a/single-pool/cli/Cargo.toml b/single-pool/cli/Cargo.toml index 2113a6bb41d..3814b4f6222 100644 --- a/single-pool/cli/Cargo.toml +++ b/single-pool/cli/Cargo.toml @@ -11,7 +11,7 @@ edition = "2021" tokio = "1.14" clap = { version = "3.2.23", features = ["derive"] } console = "0.15.7" -borsh = "0.10" +borsh = "1.0" bincode = "1.3.1" serde = "1.0.189" serde_derive = "1.0.103" diff --git a/single-pool/program/Cargo.toml b/single-pool/program/Cargo.toml index 03b3b69bd19..757760c7679 100644 --- a/single-pool/program/Cargo.toml +++ b/single-pool/program/Cargo.toml @@ -13,7 +13,7 @@ test-sbf = [] [dependencies] arrayref = "0.3.7" -borsh = "0.10" +borsh = "1.0" num-derive = "0.4" num-traits = "0.2" num_enum = "0.7.0" diff --git a/stake-pool/cli/Cargo.toml b/stake-pool/cli/Cargo.toml index 4674b6b169f..ba138946702 100644 --- a/stake-pool/cli/Cargo.toml +++ b/stake-pool/cli/Cargo.toml @@ -9,7 +9,7 @@ repository = "https://github.com/solana-labs/solana-program-library" version = "0.7.0" [dependencies] -borsh = "0.10" +borsh = "1.0" clap = "2.33.3" serde = "1.0.189" serde_derive = "1.0.130" diff --git a/stake-pool/program/Cargo.toml b/stake-pool/program/Cargo.toml index 0832372d1d6..e2dfdf19bc5 100644 --- a/stake-pool/program/Cargo.toml +++ b/stake-pool/program/Cargo.toml @@ -13,7 +13,7 @@ test-sbf = [] [dependencies] arrayref = "0.3.7" -borsh = "0.10" +borsh = "1.0" bytemuck = "1.13" num-derive = "0.4" num-traits = "0.2" diff --git a/stateless-asks/program/Cargo.toml b/stateless-asks/program/Cargo.toml index b9bc66f530b..0e496a9bb2f 100644 --- a/stateless-asks/program/Cargo.toml +++ b/stateless-asks/program/Cargo.toml @@ -11,7 +11,7 @@ no-entrypoint = [] test-sbf = [] [dependencies] -borsh = "0.10" +borsh = "1.0" solana-program = "1.16.16" spl-token = { version = "4.0", path = "../../token/program", features = ["no-entrypoint"] } spl-associated-token-account = {version = "2.0", path = "../../associated-token-account/program", features = ["no-entrypoint"]} diff --git a/token-metadata/interface/Cargo.toml b/token-metadata/interface/Cargo.toml index dc3475b7137..d708803017e 100644 --- a/token-metadata/interface/Cargo.toml +++ b/token-metadata/interface/Cargo.toml @@ -11,7 +11,7 @@ edition = "2021" serde-traits = ["dep:serde", "spl-pod/serde-traits"] [dependencies] -borsh = "0.10" +borsh = "1.0" serde = { version = "1.0.189", optional = true } solana-program = "1.16.16" spl-discriminator = { version = "0.1" , path = "../../libraries/discriminator" } diff --git a/token/program-2022-test/Cargo.toml b/token/program-2022-test/Cargo.toml index a5c5cc84f90..0fab69fd013 100644 --- a/token/program-2022-test/Cargo.toml +++ b/token/program-2022-test/Cargo.toml @@ -18,7 +18,7 @@ walkdir = "2" [dev-dependencies] async-trait = "0.1" -borsh = "0.10" +borsh = "1.0" futures-util = "0.3" solana-program = "=1.16.16" solana-program-test = "=1.16.16"