google-apis-rs / generator

A binding and CLI generator for all google APIs
Apache License 2.0
71 stars 14 forks source link

`map-api-index` subcommand for `mcp` #5

Closed Byron closed 5 years ago

Byron commented 5 years ago

That index allows to generate a Makefile just for the gen subdirectory, to help trigger the generate commands for all libraries/CLIs.

For the generation, liquid is used, which will do no logic at all. The latter is done in Rust, and the outcome is written as json with the whole model laid out.

It's demand-driven, so the template is built, and if something is missing or the transformation is not trivial, Rust will provide it.