[package] name = "addmon" version = "0.1.0" description = "Alert Monitoring App" authors = ["you"] license = "" repository = "" edition = "2021" rust-version = "1.77.2" default-run = "addmon-desktop" [lib] name = "addmon_lib" crate-type = ["staticlib", "cdylib", "rlib"] [[bin]] name = "addmon-desktop" path = "src/main.rs" required-features = ["desktop"] [[bin]] name = "server" path = "src/bin/server.rs" required-features = ["server"] [features] default = ["desktop"] desktop = [ "tauri", "tauri-build", "tauri-plugin-log", "tauri-plugin-fs", "tauri-plugin-dialog", "tauri-plugin-axum", ] server = ["tokio/full", "tower-http"] [build-dependencies] tauri-build = { version = "2.5.3", features = [], optional = true } [dependencies] serde_json = "1.0" serde = { version = "1.0", features = ["derive"] } log = "0.4" thiserror = "1" axum = "0.8" tower = "0.5" tauri = { version = "2.9.5", features = ["macos-private-api"], optional = true } tauri-plugin-log = { version = "2", optional = true } tauri-plugin-fs = { version = "2", optional = true } tauri-plugin-dialog = { version = "2", optional = true } tauri-plugin-axum = { git = "https://github.com/mcitem/tauri-plugin-axum", optional = true } tokio = { version = "1", features = ["rt-multi-thread", "macros"], default-features = false } tower-http = { version = "0.6", features = ["fs", "cors"], optional = true }