diff --git a/Cargo.lock b/Cargo.lock index 92db1ffa26..92cda74b2b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -264,6 +264,7 @@ dependencies = [ "bincode", "borsh 0.10.3", "bytemuck", + "bytemuck_derive", "solana-program", "thiserror", ] diff --git a/lang/Cargo.toml b/lang/Cargo.toml index db6d437f5d..17f7550655 100644 --- a/lang/Cargo.toml +++ b/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"