感谢你对 ProxyCast 的关注!本指南帮助你开始贡献。
| 工具 | 版本 |
|---|---|
| Node.js | >= 18 |
| pnpm | >= 8 |
| Rust | >= 1.70 |
| Tauri CLI | >= 2.0 |
# 克隆仓库
git clone https://github.com/aiclientproxy/proxycast.git
cd proxycast
# 安装前端依赖
pnpm install
# 安装 Tauri CLI
cargo install tauri-cli
# 启动开发服务器
pnpm tauri dev
# 构建发布版本
pnpm tauri build
# 检查代码
pnpm lint
# 格式化代码
pnpm format
# 格式化
cargo fmt
# 检查
cargo clippy
使用 Conventional Commits:
feat: 添加新功能
fix: 修复 bug
docs: 更新文档
style: 代码格式调整
refactor: 代码重构
test: 添加测试
chore: 构建/工具变更
示例:
feat(credential): 添加 Qwen 凭证支持
fix(router): 修复路由规则匹配问题
docs: 更新安装指南
在 GitHub 上 Fork 项目到你的账户。
git checkout -b feature/your-feature
git add .
git commit -m "feat: your feature description"
git push origin feature/your-feature
proxycast/
├── src/ # 前端源码
│ ├── components/ # React 组件
│ ├── pages/ # 页面组件
│ ├── hooks/ # 自定义 Hooks
│ ├── lib/ # 工具函数
│ └── styles/ # 样式文件
├── src-tauri/ # Rust 后端
│ ├── src/ # 源码
│ ├── Cargo.toml # 依赖配置
│ └── tauri.conf.json # Tauri 配置
├── docs/ # 文档
└── public/ # 静态资源
# 运行测试
pnpm test
# 运行测试并生成覆盖率
pnpm test:coverage
cd src-tauri
cargo test