Skip to content

Commit 9038add

Browse files
committed
Using workspace dependencies
1 parent 2b5c4ee commit 9038add

File tree

4 files changed

+22
-12
lines changed

4 files changed

+22
-12
lines changed

Cargo.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,12 @@ members = [
66
"pyth-sdk-solana/test-contract",
77
"examples/sol-contract",
88
]
9+
10+
[workspace.dependencies]
11+
pyth-sdk = { path = "./pyth-sdk",version = "0.8.0" }
12+
pyth-sdk-solana = { path = "./pyth-sdk-solana", version = "0.10.2" }
13+
14+
solana-program = ">= 1.10"
15+
borsh = "0.10.3"
16+
borsh-derive = "0.10.3"
17+
serde = "1.0.136"

examples/sol-contract/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ edition = "2021"
99
crate-type = ["cdylib", "lib"]
1010

1111
[dependencies]
12-
borsh = "0.10.3"
1312
arrayref = "0.3.6"
14-
solana-program = ">= 1.10"
15-
pyth-sdk-solana = { path = "../../pyth-sdk-solana", version = "0.10.2" }
13+
borsh.workspace = true
14+
solana-program.workspace = true
15+
pyth-sdk-solana.workspace = true

pyth-sdk-solana/Cargo.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@ keywords = [ "pyth", "solana", "oracle" ]
1212
readme = "README.md"
1313

1414
[dependencies]
15-
solana-program = ">= 1.9"
16-
borsh = "0.10.3"
17-
borsh-derive = "0.10.3"
18-
bytemuck = {version ="1.7.2", features = ["derive"]}
15+
pyth-sdk.workspace = true
16+
17+
solana-program.workspace = true
18+
borsh.workspace = true
19+
borsh-derive.workspace = true
20+
bytemuck = { version ="1.7.2", features = ["derive"] }
1921
num-derive = "0.3"
2022
num-traits = "0.2"
2123
thiserror = "1.0"
22-
serde = { version = "1.0.136", features = ["derive"] }
23-
pyth-sdk = { path = "../pyth-sdk", version = "0.8.0" }
24+
serde = { workspace=true, features = ["derive"] }
2425

2526
[dev-dependencies]
2627
solana-client = ">= 1.9"

pyth-sdk/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ crate-type = ["cdylib", "lib"]
1616

1717
[dependencies]
1818
hex = { version = "0.4.3", features = ["serde"] }
19-
borsh = "0.10.3"
20-
borsh-derive = "0.10.3"
21-
serde = { version = "1.0.136", features = ["derive"] }
19+
borsh.workspace = true
20+
borsh-derive.workspace = true
21+
serde = { worksapce = true, features = ["derive"] }
2222
schemars = "0.8.8"
2323
getrandom = { version = "0.2.2", features = ["custom"] }
2424

0 commit comments

Comments
 (0)