[package] name = "aw-sync" version = "0.1.0" authors = ["Erik Bjäreholt "] edition = "2021" [lib] name = "aw_sync" path = "src/lib.rs" crate-type = ["cdylib", "rlib"] [[bin]] name = "aw-sync" path = "src/main.rs" [dependencies] log = "0.4" toml = "0.8" chrono = { version = "0.4", features = ["serde"] } serde = "1.0" serde_json = "1.0" reqwest = { version = "0.12", features = ["json", "blocking"] } dirs = "6" gethostname = "0.4.3" # CLI-only dependencies (optional) clap = { version = "4.1", features = ["derive"], optional = true } ctrlc = { version = "3.4.5", optional = true } aw-server = { path = "../aw-server" } aw-models = { path = "../aw-models" } aw-datastore = { path = "../aw-datastore" } aw-client-rust = { path = "../aw-client-rust" } [target.'cfg(target_os="linux")'.dependencies] openssl = { version = "0.10.80", features = ["vendored"] } # https://github.com/ActivityWatch/aw-server-rust/issues/478 [target.'cfg(target_os="android")'.dependencies] jni = { version = "0.21", default-features = false } android_logger = "0.13" [features] default = ["cli"] cli = ["clap", "ctrlc"]