036390a242
Replace manual schema.sql application with sqlx's built-in migration system. Migrations are embedded at compile time and tracked in the _sqlx_migrations table. Pending migrations run automatically on startup. - Move db/schema.sql → migrations/20260307000000_initial_schema.sql - Remove apply_schema() and split_sql_statements() from db.rs - Add run_migrations() using sqlx::migrate!() macro - Remove docker-compose schema.sql mount (app handles it now) - Enable sqlx "migrate" feature in Cargo.toml Future schema changes: add a new timestamped .sql in migrations/. Closes #190 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
89 lines
2.7 KiB
TOML
Executable File
89 lines
2.7 KiB
TOML
Executable File
[package]
|
|
name = "oxicloud"
|
|
version = "0.5.2"
|
|
edition = "2024"
|
|
default-run = "oxicloud"
|
|
|
|
|
|
[dependencies]
|
|
mimalloc = { version = "0.1.48", default-features = false }
|
|
axum = { version = "0.8.8", features = ["multipart", "http1", "http2", "tokio", "macros"] }
|
|
tokio = { version = "1.49.0", features = ["rt-multi-thread", "macros", "io-util", "net", "time", "sync", "fs"] }
|
|
tokio-util = { version = "0.7.18", features = ["io", "codec", "compat"] }
|
|
tokio-stream = { version = "0.1.18", features = ["fs"] }
|
|
bytes = "1.11.1"
|
|
tempfile = "3.26.0"
|
|
tower = "0.5.3"
|
|
tower-http = { version = "0.6.8", features = ["fs", "compression-gzip", "compression-br", "trace", "cors", "add-extension", "request-id", "set-header", "limit"] }
|
|
flate2 = "1.1.9"
|
|
tracing = "0.1.44"
|
|
tracing-subscriber = { version = "0.3.22", features = ["env-filter"] }
|
|
chrono = { version = "0.4.44", features = ["serde"] }
|
|
http-body = "1.0.1"
|
|
serde = { version = "1.0.228", features = ["derive"] }
|
|
serde_json = "1.0.149"
|
|
futures = "0.3.32"
|
|
async-stream = "0.3.6"
|
|
mime_guess = "2.0.5"
|
|
uuid = { version = "1.21.0", features = ["v4", "serde"] }
|
|
thiserror = "2.0.18"
|
|
mockall = { version = "0.14.0", optional = true }
|
|
sqlx = { version = "0.8.6", features = ["postgres", "runtime-tokio", "tls-rustls", "chrono", "uuid", "json", "migrate"] }
|
|
jsonwebtoken = { version = "10.3.0", features = ["rust_crypto"] }
|
|
argon2 = "0.5.3"
|
|
rand_core = { version = "0.6", features = ["std", "getrandom"] }
|
|
quick-xml = "0.39.2"
|
|
dotenvy = "0.15.7"
|
|
moka = { version = "0.12", features = ["future", "sync"] }
|
|
http-range-header = "0.4"
|
|
image = { version = "0.25", default-features = false, features = ["jpeg", "png", "gif", "webp"] }
|
|
kamadak-exif = "0.5"
|
|
md-5 = "0.10"
|
|
sha2 = "0.10.9"
|
|
blake3 = { version = "1.8.3", features = ["rayon", "mmap"] }
|
|
hex = "0.4.3"
|
|
http-body-util = "0.1.3"
|
|
percent-encoding = "2.3"
|
|
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls-webpki-roots"] }
|
|
base64 = "0.22.1"
|
|
fs2 = "0.4"
|
|
rayon = "1.11"
|
|
infer = "0.19"
|
|
async-compression = { version = "0.4", features = ["tokio", "gzip"] }
|
|
async_zip = { version = "0.0.18", features = ["tokio", "deflate"] }
|
|
dashmap = "6"
|
|
socket2 = { version = "0.6.2", features = ["all"] }
|
|
urlencoding = "2.1.3"
|
|
|
|
[features]
|
|
default = []
|
|
test_utils = ["mockall"]
|
|
integration_tests = []
|
|
|
|
[lints.rust]
|
|
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(integration_tests)'] }
|
|
|
|
[build-dependencies]
|
|
oxc_allocator = "0.116"
|
|
oxc_parser = "0.116"
|
|
oxc_span = "0.116"
|
|
oxc_codegen = "0.116"
|
|
oxc_minifier = "0.116"
|
|
lightningcss = "1.0.0-alpha.70"
|
|
|
|
[profile.release]
|
|
lto = "fat"
|
|
codegen-units = 1
|
|
opt-level = 3
|
|
panic = "abort"
|
|
strip = true
|
|
|
|
[profile.dev]
|
|
opt-level = 1
|
|
debug = true
|
|
|
|
[profile.bench]
|
|
lto = "fat"
|
|
codegen-units = 1
|
|
opt-level = 3
|