Transpiling Typescript into Rust

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • ts-json-schema-generator

    Generate JSON schema from your Typescript sources

  • Maybe this vscode extension can work for you. It can turn Json samples into structs. this can help you turn typescript to Json. Maybe you can automate it.

  • ts2c

    Convert Javascript/TypeScript to C

  • Since you're going to need to manually adjust the output anyway, you could see if chaining ts2c and c2rust does something useful to you.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • quicktype

    Generate types and converters from JSON, Schema, and GraphQL

  • I write a JSON schema and then use Quicktype to generate both the Typescript and Rust types. The documentation isn't great, but it did exactly what I needed it to do.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts