Skip to main content

Module codegen

Module codegen 

Source

Structsยง

ProtoInput ๐Ÿ”’
PythonInfo ๐Ÿ”’
Probe the active python3 for grpc_tools.protoc. Bails with a single, copy-pasteable install instruction if either is missing โ€” this is the only Python dep rbnx codegen reaches for, so making it explicit up front is the entire UX cost of not vendoring protoc + grpc_python_plugin.
PythonSelection ๐Ÿ”’

Constantsยง

MANAGED_GRPCIO ๐Ÿ”’
MANAGED_GRPC_TOOLS ๐Ÿ”’
MANAGED_PROTOBUF ๐Ÿ”’

Functionsยง

build_codegen_cmd ๐Ÿ”’
Build a fresh Command invoking robonix-codegen either directly (preferred โ€” picks up $ROBONIX_CODEGEN_BIN / installed bin / target/ in that order) or via cargo run -p robonix-codegen as a last resort. Caller appends the actual --lang โ€ฆ -I โ€ฆ -o โ€ฆ args.
clean_codegen_outputs ๐Ÿ”’
collect_proto_inputs ๐Ÿ”’
ensure_success ๐Ÿ”’
execute
fingerprint_proto_inputs ๐Ÿ”’
locate_codegen_bin ๐Ÿ”’
Locate a runnable robonix-codegen binary without going through cargo. Search order:
managed_codegen_python ๐Ÿ”’
A Python with the pinned codegen toolchain, under the robonix home, created with uv on first use and reused after that.
managed_python_ready ๐Ÿ”’
The managed Python exists and still has exactly the pinned versions; an older one is rebuilt rather than reused.
pinned_mismatch ๐Ÿ”’
What differs from the pinned toolchain, if anything.
probe_python_grpc_tools ๐Ÿ”’
publish_directory ๐Ÿ”’
python_command ๐Ÿ”’
A command running python with the user site off, so packages under ~/.local never mix into the toolchain.
resolve_pkg_root ๐Ÿ”’
resolve_python_selection ๐Ÿ”’
The Python named by --python, else by RBNX_CODEGEN_PYTHON; None means the managed toolchain.
run_cmd ๐Ÿ”’
select_codegen_python ๐Ÿ”’
temporary_sibling ๐Ÿ”’
validate_generated_imports ๐Ÿ”’
write_toolchain_metadata ๐Ÿ”’
ๆต™ICPๅค‡2023005800ๅท-2 ๆต™ๅ…ฌ็ฝ‘ๅฎ‰ๅค‡33010902005384ๅท