dashboard/Cargo.toml
alemidev a4e26d1533 feat: arbitrary sources, background worker
implemented a reliable sqlite storage, a way to
save and load values, a native-only
background worker to fetch data and update values
2022-06-07 00:05:45 +02:00

35 lines
809 B
TOML

[package]
name = "plotter"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[bin]]
name = "plotter_bin"
path = "src/main.rs"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
rand = "0.8"
chrono = { version = "0.4", features = ["wasmbind"] }
eframe = { version = "0.18", features = ["persistence"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# native only dependancies:
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
dirs = "4"
rusqlite = { version = "0.27" }
jq-rs = "0.4"
ureq = { version = "2", features = ["json"] }
# web only dependancies:
[target.'cfg(target_arch = "wasm32")'.dependencies]
console_error_panic_hook = "0.1.6"
tracing-wasm = "0.2"
[env]
JQ_LIB_DIR="/usr/lib"