adds bitflags to Packet.Meta

Instead of a separate bool type for each flag, all the flags can be
encoded in a type-safe bitflags encoded in a single u8:
https://github.com/solana-labs/solana/blob/d6ec103be/sdk/src/packet.rs#L19-L31
This commit is contained in:
behzad nouri
2022-01-02 12:10:32 -05:00
parent 73a7741c49
commit 01a096adc8
18 changed files with 130 additions and 92 deletions

View File

@ -3395,6 +3395,7 @@ dependencies = [
"assert_matches",
"base64 0.13.0",
"bincode",
"bitflags",
"borsh",
"bs58 0.4.0",
"bytemuck",