فهرست منبع

lang: Fix `bytemuck_derive` build error (#3610)

acheron 6 ماه پیش
والد
کامیت
a107d82e15
2فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 1 0
      Cargo.lock
  2. 5 0
      lang/Cargo.toml

+ 1 - 0
Cargo.lock

@@ -264,6 +264,7 @@ dependencies = [
  "bincode",
  "borsh 0.10.3",
  "bytemuck",
+ "bytemuck_derive",
  "solana-program",
  "thiserror",
 ]

+ 5 - 0
lang/Cargo.toml

@@ -58,3 +58,8 @@ borsh = "0.10.3"
 bytemuck = "1"
 solana-program = "2"
 thiserror = "1"
+
+# v1.9 specifies `rust-version = "1.84"`, which causes compatibility issues with Solana build
+# tools' Rust version (1.79.0 at the time of writing this comment).
+# TODO: Remove when the Solana version we use comes with Rust version >= 1.84
+bytemuck_derive = ">1.0.0, <1.9"