Skip to main content

Crate tako_rs_core

Crate tako_rs_core 

Source
Expand description

Internal core for the Tako framework.

This crate hosts the framework primitives shared across all Tako sub-crates: routing, request/response types, body, middleware/plugin traits, extractor traits, state, signals, queue, and a few cross-cutting features such as graphql, grpc, and openapi that interact tightly with the router.

Concrete extractors live in tako-extractors, server bootstrap code in tako-server, streaming/upgrade transports in tako-streams, and concrete middleware/plugin implementations in tako-plugins. Users should depend on the tako-rs umbrella crate, which re-exports everything under the original tako::* paths.

Re-exports§

pub use responder::NOT_FOUND;

Modules§

body
HTTP request and response body handling utilities. HTTP request and response body handling utilities for efficient data processing.
config
Configuration loading from environment variables. Configuration loading from environment variables.
conn_info
Unified per-connection metadata extension shared by every transport. Unified connection-info extension shared by every Tako transport.
extractors
Request data extraction trait + the two extractors (json, params) whose internal types are referenced by the router and route. HTTP request data extraction utilities and traits.
graphiqlgraphiql
GraphiQL UI helpers. GraphiQL HTML responder and helper for Tako.
graphqlasync-graphql
GraphQL support (request extractors, responses, and subscriptions). Async-GraphQL integration for Tako: extractors, responses, and subscriptions.
grpcgrpc
gRPC support for unary RPCs with protobuf serialization. gRPC support for unary RPCs over HTTP/2.
handler
Request handler traits and implementations. Request handler traits and implementations for type-safe HTTP processing.
header
HTTP header types
middleware
Middleware trait + Next execution chain. Middleware system for request and response processing pipelines.
openapiutoipa or vespera
OpenAPI documentation generation integrations (utoipa, vespera). OpenAPI documentation generation integrations.
pluginsplugins
Plugin system trait (TakoPlugin). Plugin system for extending framework functionality with composable modules.
problem
RFC 7807 / RFC 9457 application/problem+json error responses. RFC 7807 / RFC 9457 application/problem+json error responses.
queue
In-memory background job queue with retry, delayed jobs, and dead letter support. In-memory background job queue with named queues, retry policies, and dead letter support.
redirect
Redirection utilities for handling HTTP redirects. Redirect response utilities for handlers.
responder
Response generation utilities and traits. Response generation utilities and trait implementations for HTTP responses.
route
Route definition and matching logic. HTTP route definition and path matching functionality.
router
Request routing and dispatch functionality. HTTP request routing and dispatch functionality.
router_state
Per-router typed state container (instance-scoped, complements state). Per-router typed state container.
signalssignals
In-process signal arbiter for custom events. In-process signal arbiter and dispatch system.
state
Application state management and dependency injection. Global application state management and dependency injection (type-based).
tlsclient or http3 or tls
Shared TLS certificate / key PEM loading helpers. Shared TLS PEM loading helpers used by every TLS-capable Tako transport.
tracingtako-tracing
Distributed tracing integration for observability. Distributed tracing integration for observability and debugging.
types
Core type definitions used throughout the framework. Core type definitions and aliases used throughout the Tako framework.

Structs§

Bytes
A cheaply cloneable and sliceable chunk of contiguous memory.
Full
A body that consists of a single chunk.
Method
The Request Method (VERB)
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).