Skip to content
/ trc Public

This project aims to create a tool that automatically transforms code written in TypeScript into its Rust equivalent. The transpiler analyzes TypeScript syntax and structures, mapping them to similar constructs in Rust, facilitating project migration or cross-learning between both languages.

License

Notifications You must be signed in to change notification settings

nelrafa103/trc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeScript to Rust Transpiler

Descripción de la imagen

This project is a TypeScript to Rust transpiler, designed to convert TypeScript code into equivalent Rust code. It parses the TypeScript source code into an Abstract Syntax Tree (AST) and generates Rust code from it. This tool aims to ease the transition from JavaScript/TypeScript applications to high-performance Rust codebases.

Features

  • Transpiles TypeScript syntax to Rust.
  • Generates an Abstract Syntax Tree (AST) from TypeScript code.
  • Converts common TypeScript features (functions, classes, modules, etc.) to Rust equivalents.
  • Provides options for customizing the output and handling specific TypeScript features like types and async/await.
  • Error handling during transpilation.

Getting Started

Prerequisites

To run this project, you need to have the following installed:

  • Rust: The Rust programming language.
  • Cargo: Rust package manager.

About

This project aims to create a tool that automatically transforms code written in TypeScript into its Rust equivalent. The transpiler analyzes TypeScript syntax and structures, mapping them to similar constructs in Rust, facilitating project migration or cross-learning between both languages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published