Registry / serialization / capnpc

capnpc

JSON →
library0.25.3rscratesunverified

Cap'n Proto code generation for Rust, generating serialization code from schema files.

# Cargo.toml [dependencies] capnpc = "0.25.3"
INSTALL
IMPORT
SIG · CAPNPC
C
capnpc
serializationrustv0.25.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CompilerCommand
use capnpc::CompilerCommand;

Compiles a Cap'n Proto schema file to generate Rust code.

use capnpc::CompilerCommand; fn main() { CompilerCommand::new() .file("schema.capnp") .run() .expect("compiling schema"); }
Debug
Known issues
gotchaRequires the capnp tool to be installed on the system for schema compilation.
fix
Install capnp via your package manager or from https://capnproto.org/install.html.
affects: >=0.25.0
Upgrade
Version history
0.25.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
24
OpenAI (training)
1
Resources
capnpc — cargo add capnpc · libregistry