6 releases (breaking)
| 0.6.0 | Jan 20, 2026 |
|---|---|
| 0.5.0 | Oct 24, 2025 |
| 0.4.0 | Oct 7, 2025 |
| 0.3.0 | Sep 1, 2025 |
| 0.1.0 | May 11, 2025 |
#671 in Magic Beans
3,719 downloads per month
Used in 26 crates
(13 directly)
115KB
3K
SLoC
Light Zero Copy
Zero copy vector and utils for Solana programs.
Features
The crate supports the following feature flags:
std: Standard library support (default)solana: Enable Solana program support using solana-programanchor: Alias tosolanafor backward compatibilitypinocchio: Enable Pinocchio framework support
Only one framework can be enabled at a time. The crate will use the appropriate imports based on the enabled feature.
Usage
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"] }
Security Considerations
- do not use on a 32 bit target with length greater than u32
- only length until u64 is supported
Dependencies
~0.5–1.2MB
~18K SLoC