Files
haibao-tts-cli/Cargo.toml

40 lines
1.3 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[package]
name = "mimo-tts"
version = "0.3.2"
edition = "2021"
[dependencies]
# CLI 参数解析库,使用 derive 模式简化命令行参数定义
clap = { version = "4.5", features = ["derive"] }
# HTTP 客户端,用于调用 Mimo-TTS API
reqwest = { version = "0.12", features = ["json", "stream"] }
# 异步运行时,支持异步 API 调用
tokio = { version = "1", features = ["full"] }
# 序列化/反序列化库,用于 JSON 和 TOML 处理
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Base64 解码,用于解码 API 返回的音频数据
base64 = "0.22"
# TOML 格式解析,用于配置文件
toml = "0.8"
# 获取用户家目录(跨平台)
home = "0.5"
# 错误处理库,提供便捷的 Result 类型
anyhow = "1.0"
# 音频播放库,支持从内存直接播放音频
rodio = "0.19"
# TUI 框架,用于美化 CLI 输出和交互式界面
ratatui = "0.26"
# 终端控制库,用于读取键盘输入和控制终端
crossterm = "0.27"
# 流式处理库,用于 SSE 流式响应
futures = "0.3"
# Tokio 工具库,提供 StreamReader
tokio-util = "0.7"
# 跨平台获取配置目录(如 ~/.config
dirs = "5.0"
# 日期时间处理(日志时间戳)
chrono = "0.4"
# 轻量级 HTTP 服务器(用于调试接口)
tiny_http = "0.12"