Expand description
Runtime for applications built with the slave framework.
Generated applications depend on this crate for the pieces every app needs:
environment configuration ([env]), structured logging (logging), an
HTTP server with graceful shutdown (server) and, with the default
database feature, a Turso Cloud database
(database) with schema migrations (migration), and with the default
oidc feature, sign-in through an OpenID Connect provider (oidc): the
app verifies the provider’s ID tokens and never handles passwords. The
testing feature adds a test database and a test identity provider.
Re-exports§
pub use libsql;
Modules§
- database
- Connections to the application’s Turso Cloud database.
- env
- Reading configuration from the process environment and
.envfiles. - logging
- Structured logging via
tracing. - migration
- Schema migrations for the local Turso database.
- oidc
- Sign-in through an OpenID Connect provider.
- server
- HTTP server lifecycle.
Macros§
- migrations
- Lists migration modules, each exposing
pub const MIGRATION: &dyn Migration.
Enums§
- Error
- Errors raised by the slave runtime.
Type Aliases§
- Result
- Shorthand for results returned by the slave runtime.