Skip to main content

Crate forge

Crate forge 

Source
Expand description

FORGE - The Rust Full-Stack Framework

A batteries-included framework for building full-stack web applications with a Rust backend and generated SvelteKit or Dioxus frontends.

Modules§

prelude
Prelude module for common imports.
testing
Testing utilities for FORGE applications.

Macros§

assert_err
Assert that a result is Err.
assert_err_variant
Assert that an error matches a specific variant.
assert_http_called
Assert that an HTTP call was made.
assert_http_not_called
Assert that an HTTP call was not made.
assert_job_dispatched
Assert that a job was dispatched.
assert_job_not_dispatched
Assert that a job was not dispatched.
assert_ok
Assert that a result is Ok.
assert_workflow_not_started
Assert that a workflow was not started.
assert_workflow_started
Assert that a workflow was started.

Structs§

Forge
The main FORGE runtime.
ForgeBuilder
Builder for configuring the FORGE runtime.
Migration
A single migration with up and optional down SQL.

Functions§

get_internal_sql
All internal FORGE schema SQL concatenated.

Attribute Macros§

cron
Marks a function as a scheduled cron task.
daemon
Marks a function as a long-running daemon.
forge_enum
Marks an enum for database storage as a PostgreSQL ENUM type.
job
Marks a function as a background job.
mcp_tool
Marks a function as an MCP tool.
model
Marks a struct as a FORGE model, generating schema metadata for TypeScript codegen.
mutation
Marks a function as a mutation (transactional write).
query
Marks a function as a query (read-only, cacheable, subscribable).
webhook
Marks a function as a webhook handler.
workflow
Marks a function as a durable workflow.