hephaestus/crates/hephd/Cargo.toml
Erich Blume fad8f2f4de C2(hephd-self-update): impl release poll + version-check helpers
Add crates/hephd/src/selfupdate.rs: a pure update_available() that
compares the running heph_core::VERSION (e.g. "1.0.3 (sha)") against a
release tag ("v1.0.4") via semver, ignoring the build suffix and v
prefix; plus parse_latest_tag() / fetch_latest_tag() for the forge
releases/latest feed. Decision logic and JSON parsing are unit-tested
against sample payloads; the network fetch is isolated. Adds the semver
workspace dep.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-04 13:36:55 -07:00

50 lines
1.3 KiB
TOML

[package]
name = "hephd"
description = "Hephaestus per-device daemon: owns the local store and serves surfaces over a unix socket."
edition.workspace = true
version.workspace = true
license.workspace = true
publish.workspace = true
authors.workspace = true
rust-version.workspace = true
[lib]
name = "hephd"
path = "src/lib.rs"
[[bin]]
name = "hephd"
path = "src/main.rs"
[dependencies]
heph-core = { path = "../heph-core" }
chrono.workspace = true
tokio.workspace = true
serde.workspace = true
serde_json.workspace = true
anyhow.workspace = true
thiserror.workspace = true
tracing.workspace = true
tracing-subscriber.workspace = true
clap.workspace = true
axum.workspace = true
jsonwebtoken.workspace = true
keyring-core.workspace = true
reqwest.workspace = true
ureq.workspace = true
semver.workspace = true
# The OS credential backend that `oauth.rs` registers as the keyring-core
# default store — exactly one per platform, not the whole keyring meta-crate.
[target.'cfg(target_os = "macos")'.dependencies]
apple-native-keyring-store.workspace = true
[target.'cfg(target_os = "linux")'.dependencies]
dbus-secret-service-keyring-store.workspace = true
[dev-dependencies]
tempfile = "3"
# Auth tests generate a throwaway RSA key + JWKS at runtime (no key in the repo).
rsa = "0.9"
rand = "0.8"
base64 = "0.22"