Skip to main content

Crate gws_builder

Crate gws_builder 

Source
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§

ActionSummary
Summary of one available REST method (for whitelisting).
BuilderConfig
Configuration for generate.
GenerationReport
Result of a generate run.
HttpFetcher
Default blocking HTTP implementation using ureq.
MapFetcher
Fetcher that reads from a map of (service, version) -> JSON for tests.
ServiceSpec
One Google API (e.g. Drive v3) to generate.

Enums§

ActionFilter
Which API methods to include in generated code.
BuilderError
Errors produced by gws-builder.
RegenerationPolicy
When to fetch Discovery docs and regenerate Rust sources.

Traits§

DiscoveryFetcher
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).