Contributing¶
感谢你对 Atim 的贡献兴趣!
构建项目¶
依赖¶
运行测试¶
# 运行所有测试
cargo test
# Clippy 检查(CI 必需)
cargo clippy --all-targets -- -D warnings
# 格式检查
cargo fmt --all --check
提交规范¶
feat: add new feature
fix: resolve bug
docs: update documentation
refactor: restructure code without changing behavior
test: add or update tests
chore: build, CI, deps, tooling
perf: performance improvement
提交流程¶
- Fork 仓库
- 创建功能分支:
git checkout -b feat/my-feature - 进行修改并添加测试
- 运行
cargo test && cargo clippy --all-targets -- -D warnings && cargo fmt --all --check - 提交:
git commit -m "feat: add my feature" - 发起 Pull Request 到
main
扩展 Atim¶
添加新的 IM 后端¶
实现 ImAdapter trait — 参见 crates/atim-im/src/ 中的示例。
添加新的 Agent¶
实现 AgentParser trait — 参见 crates/atim-core/src/agent/ 中的示例。
许可证¶
贡献的代码将按照 MIT 许可证 授权。