Skip to main content

tangled_api/
lib.rs

1//! Low-level, lexicon-generated XRPC client for Tangled and AT Protocol
2//! endpoints.
3//!
4//! - [`lexicon`] is generated from the vendored schemas in `lexicons/` by
5//!   `cargo xtask codegen`: typed records plus free functions returning
6//!   pre-configured [`reqwest::RequestBuilder`]s, so callers can attach
7//!   their own headers/auth before sending.
8//! - [`xrpc`] holds the transport helpers (`send`, `send_unit`,
9//!   `send_bytes`) and the [`xrpc::XrpcError`] type.
10//! - [`types`] holds the few hand-written types the generated code
11//!   references (blob refs).
12//!
13//! Multi-step orchestration (record CRUD flows, ServiceAuth minting, legacy
14//! wire-shape fallbacks) intentionally lives in the consumers of this crate,
15//! not here.
16
17pub mod lexicon;
18pub mod types;
19pub mod xrpc;