Skip to content

Commit

Permalink
Remove the maximum version constraint from Solana crates (#2667)
Browse files Browse the repository at this point in the history
  • Loading branch information
acheroncrypto authored Oct 13, 2023
1 parent 23eeb1e commit 8717364
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/reusable-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ jobs:
path: tests/declare-id
- cmd: cd tests/typescript && anchor test --skip-lint && npx tsc --noEmit
path: tests/typescript
- cmd: cd tests/zero-copy && rustup toolchain install 1.66.1-x86_64-unknown-linux-gnu && anchor test --skip-lint && cd programs/zero-copy && cargo test-bpf
- cmd: cd tests/zero-copy && anchor test --skip-lint && cd programs/zero-copy && cargo test-bpf
path: tests/zero-copy
- cmd: cd tests/chat && anchor test --skip-lint
path: tests/chat
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The minor version will be incremented upon a breaking change and the patch versi
- lang: Add support for type aliases in IDLs ([#2637](https://github.com/coral-xyz/anchor/pull/2637)).
- cli: Add `test.upgradeable`, `test.genesis.upgradeable` setting in anchor.toml to support testing upgradeable programs ([#2641](https://github.com/coral-xyz/anchor/pull/2642)).
- cli, client, lang, spl: Update Solana toolchain and dependencies to `1.17.0`, `1.16` remains supported ([#2645](https://github.com/coral-xyz/anchor/pull/2645)).
- spl: Add support for memo program ([#2660](https://github.com/coral-xyz/anchor/issues/2660)).
- spl: Add support for memo program ([#2661](https://github.com/coral-xyz/anchor/pull/2661)).

### Fixes

Expand Down
10 changes: 5 additions & 5 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ semver = "1.0.4"
serde = { version = "1.0.122", features = ["derive"] }
serde_json = "1.0"
shellexpand = "2.1.0"
solana-client = ">=1.16, <1.18"
solana-cli-config = ">=1.16, <1.18"
solana-faucet = ">=1.16, <1.18"
solana-program = ">=1.16, <1.18"
solana-sdk = ">=1.16, <1.18"
solana-client = "1.16"
solana-cli-config = "1.16"
solana-faucet = "1.16"
solana-program = "1.16"
solana-sdk = "1.16"
solang-parser = "=0.3.2"
syn = { version = "1.0.60", features = ["full", "extra-traits"] }
tar = "0.4.35"
Expand Down
6 changes: 3 additions & 3 deletions client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ anyhow = "1"
futures = "0.3"
regex = "1"
serde = { version = "1", features = ["derive"] }
solana-client = ">=1.16, <1.18"
solana-sdk = ">=1.16, <1.18"
solana-account-decoder = ">=1.16, <1.18"
solana-account-decoder = "1.16"
solana-client = "1.16"
solana-sdk = "1.16"
thiserror = "1"
tokio = { version = "1", features = ["rt", "sync"] }
url = "2"
2 changes: 1 addition & 1 deletion client/example/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ events = { path = "../../tests/events/programs/events", features = ["no-entrypoi
anyhow = "1.0.32"
clap = { version = "4.2.4", features = ["derive"] }
shellexpand = "2.1.0"
solana-sdk = ">=1.16, <1.18"
solana-sdk = "1.16"
tokio = { version = "1", features = ["full"] }
2 changes: 1 addition & 1 deletion lang/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ base64 = "0.13"
bincode = "1"
borsh = ">=0.9, <0.11"
bytemuck = "1"
solana-program = ">=1.16, <1.18"
solana-program = "1.16"
thiserror = "1"

# TODO: Remove. This crate has been added to fix a build error with the 1.16.0 release.
Expand Down
6 changes: 3 additions & 3 deletions spl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ dex = ["serum_dex"]
devnet = []
governance = []
idl-build = ["anchor-lang/idl-build"]
memo = ["spl-memo"]
metadata = ["mpl-token-metadata"]
mint = []
shmem = []
stake = ["borsh"]
token = ["spl-token"]
token_2022 = ["spl-token-2022"]
memo = ["spl-memo"]

[dependencies]
anchor-lang = { path = "../lang", version = "0.28.0", features = ["derive"] }
borsh = { version = ">=0.9, <0.11", optional = true }
mpl-token-metadata = { version = "3.1.0", optional = true }
serum_dex = { git = "https://github.com/openbook-dex/program/", rev = "1be91f2", version = "0.4.0", features = ["no-entrypoint"], optional = true }
solana-program = ">=1.16, <1.18"
solana-program = "1.16"
spl-associated-token-account = { version = "2.2", features = ["no-entrypoint"], optional = true }
spl-memo = { version = "4", features = ["no-entrypoint"], optional = true }
spl-token = { version = "4", features = ["no-entrypoint"], optional = true }
spl-token-2022 = { version = "0.9", features = ["no-entrypoint"], optional = true }
spl-memo = { version = "4", features = ["no-entrypoint"], optional = true }
2 changes: 1 addition & 1 deletion tests/zero-copy/programs/zero-copy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ bytemuck = {version = "1.4.0", features = ["derive", "min_const_generics"]}

[dev-dependencies]
anchor-client = { path = "../../../../client", features = ["debug", "async"] }
solana-program-test = ">=1.16, <1.18"
solana-program-test = "1.16"

1 comment on commit 8717364

@vercel
Copy link

@vercel vercel bot commented on 8717364 Oct 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

anchor-docs – ./

anchor-docs-git-master-200ms.vercel.app
anchor-docs-200ms.vercel.app
www.anchor-lang.com
anchor-lang.com

Please sign in to comment.