Skip to content

Project config

deukpack.json

deukpack init --idl schema/hero.deuk --lang typescript=gen/ts --lang python=gen/py --lang rust=gen/rs
deukpack gen                       # every language deukpack.json names
deukpack gen --config <file>       # another config file
  • init writes deukpack.json here: IDL, output per language, --cpp-allocator, --no-serializer
  • An existing file is an error. --force replaces it
  • Paths are relative to deukpack.json
  • Unknown key, unknown language or empty languages = error

gen options

Option Meaning
input one .deuk, .proto or .thrift file
--lang typescript javascript python cpp csharp rust
--out output folder; several languages → <out>/<language>/
--no-serializer objects only, no codecs or runtime
--cpp-allocator pmr C++ objects use std::pmr containers

Python settings

deukpack.json key Meaning
python.models codecs read and write your own pydantic models
python.scalarChoice a field of bool, int, float or str as one record
python.native: true pyo3 crate (native/) + dp_native.py
  • python.native + python.models = the Rust codec works on your models
  • python.native alone = the crate only (module dp_native_obj), no pydantic
  • Native objects: Point(x=1), p.x, p.pack(), Point.unpack(data)
  • python.native builds with cargo on the machine that runs Python

Other commands

Command Meaning
deukpack schema existing types → .deuk. Guide
deukpack skill register the agent skill again. Guide
deukpack --version installed version
deukpack --help full help