Expand description
Rust full-stack framework runtime and app declaration API.
Application code declares views, resources, middleware, document defaults, and
build/runtime config through this crate. vorma-build consumes the same declarations
to generate manifests and TypeScript contracts, while RuntimeHost serves the
runtime handler that users mount into their HTTP stack.
Modules§
- middleware
- Optional Tower middleware helpers for Vorma app servers.
Macros§
- app
- Declare a typed local module of Vorma app aliases and declaration macros.
Structs§
- App
- Normalized app ready to become a runtime host.
- AppConfig
- Complete app declaration consumed by both
vorma-buildandRuntimeHost. - Cancel
Token - Host-agnostic cancellation token for one execution context.
- DevWatch
Config - Dev watcher patterns and change classification.
- Document
- Build-safe document shell and default head declaration.
- Document
Attributes - Builder for document element attributes.
- Document
Build Ctx - Context passed to the document builder.
- Document
Builder - Async document builder used by build/live-state and runtime HTML rendering.
- Error
- Simple framework error for app setup and runtime helper failures.
- ExecCtx
- One execution context with task memoization, cancellation, and dependency coalescing.
- Field
Def - Field definition for a TypeScript record.
- Form
Data - Parsed form request body or query-string form input.
- Form
Field - Text field parsed from a form request.
- Form
File - File field parsed from a multipart form request.
- Frontend
Config - Frontend build and static asset configuration.
- Head
Attr - Head element attribute marker for low-level head builder definitions.
- Head
Boolean Attribute - Boolean head element attribute marker.
- Head
Builder - Builder for default head, route head effects, and head dedupe rules.
- Head
Handle - Mutable head-effect handle.
- Head
Inner Html - Trusted inner HTML marker for low-level head builder definitions.
- Head
Self Closing - Whether a low-level head element renders as self-closing.
- HeadTag
- Head element tag marker for low-level head builder definitions.
- Head
Text Content - Escaped text-content marker for low-level head builder definitions.
- Html
Attribute - Helpers for constructing low-level HTML attributes in head/document builders.
- Http
Cookie - Representation of an HTTP cookie.
- Http
Header Name - Represents an HTTP header field name
- Http
Header Value - Represents an HTTP header field value.
- Http
Method - The Request Method (VERB)
- Http
Request - Read-only HTTP request view exposed to Vorma handlers.
- Http
Search Params - Iterator-style view over URL query/search params.
- Http
Status Code - An HTTP status code (
status-codein RFC 9110 et al.). - Middleware
- Request-scoped middleware declaration shared by views and resources.
- Middleware
Ctx - Context passed to middleware.
- Middlewares
- Collection of middleware declarations.
- Params
- Parameters exposed to middleware.
- Path
Config - Public URL and API mount path configuration.
- Prepared
Task - A task with input bound, ready for
ExecCtx::run_parallel. - Resource
- Resource declaration.
- Resource
Ctx - Context passed to resource handlers.
- Resources
- Collection of resource declarations.
- Response
Handle - Mutable response-effect handle.
- Runtime
Host - Runtime service that serves Vorma static assets, resources, and views.
- Safe
Html - Helpers for explicitly trusted HTML fragments.
- Server
Config - Cargo target that produces the user app server.
- System
Task Clock - Native monotonic clock backed by
std::time::Instant. - Task
- Stable typed unit of async work.
- Task
Clock Instant - Monotonic timestamp used for cross-execution-context cache expiry.
- Task
Event - Snapshot emitted by the task runtime.
- TaskId
- Opaque identity for one task definition inside the current process.
- Task
Overrides - Typed task-body substitutions for tests and dry-run task graphs.
- Tasks
- Owns shared cross-execution-context task state.
- Tasks
Options - Configuration for a
Tasksruntime. - TsDrafter
- Builder for supplemental TypeScript declarations.
- TsError
- TypeScript generation error.
- TsExtra
Type - Extra Rust type to include in generated TypeScript output.
- TsGen
Config - Generated TypeScript output configuration.
- Type
Registry - Registry of TypeScript definitions collected while resolving app types.
- View
- Nested view declaration.
- ViewCtx
- Context passed to view handlers.
- View
Error - View error with an optional client-safe message.
- Views
- Collection of nested view declarations.
Enums§
- Html
Element Def - Low-level head element definition part.
- RawTs
Part - Part of a raw TypeScript type expression.
- Resource
Kind - Generated-client classification for a resource.
- Task
Error - Error returned while resolving a task.
- Task
Event Kind - Task-runtime event kind.
- Task
Event Outcome - Coarse task outcome for passive observation.
- Task
Override Mode - Policy for tasks that do not have an explicit test override.
- Task
RunSource - Task body source that performed real work.
- TypeDef
- TypeScript definition emitted into the generated file.
- Type
Phase - Whether a Rust type is being used for serialized output or deserialized input.
- TypeRef
- TypeScript type reference used by Vorma’s generated contract machinery.
- UiVariant
- Supported UI adapter.
Constants§
- CLIENT_
BUILD_ ID_ HEADER_ KEY - Response header carrying the expected Vorma client build ID.
- DEFAULT_
REQUEST_ BODY_ LIMIT - Default maximum request body size collected by Vorma handlers.
- PUBLIC_
STATIC_ OUT_ NAME_ PREFIX - Prefix added to hashed public static asset output filenames.
Traits§
- Task
Clock - Monotonic clock used by
crate::Tasksfor TTL expiry. - Task
Observer - Passive task-runtime observer.
- Type
- Trait implemented by Rust types that can describe their generated TypeScript shape.
- View
Error Client Msg - Provides an optional client-safe message for handler errors.
Functions§
- bind_
addr - Read
PORTand return0.0.0.0:<PORT>for deployment-style app servers. - is_
build - Whether the current process is running as a Vorma build/live-state entry.
- is_dev
- Whether the current process is running an app server under Vorma dev mode.
Type Aliases§
- BoxError
- Boxed application error type used by the default Vorma error parameter.
- Result
- Result type returned by Vorma public helpers.
- Task
Result - Result returned by task functions and task execution.
- TsResult
- Result type for TypeScript generation helpers.
Derive Macros§
- TsGen
- Derive Vorma’s TypeScript generation trait for a serializable Rust type.