### Major Changes: - **Rust Migration**: Move api-rs to root directory, rename binary to 'aicard' - **MCP Integration**: Add card tools to ai.gpt MCP server (get_user_cards, draw_card, get_draw_status) - **Daily Limit System**: Implement 2-day interval card drawing limits in API and iOS - **iOS Enhancements**: Add DrawStatusView, backup functionality, and limit integration ### Technical Details: - ai.gpt MCP now has 20 tools including 3 card-related tools - ServiceClient enhanced with missing card API methods - iOS app includes daily limit UI and atproto OAuth backup features - Database migration for last_draw_date field - Complete feature parity between web and iOS implementations 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
58 lines
1.4 KiB
TOML
58 lines
1.4 KiB
TOML
[package]
|
|
name = "aicard"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "ai.card API server - Rust implementation of autonomous card collection system"
|
|
authors = ["syui"]
|
|
|
|
[[bin]]
|
|
name = "aicard"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
# Core Web Framework
|
|
axum = { version = "0.7", features = ["macros", "multipart"] }
|
|
tokio = { version = "1.0", features = ["full"] }
|
|
tower = { version = "0.4", features = ["full"] }
|
|
tower-http = { version = "0.5", features = ["cors", "trace"] }
|
|
|
|
# Database & ORM
|
|
sqlx = { version = "0.7", features = ["runtime-tokio-rustls", "postgres", "sqlite", "uuid", "chrono", "migrate"] }
|
|
uuid = { version = "1.0", features = ["v4", "serde"] }
|
|
|
|
# Serialization & Validation
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
validator = { version = "0.18", features = ["derive"] }
|
|
|
|
# Date/Time
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
|
|
# Authentication & Security
|
|
jsonwebtoken = "9.0"
|
|
bcrypt = "0.15"
|
|
|
|
# HTTP Client (for atproto integration)
|
|
reqwest = { version = "0.11", features = ["json"] }
|
|
|
|
# Configuration
|
|
config = "0.13"
|
|
dotenvy = "0.15"
|
|
|
|
# CLI
|
|
clap = { version = "4.0", features = ["derive"] }
|
|
|
|
# Random (for gacha system)
|
|
rand = "0.8"
|
|
|
|
# Error Handling
|
|
anyhow = "1.0"
|
|
thiserror = "1.0"
|
|
|
|
# Logging
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
|
|
# Development
|
|
serde_yaml = "0.9"
|
|
dirs = "5.0" |