Files
mock-server/Cargo.toml
CNWei d364307131 feat: mock配置迁移至JSON格式并修复body匹配
- 将mock配置从YAML格式迁移到JSON格式
- 修复JSON字符串格式body匹配失败问题
- 添加MCP功能模块
- 更新mock-spec.md规范文档

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-29 09:43:11 +08:00

38 lines
810 B
TOML

[package]
name = "mock_server"
version = "0.1.0"
edition = "2024"
[features]
default = []
mcp = ["rmcp", "schemars"]
[dependencies]
# 核心 Web 框架
axum = "0.8.8"
# 异步运行时
tokio={version = "1.48.0",features = ["full"]}
# 异步文件操作与流处理工具
tokio-util = {version = "0.7.17",features = ["io"]}
futures-util = "0.3.31"
# 序列化
serde = {version = "1.0.228",features = ["derive"]}
serde_json = "1.0.147"
# 物理目录递归扫描工具
walkdir = "2.5.0"
tracing="0.1.44"
tracing-subscriber = "0.3.22"
# 热加载支持(扩展功能)
notify = "8.2.0"
notify-debouncer-mini = "0.6.0"
# MCP Server 支持(可选)
rmcp = { version = "0.1", features = ["server"], optional = true }
schemars = { version = "0.8", optional = true }
[dev-dependencies]
tempfile = "3.24.0"