- Create schema.rs utility module with table_name() function - Add schema prefix to all SQL queries in postgres_db.rs - Support dev schema for playground, public for production - Add DATABASE_SCHEMA, MONGODB_DATABASE, QDRANT_COLLECTION config - Fix 40+ functions including videos, chunks, frames, vectors, etc. - Update Cargo dependencies
113 lines
2.1 KiB
TOML
113 lines
2.1 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"
|
|
libc = "0.2"
|
|
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"
|
|
|
|
# Text processing
|
|
jieba-rs = "0.8.1"
|
|
ferrous-opencc = { version = "0.3.1", features = ["s2t-conversion", "t2s-conversion"] }
|
|
|
|
# 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 = { version = "0.7", features = ["multipart"] }
|
|
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
|
|
|
|
[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"
|
|
|
|
[[bin]]
|
|
name = "fix_chunks"
|
|
path = "src/bin/fix_chunks.rs"
|
|
|
|
[[bin]]
|
|
name = "migrate_chinese_text"
|
|
path = "src/bin/migrate_chinese_text.rs"
|
|
|
|
[[bin]]
|
|
name = "test_bm25_simple"
|
|
path = "src/bin/test_bm25_simple.rs"
|