Skip to content

Reference

The API reference for Agate is the rustdoc generated from the crate source. Every public type, trait, and function is documented at its definition, so the rustdoc is always in sync with the code.

Build the API docs locally

cargo doc --workspace --no-deps --open

This opens the generated documentation for every crate in the workspace:

  • agate-crypto (crate agate_crypto) — hash / signature / AEAD strategies and factories.
  • agate-audit (crate agate_audit) — the transparency-log aggregate, ports, and adapters.
  • agate-proxy (crate agate_proxy) — the inspection domain and the AG-UI adapter.
  • agate-policy (crate agate_policy) — the policy domain (InspectedActionPolicyDecision).
  • agate-server (crate agate_server) — the composition root.

Where to start reading

Begin at each crate's top-level module documentation (lib.rs), which gives a one-paragraph orientation and links into the layered modules. The Architecture pages mirror that structure in prose.

The CI gate runs just doc, so documentation that fails to build (broken intra-doc links, etc.) breaks the build — the rustdoc stays trustworthy.

Hosted rustdoc

Hosting the generated rustdoc alongside this site (e.g. under a /api/ path) is planned. Until then, generate it locally with the command above.