- Add separate momentry_playground binary with distinct configuration - Production (momentry): Port 3002, Redis prefix 'momentry:' - Development (momentry_playground): Port 3003, Redis prefix 'momentry_dev:' - Add SERVER_PORT and REDIS_KEY_PREFIX config via environment variables - Replace all hardcoded Redis key prefixes with configurable values - Create .env.development for playground environment settings - Update .env with production defaults - Add dotenv dependency for environment file loading Configuration isolation allows running both binaries simultaneously without port conflicts or Redis key collisions.
97 lines
1.8 KiB
TOML
97 lines
1.8 KiB
TOML
[package]
|
|
name = "momentry_core"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
authors = ["Momentry Team"]
|
|
description = "Digital asset management system with video analysis and RAG"
|
|
|
|
[dependencies]
|
|
# Core
|
|
anyhow = "1.0"
|
|
thiserror = "1.0"
|
|
tokio = { version = "1", features = ["full"] }
|
|
tracing = "0.1"
|
|
tracing-subscriber = "0.3"
|
|
once_cell = "1.19"
|
|
dotenv = "0.15"
|
|
|
|
# CLI
|
|
clap = { version = "4", features = ["derive"] }
|
|
|
|
# Async
|
|
async-trait = "0.1"
|
|
futures-util = "0.3"
|
|
|
|
# Serialization
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
|
|
# UUID
|
|
sha2 = "0.10"
|
|
hex = "0.4"
|
|
uuid = { version = "1.0", features = ["v4"] }
|
|
|
|
# Security
|
|
subtle = "2.5"
|
|
aes-gcm = "0.10"
|
|
base64 = "0.22"
|
|
|
|
# Cache
|
|
moka = { version = "0.12", features = ["future"] }
|
|
|
|
# Database
|
|
redis = { version = "1.0", features = ["tokio-comp", "connection-manager"] }
|
|
sqlx = { version = "0.8", features = ["runtime-tokio", "postgres", "sqlite", "json", "chrono"] }
|
|
mongodb = { version = "2", features = ["tokio-runtime"] }
|
|
bson = { version = "2", features = ["chrono-0_4"] }
|
|
qdrant-client = "1.7"
|
|
reqwest = { version = "0.12", features = ["json"] }
|
|
|
|
# HTTP Server
|
|
axum = "0.7"
|
|
tower = "0.4"
|
|
|
|
# API Documentation
|
|
utoipa = { version = "4", features = ["axum_extras", "chrono", "uuid"] }
|
|
utoipa-swagger-ui = { version = "7", features = ["axum"] }
|
|
|
|
# File watching
|
|
notify = "6"
|
|
|
|
# Logging
|
|
env_logger = "0.11"
|
|
|
|
# Hash
|
|
md5 = "0.7"
|
|
|
|
# TUI
|
|
ratatui = "0.28"
|
|
crossterm = "0.28"
|
|
|
|
# Terminal
|
|
atty = "0.2"
|
|
|
|
# System
|
|
libc = "0.2"
|
|
|
|
[lib]
|
|
name = "momentry_core"
|
|
path = "src/lib.rs"
|
|
|
|
[features]
|
|
default = []
|
|
player = []
|
|
|
|
[[bin]]
|
|
name = "momentry"
|
|
path = "src/main.rs"
|
|
|
|
[[bin]]
|
|
name = "momentry_player"
|
|
path = "src/player/main.rs"
|
|
|
|
[[bin]]
|
|
name = "momentry_playground"
|
|
path = "src/playground.rs"
|