Expand description
Core transpilation pipeline for C-to-Rust conversion.
This crate orchestrates the entire transpilation process:
- Parse C code (via decy-parser)
- Convert to HIR (via decy-hir)
- Analyze and infer types (via decy-analyzer)
- Infer ownership and lifetimes (via decy-ownership)
- Verify safety properties (via decy-verify)
- Generate Rust code (via decy-codegen)
Re-exports§
pub use metrics::CompileMetrics;pub use metrics::ConvergenceReport;pub use metrics::EquivalenceMetrics;pub use metrics::TierMetrics;pub use metrics::TranspilationResult;
Modules§
- metrics
- Compile success rate metrics for transpilation pipeline.
- optimize
- DECY-196: HIR optimization passes.
- trace
- DECY-193: Decision tracing / flight recorder for transpilation.
Structs§
- Cache
Statistics - Statistics for transpilation cache performance.
- Dependency
Graph - Dependency graph for tracking file dependencies and computing build order.
- Project
Context - Context for tracking cross-file information during transpilation.
- Transpilation
Cache - Transpilation cache for avoiding re-transpilation of unchanged files.
- Transpiled
File - Result of transpiling a single C file.
Functions§
- transpile
- Main transpilation pipeline entry point.
- transpile_
file - Transpile a single C file with project context.
- transpile_
from_ file_ path - DECY-237: Transpile directly from a C file path. This uses clang’s native file parsing which properly resolves system headers.
- transpile_
with_ box_ transform - Transpile with Box transformation enabled.
- transpile_
with_ includes - Transpile C code with include directive support and custom base directory.
- transpile_
with_ trace - DECY-193: Transpile C code with decision tracing.
- transpile_
with_ verification - Transpile C code and return verification result.