slave-framework 0.13.0

Runtime for slave apps (a Laravel-inspired Rust framework for MCP-first apps): server lifecycle, config, logging, a SurrealDB database with SurrealQL migrations, and OpenID Connect sign-in
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85"
name = "slave-framework"
version = "0.13.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Runtime for slave apps (a Laravel-inspired Rust framework for MCP-first apps): server lifecycle, config, logging, a SurrealDB database with SurrealQL migrations, and OpenID Connect sign-in"
readme = "README.md"
keywords = [
    "web",
    "framework",
    "axum",
    "mcp",
    "surrealdb",
]
categories = ["web-programming::http-server"]
license = "MIT"
repository = "https://github.com/kewcoder/slave"

[features]
auth = [
    "database",
    "dep:base64",
    "dep:lettre",
    "dep:rand",
    "dep:serde_json",
    "dep:serde",
    "dep:sha2",
    "dep:uuid",
    "dep:webauthn-rs",
]
database = [
    "dep:surrealdb",
    "tokio/time",
]
default = [
    "auth",
    "database",
]
testing = [
    "database",
    "tokio/rt",
    "tokio/sync",
    "tokio/time",
]

[lib]
name = "slave_framework"
path = "src/lib.rs"

[[test]]
name = "database"
path = "tests/database.rs"

[dependencies.axum]
version = "0.8.9"

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.dotenvy]
version = "0.15.7"

[dependencies.lettre]
version = "0.11"
features = [
    "builder",
    "smtp-transport",
    "pool",
    "tokio1-rustls",
    "ring",
    "webpki-roots",
]
optional = true
default-features = false

[dependencies.rand]
version = "0.9"
optional = true

[dependencies.serde]
version = "1"
optional = true

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.sha2]
version = "0.10"
optional = true

[dependencies.surrealdb]
version = "3.3.4"
features = [
    "protocol-ws",
    "rustls",
]
optional = true
default-features = false

[dependencies.thiserror]
version = "2.0.21"

[dependencies.tokio]
version = "1.53.3"
features = [
    "net",
    "signal",
]

[dependencies.tracing]
version = "0.1.44"

[dependencies.tracing-subscriber]
version = "0.3.23"
features = ["env-filter"]

[dependencies.uuid]
version = "1"
optional = true

[dependencies.webauthn-rs]
version = "0.5"
features = [
    "conditional-ui",
    "danger-allow-state-serialisation",
]
optional = true

[dev-dependencies.tokio]
version = "1.53.3"
features = [
    "macros",
    "rt-multi-thread",
]