feedsignal/crates/web/Cargo.toml
Austin Schaefer a8d4599a03
Some checks failed
CI / check (push) Failing after 10s
Replace sqlx with Diesel + diesel-async for compile-time-checked queries
sqlx's query!/query_as! macros only check raw SQL strings against the live
schema; Diesel's table!-derived DSL type-checks query structure itself at
compile time. SQLite has no native async driver, so diesel-async wraps a
blocking SqliteConnection via SyncConnectionWrapper, pooled with bb8.

Migrations move from sqlx's single-file-per-migration format to Diesel's
up.sql/down.sql pairs, run transactionally via diesel_migrations against a
throwaway sync connection at boot (MigrationHarness needs a sync
Connection), giving revertable migrations that sqlx::migrate! doesn't
support.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-21 11:04:38 +02:00

43 lines
1.3 KiB
TOML

[package]
name = "feedsignal-web"
version.workspace = true
edition.workspace = true
license.workspace = true
[dependencies]
feedsignal-core.workspace = true
serde.workspace = true
dioxus = { version = "0.7", features = ["router", "fullstack"] }
# Server-only dependencies: feed polling, the DB/LLM pipeline, and the
# scheduler only need to exist in the native server binary, never in the
# WASM bundle shipped to the browser.
feedsignal-db = { workspace = true, optional = true }
feedsignal-feeds = { workspace = true, optional = true }
feedsignal-llm = { workspace = true, optional = true }
tokio = { workspace = true, optional = true }
tracing = { workspace = true, optional = true }
tracing-subscriber = { workspace = true, optional = true }
anyhow = { workspace = true, optional = true }
uuid = { workspace = true, optional = true }
chrono = { workspace = true, optional = true }
serde_json = { workspace = true, optional = true }
tokio-cron-scheduler = { version = "0.13", optional = true }
[features]
default = ["web"]
web = ["dioxus/web"]
server = [
"dioxus/server",
"dep:feedsignal-db",
"dep:feedsignal-feeds",
"dep:feedsignal-llm",
"dep:tokio",
"dep:tracing",
"dep:tracing-subscriber",
"dep:anyhow",
"dep:uuid",
"dep:chrono",
"dep:serde_json",
"dep:tokio-cron-scheduler",
]