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 ๐Ÿ”’

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:
probe_python_grpc_tools ๐Ÿ”’
publish_directory ๐Ÿ”’
resolve_pkg_root ๐Ÿ”’
resolve_python_selection ๐Ÿ”’
run_cmd ๐Ÿ”’
select_codegen_python ๐Ÿ”’
temporary_sibling ๐Ÿ”’
validate_generated_imports ๐Ÿ”’
write_toolchain_metadata ๐Ÿ”’