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

#10 in #pinocchio

Download history 417/week @ 2025-12-08 747/week @ 2025-12-15 221/week @ 2025-12-22 277/week @ 2025-12-29 358/week @ 2026-01-05 1035/week @ 2026-01-12 1972/week @ 2026-01-19 1170/week @ 2026-01-26 902/week @ 2026-02-02 1173/week @ 2026-02-09 767/week @ 2026-02-16 627/week @ 2026-02-23 409/week @ 2026-03-02 584/week @ 2026-03-09 566/week @ 2026-03-16 424/week @ 2026-03-23

2,004 downloads per month
Used in 32 crates (15 directly)

Apache-2.0

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-program
  • anchor: Alias to solana for backward compatibility
  • pinocchio: 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