Pyth-solana-receiver-sdk v1.0.0 fails with "borsh0_10 is deprecated"

When using the new pyth-solana-receiver-sdk v1.0.0:

   Compiling pyth-solana-receiver-sdk v1.0.0
error[E0658]: lint reasons are experimental
   --> src/price_update.rs:334:13
    |
334 |             reason = "borsh0_10 is deprecated, v1::get_packed_len should be used in the future"
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: see issue #54503 <https://github.com/rust-lang/rust/issues/54503> for more information
    = help: add `#![feature(lint_reasons)]` to the crate attributes to enable

For more information about this error, try `rustc --explain E0658`.
error: could not compile `pyth-solana-receiver-sdk` (lib) due to 1 previous error

0.6.1 compiles without errors.

Nighly Rust (required by current Anchor) setting is: RUSTUP_TOOLCHAIN=nightly-2024-11-19

Gm @mikemaccana thanks for raising that the lint reason doesn’t play nice with the Anchor specified nightly Rust. We’ll move the reasonto a comment to get this unblocked, stay tuned.

Actually, i’m unable to reproduce the build error with RUSTUP_TOOLCHAIN=nightly-2024-11-19. Can you please try building this toy project that uses pyth-solana-receiver-sdk==v1.0.0?

I’m attaching my output of running RUSTUP_TOOLCHAIN=nightly-2024-11-19 anchor build --no-idl.

(I used --no-idl because there are some incompatibilities with Anchor and proc-macro2 in the IDL generation step)

Same issue for me unfortunately.

We removed the lint reason in v1.0.1, can you please try that version?