diff --git a/Cargo.lock b/Cargo.lock index 81b5a73cc6..265ded1ce0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -275,7 +275,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f4e2e5be518ec6053d90a2a7f26843dbee607583c779e6c8395951b9739bdfbe" dependencies = [ "anchor-syn", - "borsh-derive-internal 0.10.3", + "borsh-derive-internal 0.9.3", "proc-macro2", "quote", "syn 1.0.109", @@ -311,7 +311,7 @@ dependencies = [ "arrayref", "base64 0.13.1", "bincode", - "borsh 0.10.3", + "borsh 0.9.3", "bytemuck", "getrandom 0.2.15", "solana-program", @@ -1036,7 +1036,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4114279215a005bc675e386011e594e1d9b800918cea18fcadadcce864a2046b" dependencies = [ "borsh-derive 0.10.3", - "hashbrown 0.13.2", + "hashbrown 0.11.2", ] [[package]] @@ -2295,7 +2295,7 @@ dependencies = [ "async-trait", "base64 0.22.1", "bincode", - "borsh 0.10.3", + "borsh 1.5.1", "bs58 0.4.0", "chrono", "clap 4.5.16", @@ -3500,7 +3500,7 @@ version = "0.8.0" dependencies = [ "async-trait", "bb8", - "borsh 0.10.3", + "borsh 1.5.1", "log", "solana-banks-client", "solana-client", @@ -3535,7 +3535,7 @@ version = "1.0.0" dependencies = [ "ark-bn254", "ark-ff", - "borsh 0.10.3", + "borsh 1.5.1", "bytemuck", "light-bounded-vec", "light-hash-set", @@ -3594,7 +3594,7 @@ dependencies = [ name = "light-indexed-merkle-tree" version = "1.0.0" dependencies = [ - "borsh 0.10.3", + "borsh 1.5.1", "light-bounded-vec", "light-concurrent-merkle-tree", "light-hash-set", @@ -3655,7 +3655,7 @@ dependencies = [ "ark-relations", "ark-serialize", "ark-std", - "borsh 0.10.3", + "borsh 1.5.1", "bytemuck", "color-eyre", "duct", @@ -3707,7 +3707,7 @@ dependencies = [ "account-compression", "aligned-sized", "anchor-lang", - "borsh 0.10.3", + "borsh 1.5.1", "bytemuck", "groth16-solana", "lazy_static", @@ -3828,7 +3828,7 @@ dependencies = [ name = "light-verifier" version = "1.0.0" dependencies = [ - "borsh 0.10.3", + "borsh 1.5.1", "groth16-solana", "light-prover-client", "reqwest 0.11.27", @@ -4107,7 +4107,7 @@ version = "0.6.0" dependencies = [ "account-compression", "anchor-lang", - "borsh 0.10.3", + "borsh 1.5.1", "light-compressed-token", "light-hasher", "light-heap", diff --git a/Cargo.toml b/Cargo.toml index 6ad793d7d3..71fea1232f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,7 +51,7 @@ anchor-lang = "=0.29.0" anchor-spl = "=0.29.0" # Anchor compatibility -borsh = "0.10.0" +borsh = "1.5.1" # Macro helpers proc-macro2 = "1.0" diff --git a/circuit-lib/light-prover-client/Cargo.toml b/circuit-lib/light-prover-client/Cargo.toml index 4f915d50c5..50673f98a5 100644 --- a/circuit-lib/light-prover-client/Cargo.toml +++ b/circuit-lib/light-prover-client/Cargo.toml @@ -47,6 +47,6 @@ num-traits = "0.2.19" tokio = { workspace = true, optional = true } reqwest = { version = "0.11.24", features = ["json", "rustls-tls"], optional = true } sysinfo = "0.31" -borsh = ">=0.9, <0.11" +borsh = ">=0.9, <1.6" [dev-dependencies] duct = "0.13.7" diff --git a/circuit-lib/verifier/Cargo.toml b/circuit-lib/verifier/Cargo.toml index 07bcc60db1..619d4e464a 100644 --- a/circuit-lib/verifier/Cargo.toml +++ b/circuit-lib/verifier/Cargo.toml @@ -12,7 +12,7 @@ solana = ["solana-program"] [dependencies] groth16-solana = "0.0.3" thiserror = "1.0" -borsh = "0.10" +borsh = "1.5" solana-program = { workspace = true, optional = true } [dev-dependencies] diff --git a/examples/name-service/programs/name-service/Cargo.toml b/examples/name-service/programs/name-service/Cargo.toml index b7430160a7..b8e06402b8 100644 --- a/examples/name-service/programs/name-service/Cargo.toml +++ b/examples/name-service/programs/name-service/Cargo.toml @@ -22,7 +22,7 @@ bench-sbf = [] [dependencies] anchor-lang = { workspace = true, features = ["init-if-needed"] } -borsh = "0.10" +borsh = "1.5" light-compressed-token = { path = "../../../../programs/compressed-token", version = "1.0.0", features = ["cpi"] } light-system-program = { path = "../../../../programs/system", version = "1.0.0", features = ["cpi"]} account-compression = { path = "../../../../programs/account-compression", version = "1.0.0", features = ["cpi"] } diff --git a/forester/Cargo.toml b/forester/Cargo.toml index 6606aa45c3..8541c38d1a 100644 --- a/forester/Cargo.toml +++ b/forester/Cargo.toml @@ -31,7 +31,7 @@ tokio-util = "0.7" reqwest = { version = "0.11", features = ["json", "rustls-tls", "blocking"] } futures = "0.3.30" thiserror = "1" -borsh = "0.10.3" +borsh = "1.5.1" bs58 = "0.4.0" photon-api = { path = "../photon-api" } bincode = "1.3" diff --git a/merkle-tree/concurrent/Cargo.toml b/merkle-tree/concurrent/Cargo.toml index 94e1f1bde1..ffa060c887 100644 --- a/merkle-tree/concurrent/Cargo.toml +++ b/merkle-tree/concurrent/Cargo.toml @@ -15,7 +15,7 @@ solana = [ ] [dependencies] -borsh = "0.10" +borsh = "1.5" bytemuck = "1.17" light-bounded-vec = { path = "../bounded-vec", version = "1.0.0" } light-hasher = { path = "../hasher", version = "1.0.0" } diff --git a/merkle-tree/indexed/Cargo.toml b/merkle-tree/indexed/Cargo.toml index 8d0d34ac14..a1a1f06421 100644 --- a/merkle-tree/indexed/Cargo.toml +++ b/merkle-tree/indexed/Cargo.toml @@ -13,7 +13,7 @@ solana = [ ] [dependencies] -borsh = { version = "0.10" } +borsh = { version = "1.5" } light-bounded-vec = { path = "../bounded-vec", version = "1.0.0" } light-hasher = { path = "../hasher", version = "1.0.0" } light-concurrent-merkle-tree = { path = "../concurrent", version = "1.0.0" } diff --git a/sdk/Cargo.toml b/sdk/Cargo.toml index ceff897709..1b5a2c895b 100644 --- a/sdk/Cargo.toml +++ b/sdk/Cargo.toml @@ -35,7 +35,7 @@ light-concurrent-merkle-tree = { path = "../merkle-tree/concurrent", version = " light-utils = { version = "1.0.0", path = "../utils" } groth16-solana = "0.0.3" light-verifier = { path = "../circuit-lib/verifier", version = "1.0.0", features = ["solana"] } -borsh = "0.10.0" +borsh = "1.5.1" [target.'cfg(not(target_os = "solana"))'.dependencies] solana-sdk = { workspace = true }