Skip to main content

No project description provided

Project description

zalfmas-capnp-schemas

Containerized Cap'n Proto schema compiler with C++, C#, Go, Python, and capnp-offset support.

Build image

docker build -t capnp-gen .

Optional build arguments:

  • CAPNP_VERSION (default 1.2.0)
  • JOBS (parallel make jobs, default 6)
  • CAPNPC_GO_PKG (Go plugin module path)
  • CAPNPC_GO_VERSION (default v3.1.0-alpha.2)

Example:

docker build --build-arg CAPNP_VERSION=1.2.0 --build-arg JOBS=12 -t capnp-gen .

Basic usage

The image ENTRYPOINT is: python3 capnp_compile.py Default CMD: --lang c++ go csharp python capnp_offsets

docker run --rm -u $(id -u):$(id -g) \
  -v "$(pwd)":/workspace -w /workspace capnp-gen

Explicit (C++ + Go):

docker run --rm -u $(id -u):$(id -g) \
  -v "$(pwd)":/workspace -w /workspace capnp-gen --lang c++ go

Notes

  • Schemas must be available inside the mounted workspace (default: current directory).
  • Generated code is written relative to /workspace (your mounted directory).
  • capnpc-go is on PATH (installed in /usr/local/bin).
  • Go generation maintains a single module rooted at gen/go.
  • gen/go/go.mod is preserved by the generator, and go mod tidy runs automatically after Go regeneration to refresh go.sum.
  • Adjust UID/GID mapping with -u to avoid root-owned outputs.

Updating Go plugin only

Rebuild with a different CAPNPC_GO_VERSION:

docker build --build-arg CAPNPC_GO_VERSION=v3.0.0 -t capnp-gen .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zalfmas_capnp_schemas-0.1.62.tar.gz (511.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zalfmas_capnp_schemas-0.1.62-py3-none-any.whl (827.4 kB view details)

Uploaded Python 3

File details

Details for the file zalfmas_capnp_schemas-0.1.62.tar.gz.

File metadata

  • Download URL: zalfmas_capnp_schemas-0.1.62.tar.gz
  • Upload date:
  • Size: 511.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for zalfmas_capnp_schemas-0.1.62.tar.gz
Algorithm Hash digest
SHA256 bcfa1d42372a2f9346725cfb3aa192e0040c3080d9af35e154301042046b3381
MD5 fefffe7490cf2ba29fdf3321bf3d1630
BLAKE2b-256 f02e3a11032a7cd7b3d6e5da4e87fc844ba16ba469768ad4481cef64cb62f732

See more details on using hashes here.

Provenance

The following attestation bundles were made for zalfmas_capnp_schemas-0.1.62.tar.gz:

Publisher: release.yaml on zalf-rpm/mas_capnproto_schemas

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zalfmas_capnp_schemas-0.1.62-py3-none-any.whl.

File metadata

File hashes

Hashes for zalfmas_capnp_schemas-0.1.62-py3-none-any.whl
Algorithm Hash digest
SHA256 2b9b241855c550b456a4d520ee61f64c1113b4d8d841e62a010c0ffe5fdc76f5
MD5 104c5c56041969bf7799399acb7d5e0f
BLAKE2b-256 f615597d01dc7548c8ecd8c3715a7abf53117b1c1aa0ac2d3b72bb76cb24854f

See more details on using hashes here.

Provenance

The following attestation bundles were made for zalfmas_capnp_schemas-0.1.62-py3-none-any.whl:

Publisher: release.yaml on zalf-rpm/mas_capnproto_schemas

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page