Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 8c04494

Browse files
authored
token: Update to v5 for solana-program 2.0 compatibility (#6907)
Updating to allow for version <= 2.0 of the solana crates can appear as a breaking change for new projects, since cargo pulls in the latest version of all dependencies, and once there's an attempt to mix v1 and v2, downstream users will see errors. This is made worse that the patch versions will quietly pick up the v2 dependency, so if someone doesn't know how to manipulate a cargo lockfile, they will get build errors and won't know how to resolve them. All other SPL crates contain a new breaking version (new major for crates on v1 or more, new minor for crates on v0.X), except for spl-token. Bump spl-token to v5.
1 parent 2a0b2eb commit 8c04494

File tree

30 files changed

+59
-59
lines changed

30 files changed

+59
-59
lines changed

Cargo.lock

Lines changed: 30 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

associated-token-account/program-test/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ solana-program = ">=1.18.11,<=2"
1515
solana-program-test = ">=1.18.11,<=2"
1616
solana-sdk = ">=1.18.11,<=2"
1717
spl-associated-token-account = { version = "3.0.2", path = "../program", features = ["no-entrypoint"] }
18-
spl-token = { version = "4.0", path = "../../token/program", features = ["no-entrypoint"] }
18+
spl-token = { version = "5.0", path = "../../token/program", features = ["no-entrypoint"] }
1919
spl-token-2022 = { version = "3.0.2", path = "../../token/program-2022", features = ["no-entrypoint"] }

associated-token-account/program/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ borsh = "1.5.1"
1717
num-derive = "0.4"
1818
num-traits = "0.2"
1919
solana-program = ">=1.18.11,<=2"
20-
spl-token = { version = "4.0", path = "../../token/program", features = [
20+
spl-token = { version = "5.0", path = "../../token/program", features = [
2121
"no-entrypoint",
2222
] }
2323
spl-token-2022 = { version = "3.0.2", path = "../../token/program-2022", features = [

binary-option/program/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test-sbf = []
1111
[dependencies]
1212
solana-program = ">=1.18.11,<=2"
1313
thiserror = "1.0"
14-
spl-token = { version = "4.0", path = "../../token/program", features = [
14+
spl-token = { version = "5.0", path = "../../token/program", features = [
1515
"no-entrypoint",
1616
] }
1717
arrayref = "0.3.7"

binary-oracle-pair/program/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ test-sbf = []
1414
num-derive = "0.4"
1515
num-traits = "0.2"
1616
solana-program = ">=1.18.11,<=2"
17-
spl-token = { version = "4.0", path = "../../token/program", features = [
17+
spl-token = { version = "5.0", path = "../../token/program", features = [
1818
"no-entrypoint",
1919
] }
2020
thiserror = "1.0"

examples/rust/transfer-tokens/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ test-sbf = []
1313

1414
[dependencies]
1515
solana-program = ">=1.18.11,<=2"
16-
spl-token = { version = "4.0", path = "../../../token/program", features = [ "no-entrypoint" ] }
16+
spl-token = { version = "5.0", path = "../../../token/program", features = [ "no-entrypoint" ] }
1717

1818
[dev-dependencies]
1919
solana-program-test = ">=1.18.11,<=2"

feature-proposal/program/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ test-sbf = []
1414
[dependencies]
1515
borsh = "1.5.1"
1616
solana-program = ">=1.18.11,<=2"
17-
spl-token = { version = "4.0", path = "../../token/program", features = [
17+
spl-token = { version = "5.0", path = "../../token/program", features = [
1818
"no-entrypoint",
1919
] }
2020

governance/addin-mock/program/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ num-traits = "0.2"
2020
serde = "1.0.203"
2121
serde_derive = "1.0.103"
2222
solana-program = ">=1.18.11,<=2"
23-
spl-token = { version = "4.0", path = "../../../token/program", features = [
23+
spl-token = { version = "5.0", path = "../../../token/program", features = [
2424
"no-entrypoint",
2525
] }
2626
spl-governance-addin-api = { version = "0.1.4", path = "../../addin-api" }

governance/chat/program/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ num-traits = "0.2"
2020
serde = "1.0.203"
2121
serde_derive = "1.0.103"
2222
solana-program = ">=1.18.11,<=2"
23-
spl-token = { version = "4.0", path = "../../../token/program", features = [
23+
spl-token = { version = "5.0", path = "../../../token/program", features = [
2424
"no-entrypoint",
2525
] }
2626
spl-governance = { version = "4.0.0", path = "../../program", features = [

governance/program/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ num-traits = "0.2"
2020
serde = "1.0.203"
2121
serde_derive = "1.0.103"
2222
solana-program = ">=1.18.11,<=2"
23-
spl-token = { version = "4.0", path = "../../token/program", features = [
23+
spl-token = { version = "5.0", path = "../../token/program", features = [
2424
"no-entrypoint",
2525
] }
2626
spl-governance-tools = { version = "0.1.4", path = "../tools" }

0 commit comments

Comments
 (0)