Skip to main content

Crate yggdrasil

Crate yggdrasil 

Source
Expand description

服务端入口与启动配置

本文件是 Dioxus fullstack 应用的启动入口。 当启用 server feature 时,启动 Axum 服务器并挂载:

  • Dioxus server function(由 serve_dioxus_application 自动注册);
  • 自定义 Axum 路由:图片上传 /api/upload、图片服务 /uploads/{*path}
  • 增量渲染(Incremental Rendering)缓存配置。

当未启用 server feature(例如编译为 WASM 前端)时, 仅调用 dioxus::launch 启动客户端应用。

Modules§

api 🔒
API 层根模块。
auth 🔒
认证辅助模块。
build_info 🔒
编译期注入的构建元信息。
cache 🔒
基于 moka 的内存缓存层。
codemirror_bridge 🔒
CodeMirror 编辑器的 wasm-bindgen 绑定层。
components 🔒
组件模块
context 🔒
前端全局上下文定义。
db 🔒
数据库连接模块。
highlight 🔒
语法高亮模块。
hooks 🔒
共享的 Dioxus Hooks 模块。
infra
mcp 🔒
MCP(Model Context Protocol)服务器。
middleware 🔒
Axum 中间件与启动期纯函数。
models 🔒
数据模型模块。
pages 🔒
前端路由页面模块。
router 🔒
全站路由配置
ssr_cache 🔒
SSR 增量渲染缓存失效。
sysinfo_sampler 🔒
sysinfo 主机指标后台采样。
tasks 🔒
后台任务调度入口。
theme 🔒
主题(浅色 / 深色 / 跟随系统)管理。
tiptap_bridge 🔒
Tiptap 编辑器的 wasm-bindgen 绑定层。
utils 🔒
通用工具函数子模块。
webp 🔒
WebP 编解码模块。
xterm_bridge 🔒
xterm.js 终端桥接:输出专用(无 stdin),配合 SSE 流式渲染容器 stdout/stderr。

Statics§

GLOBAL 🔒

Functions§

main 🔒
程序入口