Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Transpilation Options

The [transpilation] section controls the Phase 2 transpilation pipeline: output location, caching, and per-tool behavior for Depyler, Decy, and Bashrs.

Top-Level Settings

[transpilation]
output_dir = "./rust-output"
incremental = true
cache = true
use_ruchy = false
ruchy_strictness = "gradual"
modules = []
KeyTypeDefaultDescription
output_dirstring"./rust-output"Directory for generated Rust code
incrementalbooltrueOnly re-transpile changed files
cachebooltrueCache transpilation results across runs
use_ruchyboolfalseGenerate Ruchy (gradual Rust) instead of pure Rust
ruchy_strictnessstring"gradual"Ruchy strictness: "permissive", "gradual", or "strict"
modulesarray[]Specific modules to transpile (empty means all)

Depyler (Python to Rust)

[transpilation.depyler]
type_inference = true
numpy_to_trueno = true
sklearn_to_aprender = true
pytorch_to_realizar = true
KeyTypeDefaultDescription
type_inferencebooltrueInfer Rust types from Python type hints and usage
numpy_to_truenobooltrueMap NumPy operations to Trueno SIMD primitives
sklearn_to_aprenderbooltrueMap scikit-learn algorithms to Aprender
pytorch_to_realizarbooltrueMap PyTorch inference to Realizar (inference only)

When ML framework detection is enabled and dependencies are found in requirements.txt or pyproject.toml, these flags are set to true automatically by batuta init.

Decy (C/C++ to Rust)

[transpilation.decy]
ownership_inference = true
actionable_diagnostics = true
use_static_fixer = true
KeyTypeDefaultDescription
ownership_inferencebooltrueInfer Rust ownership from pointer lifetimes
actionable_diagnosticsbooltrueEmit fix-it style diagnostics for manual review
use_static_fixerbooltrueApply StaticFixer transforms for common C patterns

Bashrs (Shell to Rust)

[transpilation.bashrs]
target_shell = "bash"
use_clap = true
KeyTypeDefaultDescription
target_shellstring"bash"Shell dialect to parse ("bash", "sh", "zsh")
use_clapbooltrueGenerate CLI argument parsing with the clap crate

Custom Tool Registration

Custom transpilers can be registered through the plugin system. See Custom Transpiler Flags for passing flags to external tools and the Plugin Architecture chapter for the full plugin API.


Navigate: Table of Contents