1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! Postrust Server library.
//!
//! This crate provides the HTTP server implementation for Postrust.
//!
//! ## Features
//!
//! - `graphql` - Serves the GraphQL API at `/v1/graphql`, with Hasura's
//! contract, subscriptions and Apollo Federation.
//! - `admin-ui` - Implies `graphql`, and enables the admin UI with OpenAPI documentation,
//! Swagger UI, Scalar, and GraphQL Playground at `/admin`.
//! - `otel` - OpenTelemetry: traces and metrics exported over OTLP, and the
//! metrics as Prometheus text at `/metrics` on the admin port. Inactive
//! until configured; see [`otel`] and docs/observability.md.
// Every fallible function in this crate returns `postrust_core::Error`, which
// is a wide enum by design: a PostgREST error carries its code, message,
// details and hint. Boxing it to satisfy the lint would put an allocation on
// the error path of every request to save a return slot on the success path.
// `postrust-core` takes the same position at its own crate root; this was
// being restated a dozen times a file instead.
pub use handle_request;
pub use ;
pub use Error;
pub use ;
pub use User;
pub use admin_router;