Skip to main content

Crate pylon_runtime

Crate pylon_runtime 

Source

Modules§

account_backend
Persistent account-link stores. Schema mirrors better-auth’s account table so apps migrating between the two see the same field names + meanings.
api_key_backend
Persistent API key stores. SQLite + Postgres backends behind the pylon_auth::api_key::ApiKeyBackend trait.
cache_handlers
Shared cache and pub/sub HTTP request handlers.
cache_server
Standalone cache server.
config
Unified server configuration loaded once at startup.
cron
Cron expression parser and matcher.
datastore
Implements the platform-agnostic DataStore trait for Runtime.
ip_limit
Per-IP concurrent connection limiter used by every streaming endpoint (WS notifier, SSE, shard WS). A single misbehaving peer should not be able to exhaust the server’s thread budget or per-client mutex pool by opening hundreds of long-lived sockets.
job_store
SQLite-backed persistent storage for jobs.
jobs
Background job queue with priority scheduling, retries, and dead-letter support.
log
loro_store
Server-side per-row LoroDoc cache with snapshot persistence.
magic_code_backend
Persistent magic-code stores. Two backends ship today:
metrics
oauth_backend
Persistent OAuth state stores (SQLite + Postgres).
openapi
org_backend
Persistent organization stores. SQLite + Postgres backends behind the pylon_auth::org::OrgBackend trait so orgs / memberships / invites survive a server restart.
pg_loro_store
Postgres-backed CRDT snapshot store.
presence
pubsub
rate_limit
resp
RESP (Redis Serialization Protocol) parser and serializer.
resp_server
RESP-compatible TCP server for the pylon cache.
rooms
scheduler
Cron-based scheduler that enqueues jobs on a recurring schedule.
server
session_backend
SQLite-backed session persistence.
shard_ws
Bidirectional WebSocket server for real-time shards.
sse
tls
verification_backend
Persistent verification-token stores for password reset / email change / magic links. Schema is identical to the in-memory shape; token_prefix is indexed so consume-by-plaintext is fast.
workflow_store
SQLite-backed persistent storage for workflow instances.
workflows
ws

Macros§

log_debug
Emit a structured log at DEBUG level via the global logger.
log_error
Emit a structured log at ERROR level via the global logger.
log_info
Emit a structured log at INFO level via the global logger.
log_warn
Emit a structured log at WARN level via the global logger.

Structs§

Runtime
A manifest-driven runtime that executes CRUD operations against an underlying data store. Two backends are supported:
RuntimeError