| Crates.io | light-zero-copy |
| lib.rs | light-zero-copy |
| version | 0.3.0 |
| created_at | 2025-05-11 21:57:31.144479+00 |
| updated_at | 2025-09-01 12:21:24.465303+00 |
| description | Zero copy vector and utils for Solana programs. |
| homepage | |
| repository | https://github.com/Lightprotocol/light-protocol |
| max_upload_size | |
| id | 1669793 |
| size | 237,066 |
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"] }