Skip to content

Commit

Permalink
lang: Remove borsh 0.9 support (#3199)
Browse files Browse the repository at this point in the history
  • Loading branch information
acheroncrypto authored Aug 26, 2024
1 parent 0498580 commit 7cb20f2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ The minor version will be incremented upon a breaking change and the patch versi
- lang: Remove `discriminator` method from `Discriminator` trait ([#3163](https://github.com/coral-xyz/anchor/pull/3163)).
- docker: Upgrade `node` to 20.16.0 LTS ([#3179](https://github.com/coral-xyz/anchor/pull/3179)).
- ts: Change the `Program` constructor's `idl` parameter type to `any` ([#3181](https://github.com/coral-xyz/anchor/pull/3181)).
- lang, spl: Remove `borsh 0.9` support ([#3199](https://github.com/coral-xyz/anchor/pull/3199)).

## [0.30.1] - 2024-06-20

Expand Down
2 changes: 1 addition & 1 deletion lang/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ anchor-lang-idl = { path = "../idl", version = "0.1.1", optional = true }
arrayref = "0.3"
base64 = "0.21"
bincode = "1"
borsh = ">=0.9, <0.11"
borsh = "0.10.3"
bytemuck = "1"
solana-program = "1.17.3"
thiserror = "1"
2 changes: 1 addition & 1 deletion lang/derive/serde/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ idl-build = ["anchor-syn/idl-build"]

[dependencies]
anchor-syn = { path = "../../syn", version = "0.30.1" }
borsh-derive-internal = ">=0.9, <0.11"
borsh-derive-internal = "0.10.3"
proc-macro2 = "1"
syn = { version = "1", features = ["full"] }
quote = "1"
2 changes: 1 addition & 1 deletion spl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ token_2022_extensions = ["spl-token-2022", "spl-token-group-interface", "spl-tok

[dependencies]
anchor-lang = { path = "../lang", version = "0.30.1", features = ["derive"] }
borsh = { version = ">=0.9, <0.11", optional = true }
borsh = { version = "0.10.3", optional = true }
mpl-token-metadata = { version = "4", optional = true }
serum_dex = { git = "https://github.com/openbook-dex/program/", rev = "1be91f2", version = "0.4.0", features = ["no-entrypoint"], optional = true }
spl-associated-token-account = { version = "3", features = ["no-entrypoint"], optional = true }
Expand Down

0 comments on commit 7cb20f2

Please sign in to comment.