Expand description
Transpiler Agent - Python to Rust Code Generation
Generates idiomatic Rust code from analyzed Python AST.
Re-exports§
pub use class_translator::ClassTranslator;
Modules§
- advanced_
features - Advanced Python Features Translator
- asyncio_
orchestrator - Full Asyncio Support - Orchestrator Module
- build_
optimizer - Build Optimizer - WASM binary size optimization and analysis
- cargo_
generator - Cargo.toml Generator - Auto-generates Cargo.toml from Python code
- class_
inheritance - Class Inheritance Translation
- class_
translator - Class Translation Module
- code_
splitter - Code Splitter - Splits WASM modules for lazy loading and optimization
- common_
libraries_ translator - Common Python Libraries Translation
- dead_
code_ eliminator - Dead Code Eliminator - Analyzes and removes unused code for WASM optimization
- decorator_
translator - Python Decorator Translation to Rust
- dependency_
graph - Dependency Graph - Directed graph of module dependencies
- dependency_
resolver - Dependency Resolver - Resolves Python imports to Rust dependencies
- expression_
translator - Generic Expression Translator - Python expressions to Rust
- external_
packages - External Package Mapping - Maps popular PyPI packages to Rust crates
- feature_
translator - Feature-based Python to Rust translator
- generator_
translator - Python Generator to Rust Iterator Translation
- generic_
translator - Generic Type Translation
- import_
analyzer - Import Analyzer - Detects Python imports and maps to Rust dependencies
- indented_
parser - Indentation-aware Python parser
- lifetime_
analysis - Lifetime Analysis and Insertion
- multi_
target_ builder - Multi-Target Builder - Generates deployment packages for Browser, Node.js, and Edge runtimes
- npm_
package_ generator - NPM Package Generator - Creates publishable NPM packages for WASM modules
- numpy_
translator - NumPy to ndarray Translation
- pandas_
translator - Pandas to Polars Translation
- py_
to_ rust_ asyncio - Python asyncio → Rust async/await Translation Layer
- py_
to_ rust_ fs - Python Filesystem Operations → Rust/WASI Translation
- py_
to_ rust_ http - Python to Rust HTTP API Mapping
- python_
ast - Python AST types for translation to Rust
- python_
parser - Full Python AST Parser using rustpython-parser
- python_
to_ rust - Python to Rust translator
- reference_
optimizer - Reference Optimization
- simple_
parser - Simple Python parser for Low complexity features
- statement_
translator - Generic Statement Translator - Python statements to Rust
- stdlib_
mapper - Python Standard Library to Rust Crate Mapping
- stdlib_
mappings_ comprehensive - Comprehensive Python Standard Library to Rust Mappings
- threading_
translator - Python Threading/Multiprocessing to Rust Translation
- type_
inference - Hindley-Milner Type Inference System
- typescript_
generator - TypeScript Definition Generator - Generates .d.ts files from Rust/WASM exports
- version_
compatibility - Version Compatibility - Semantic versioning and dependency version resolution
- version_
resolver - Version Resolution System
- wasi_
async_ runtime - WASI Async Runtime Wrapper
- wasi_
core - Core WASI Filesystem Implementation
- wasi_
directory - WASI Directory Operations
- wasi_
fetch - WASI Fetch API Integration
- wasi_
filesystem - Complete WASI Filesystem Implementation
- wasi_fs
- WASI Filesystem Integration
- wasi_
threading - WASI Threading and Synchronization Primitives
- wasi_
websocket - WASI WebSocket Integration
- wasm_
bundler - WASM Bundler - Generates deployment bundles with JS glue code
- web_
workers - Web Workers API Integration
Macros§
- native_
thread_ local - Thread-local storage implementation
- thread_
local - Thread-local storage (native only)
Structs§
- Transpiler
Agent - Transpiler Agent implementation
- Transpiler
Input - Input from Analysis Agent
- Transpiler
Output - Generated Rust code
Enums§
- Translation
Mode - Translation mode configuration