mirror of
https://git.alemi.dev/dashboard.git
synced 2024-11-12 19:29:18 +01:00
alemi
cbca9f99b3
this mostly has the objective of splitting fetching and visualizing, to be able to daemonize the fetching. I swapped out ureq for reqwest, brought in clap, removed rusqlite for full fledged sea_orm, added tokio. Created migrations in sea_orm to reflect current db schema. Moved data structures defititions out of app, and slimmed down gui code. Entities collections are mostly managed by background workers and made available with watch-channels to the main thread, which can always nonblockingly access data. This is cool but still has some sharp corners. Now plots don't refresh live but at specific interval. I plan to add synchronization channels later on tho.
23 lines
645 B
TOML
23 lines
645 B
TOML
[package]
|
|
name = "migration"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
publish = false
|
|
|
|
[lib]
|
|
name = "migration"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
async-std = { version = "^1", features = ["attributes", "tokio1"] }
|
|
chrono = "0.4.22"
|
|
|
|
[dependencies.sea-orm-migration]
|
|
version = "^0.10.0"
|
|
features = [
|
|
# Enable at least one `ASYNC_RUNTIME` and `DATABASE_DRIVER` feature if you want to run migration via CLI.
|
|
# View the list of supported features at https://www.sea-ql.org/SeaORM/docs/install-and-config/database-and-async-runtime.
|
|
# e.g.
|
|
"runtime-tokio-rustls", # `ASYNC_RUNTIME` feature
|
|
"sqlx-sqlite", # `DATABASE_DRIVER` feature
|
|
]
|