solana-runtime 4.5.0-alpha.2

Solana runtime
Documentation
#[cfg(feature = "stable-abi")]
use solana_frozen_abi_macro::{StableAbi, StableAbiSample, frozen_abi};
use wincode::{SchemaRead, SchemaWrite};

/// The serialized AccountsFileId type is fixed as usize
pub(crate) type SerializedAccountsFileId = usize;

// Serializable version of AccountStorageEntry, no longer written nor read back; only kept to name
// the wire shape of the deprecated storage entries map in the snapshot manifest.
#[repr(C)]
#[cfg_attr(
    feature = "stable-abi",
    derive(StableAbi, StableAbiSample),
    frozen_abi(
        abi_digest = "CMckX3HiC6K5FSmFo4tH44wU1mvGfabNtYAs65uaGvGU",
        abi_serializer = "wincode",
        test_roundtrip = "eq_and_wire"
    )
)]
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq, SchemaRead, SchemaWrite)]
pub struct SerializableAccountStorageEntry {
    id: SerializedAccountsFileId,
    accounts_current_len: usize,
}