TypeGen
A library for generating TypeScript and Flow.js type definitions from Rust structs.
Usage
use TypeGen;
use TypeGenDeclTrait;
Add a typegen.toml file somewhere in any of the parent directories of your source file. Now running tests with TYPEGEN=1 will generate definitions for languages specified in the typegen.toml file.