Skip to content

Commit

Permalink
use bytemuck_derive 1.7.0 explicitly in sdk and program
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey committed Jun 19, 2024
1 parent 403b793 commit 0b2fc28
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 13 deletions.
8 changes: 5 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ bv = "0.11.1"
byte-unit = "4.0.19"
bytecount = "0.6.8"
bytemuck = "1.16.1"
bytemuck_derive = "1.7.0"
byteorder = "1.5.0"
bytes = "1.6"
bzip2 = "0.4.4"
Expand Down
8 changes: 5 additions & 3 deletions programs/sbf/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ bincode = { workspace = true }
bitflags = { workspace = true, features = ["serde"] }
borsh = { workspace = true, optional = true }
bs58 = { workspace = true }
bytemuck = { workspace = true, features = ["derive"] }
bytemuck = { workspace = true }
bytemuck_derive = { workspace = true }
byteorder = { workspace = true, optional = true }
chrono = { workspace = true, features = ["alloc"], optional = true }
curve25519-dalek = { workspace = true, optional = true }
Expand Down
3 changes: 2 additions & 1 deletion sdk/program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ borsh = { workspace = true, optional = true }
borsh0-10 = { package = "borsh", version = "0.10.3", optional = true }
bs58 = { workspace = true }
bv = { workspace = true, features = ["serde"] }
bytemuck = { workspace = true, features = ["derive"] }
bytemuck = { workspace = true }
bytemuck_derive = { workspace = true }
itertools = { workspace = true }
lazy_static = { workspace = true }
log = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion sdk/program/src/alt_bn128/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pub mod prelude {
}

use {
bytemuck::{Pod, Zeroable},
bytemuck_derive::{Pod, Zeroable},
consts::*,
thiserror::Error,
};
Expand Down
2 changes: 1 addition & 1 deletion sdk/program/src/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::wasm_bindgen;
use borsh::{BorshDeserialize, BorshSchema, BorshSerialize};
use {
crate::sanitize::Sanitize,
bytemuck::{Pod, Zeroable},
bytemuck_derive::{Pod, Zeroable},
sha2::{Digest, Sha256},
std::{convert::TryFrom, fmt, mem, str::FromStr},
thiserror::Error,
Expand Down
2 changes: 1 addition & 1 deletion sdk/program/src/pubkey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use arbitrary::Arbitrary;
use borsh::{BorshDeserialize, BorshSchema, BorshSerialize};
use {
crate::{decode_error::DecodeError, hash::hashv},
bytemuck::{Pod, Zeroable},
bytemuck_derive::{Pod, Zeroable},
num_derive::{FromPrimitive, ToPrimitive},
std::{
convert::{Infallible, TryFrom},
Expand Down
2 changes: 1 addition & 1 deletion sdk/program/src/sysvar/slot_hashes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ use {
slot_hashes::MAX_ENTRIES,
sysvar::{get_sysvar, Sysvar, SysvarId},
},
bytemuck::{Pod, Zeroable},
bytemuck_derive::{Pod, Zeroable},
};

crate::declare_sysvar_id!("SysvarS1otHashes111111111111111111111111111", SlotHashes);
Expand Down
3 changes: 2 additions & 1 deletion sdk/src/ed25519_instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

use {
crate::{feature_set::FeatureSet, instruction::Instruction, precompiles::PrecompileError},
bytemuck::{bytes_of, Pod, Zeroable},
bytemuck::bytes_of,
bytemuck_derive::{Pod, Zeroable},
ed25519_dalek::{ed25519::signature::Signature, Signer, Verifier},
};

Expand Down

0 comments on commit 0b2fc28

Please sign in to comment.