1mod app;
54pub mod auto_route;
55pub use auto_route::collect_auto_routes;
56pub mod auto_schema;
57pub use auto_schema::apply_auto_schemas;
58mod error;
59mod extract;
60mod handler;
61pub mod hateoas;
62pub mod health;
63#[cfg(feature = "http3")]
64pub mod http3;
65pub mod interceptor;
66pub mod json;
67pub mod middleware;
68pub mod multipart;
69pub mod path_params;
70pub mod path_validation;
71mod request;
72mod response;
73mod router;
74mod server;
75pub mod sse;
76pub mod static_files;
77pub mod status;
78pub mod stream;
79pub mod typed_path;
80pub mod validation;
81#[macro_use]
82mod tracing_macros;
83
84#[doc(hidden)]
89pub mod __private {
90 pub use crate::auto_route::AUTO_ROUTES;
91 pub use crate::auto_schema::AUTO_SCHEMAS;
92 pub use linkme;
93 pub use rustapi_openapi;
94}
95
96pub use app::{RustApi, RustApiConfig};
98pub use error::{get_environment, ApiError, Environment, FieldError, Result};
99#[cfg(feature = "cookies")]
100pub use extract::Cookies;
101pub use extract::{
102 AsyncValidatedJson, Body, BodyStream, ClientIp, Extension, FromRequest, FromRequestParts,
103 HeaderValue, Headers, Json, Path, Query, State, Typed, ValidatedJson,
104};
105pub use handler::{
106 delete_route, get_route, patch_route, post_route, put_route, Handler, HandlerService, Route,
107 RouteHandler,
108};
109pub use hateoas::{Link, LinkOrArray, Linkable, PageInfo, Resource, ResourceCollection};
110pub use health::{HealthCheck, HealthCheckBuilder, HealthCheckResult, HealthStatus};
111pub use http::StatusCode;
112#[cfg(feature = "http3")]
113pub use http3::{Http3Config, Http3Server};
114pub use interceptor::{InterceptorChain, RequestInterceptor, ResponseInterceptor};
115#[cfg(feature = "compression")]
116pub use middleware::CompressionLayer;
117pub use middleware::{BodyLimitLayer, RequestId, RequestIdLayer, TracingLayer, DEFAULT_BODY_LIMIT};
118#[cfg(feature = "metrics")]
119pub use middleware::{MetricsLayer, MetricsResponse};
120pub use multipart::{Multipart, MultipartConfig, MultipartField, UploadedFile};
121pub use request::{BodyVariant, Request};
122pub use response::{
123 Body as ResponseBody, Created, Html, IntoResponse, NoContent, Redirect, Response, WithStatus,
124};
125pub use router::{delete, get, patch, post, put, MethodRouter, RouteMatch, Router};
126pub use sse::{sse_response, KeepAlive, Sse, SseEvent};
127pub use static_files::{serve_dir, StaticFile, StaticFileConfig};
128pub use stream::{StreamBody, StreamingBody, StreamingConfig};
129pub use typed_path::TypedPath;
130pub use validation::Validatable;