Expand description
Static Rust codegen from Google Discovery documents (build-time / build.rs).
See crate docs/BUILD_PLAN.md for design.
Modules§
- discovery
- Serde models for Google Discovery REST documents (owned, no lifetimes).
- ir
- Intermediate representation: Discovery → IR → codegen.
Structs§
- Action
Summary - Summary of one available REST method (for whitelisting).
- Builder
Config - Configuration for
generate. - Generation
Report - Result of a
generaterun. - Http
Fetcher - Default blocking HTTP implementation using
ureq. - MapFetcher
- Fetcher that reads from a map of
(service, version) -> JSONfor tests. - Service
Spec - One Google API (e.g. Drive v3) to generate.
Enums§
- Action
Filter - Which API methods to include in generated code.
- Builder
Error - Errors produced by
gws-builder. - Regeneration
Policy - When to fetch Discovery docs and regenerate Rust sources.
Traits§
- Discovery
Fetcher - Fetches raw Discovery JSON for a service/version pair.
Functions§
- emit_
service_ rust - Emit one service file (
drive.rs, etc.) as formatted source. - emit_
write_ file - generate
- Run fetch → parse → filter → IR → codegen → emit for each configured service.
- list_
available_ actions - Walk Discovery resources and collect a flat list of actions (no codegen).