# Solana SDK compatibility Issue

**URL:** <https://dev-forum.pyth.network/t/solana-sdk-compatibility-issue/378>\
**Category:** Price Feeds\
**Created:** [August 30, 2025, 7:46pm UTC](https://dev-forum.pyth.network/t/solana-sdk-compatibility-issue/378 "2025-08-30T19:46:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sillycat](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@sillycat](https://dev-forum.pyth.network/u/sillycat)\
**Post date:** [August 30, 2025, 7:46pm UTC](https://dev-forum.pyth.network/t/solana-sdk-compatibility-issue/378/1 "2025-08-30T19:46:42Z")

</div>

`Hi, somewhat of a noob but having a hell of a time getting a working oracle setup.`

`I keep getting anchor dependency mismatches using Anchor 0.30.1 even though the docs say 0.30.1 is recommended.`

I can’t find much online. Tried pinning version, but no dice. Can someone post me versions/dependency setup that’s working for you?

---

<div class="post-metadata">

**Author:** ![guibescos](https://avatars.discourse-cdn.com/v4/letter/g/aeb1de/32.png) [@guibescos](https://dev-forum.pyth.network/u/guibescos)\
**Post date:** [September 1, 2025, 10:16pm UTC](https://dev-forum.pyth.network/t/solana-sdk-compatibility-issue/378/2 "2025-09-01T22:16:11Z")

</div>

Hey!

First of all, I recommend that you look at this repo [anchor-pyth/programs/anchor-pyth at main · guibescos/anchor-pyth · GitHub](https://github.com/guibescos/anchor-pyth/tree/main/programs/anchor-pyth) , whose branches have an anchor setup for `v0.28.0`, `v0.29.0` and `v0.30.1`.

This [link](https://docs.pyth.network/price-feeds/troubleshoot/svm) teaches you how to adjust the versions of the packages in your anchor workspace.

After this, you should be able to compile the program using `cargo-build-sbf`.

You might get more errors from IDL generation when running `anchor build`, this is because IDL generation uses the most recent nightly version of rust in your machine, and the current versions are not compatible with anchor `v0.30.1`.

You can override the nightly version used for IDL generation with the env variable `RUSTUP_TOOLCHAIN`. Try:

`RUSTUP_TOOLCHAIN=“nightly-2024-06-20-aarch64-apple-darwin” anchor build`

Let us know if you encounter more errors.

---

<div class="post-metadata">

**Author:** ![sillycat](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@sillycat](https://dev-forum.pyth.network/u/sillycat)\
**Post date:** [September 2, 2025, 8:07pm UTC](https://dev-forum.pyth.network/t/solana-sdk-compatibility-issue/378/3 "2025-09-02T20:07:10Z")

</div>

> [@guibescos](#):
>
> anchor-pyth/programs/anchor-pyth at main · guibescos/anchor-pyth · GitHub

ahh dude thanks for that pivotal piece. Granted i’m a novice, but the pyth integration was not a smooth journey for me! Will post here in case others find it helpful, but it’s a bit of a dependency jigsaw puzzle.

My Cargo.toml ended up as:

> [workspace]  
> members = [“programs/\*”]  
> resolver = “2”
> 
> [workspace.dependencies]  
> anchor-lang = “=0.30.1”  
> anchor-spl = “=0.30.1”  
> pyth-solana-receiver-sdk = “=0.3.2”  
> solana-program = “=1.18.17”
> 
> [profile.release]  
> overflow-checks = true

Note I also had to downgrade to proc-macro2 1.0.94.

`RUSTUP_TOOLCHAIN=“nightly-2024-06-20-aarch64-apple-darwin” anchor build`

^^^ this was also a must.

Thanks again @guibescos

---

<div class="post-metadata">

**Author:** ![0xcredence](https://yyz2.discourse-cdn.com/flex034/user_avatar/dev-forum.pyth.network/0xcredence/32/26_2.png) [@0xcredence](https://dev-forum.pyth.network/u/0xcredence)\
**Post date:** [September 9, 2025, 1:28am UTC](https://dev-forum.pyth.network/t/solana-sdk-compatibility-issue/378/4 "2025-09-09T01:28:34Z")

</div>

Hi guys apologise for the wait. Our devs just created this

[crates.io: Rust Package Registry](https://crates.io/crates/pyth-solana-receiver-sdk) v1.0.0.

This updated version of the Pyth Core Solana sdk is compatible with solana v2.x.x and anchor v0.31.1 (the most recent versions of anchor and solana).

Here’s an example anchor workspace that uses it:

Hope this can help, let us know

> **[GitHub - guibescos/anchor-pyth](https://github.com/guibescos/anchor-pyth)**
>
> Contribute to guibescos/anchor-pyth development by creating an account on GitHub.
