Crates.io | light-zero-copy |
lib.rs | light-zero-copy |
version | 0.2.0 |
source | src |
created_at | 2025-05-11 21:57:31.144479+00 |
updated_at | 2025-05-15 05:06:28.828758+00 |
description | Zero copy vector and utils for Solana programs. |
homepage | |
repository | https://github.com/Lightprotocol/light-protocol |
max_upload_size | |
id | 1669793 |
size | 133,428 |
Zero copy vector and utils for Solana programs.
The crate supports the following feature flags:
std
: Standard library support (default)solana
: Enable Solana program support using solana-programanchor
: Alias to solana
for backward compatibilitypinocchio
: Enable Pinocchio framework supportOnly one framework can be enabled at a time. The crate will use the appropriate imports based on the enabled feature.
To use with Solana:
light-zero-copy = { version = "0.1.0", features = ["solana"] }
To use with Pinocchio:
light-zero-copy = { version = "0.1.0", features = ["pinocchio"] }
For backward compatibility with Anchor-based projects:
light-zero-copy = { version = "0.1.0", features = ["anchor"] }
cargo test --features std