| Crates.io | amalgam-daemon |
| lib.rs | amalgam-daemon |
| version | 0.6.4 |
| created_at | 2025-08-28 10:49:37.371356+00 |
| updated_at | 2025-09-01 23:47:28.05218+00 |
| description | Runtime daemon for watching and regenerating types for amalgam |
| homepage | https://github.com/seryl/amalgam |
| repository | https://github.com/seryl/amalgam |
| max_upload_size | |
| id | 1814009 |
| size | 83,152 |
Runtime daemon for amalgam that watches for schema changes and regenerates configurations.
amalgam-daemon provides continuous monitoring of schema sources and automatic regeneration of type definitions when changes are detected.
use amalgam_daemon::{Daemon, WatchConfig};
// Configure the daemon
let config = WatchConfig::new()
.watch_directory("./schemas")
.watch_kubernetes(true)
.output_directory("./generated");
// Start the daemon
let daemon = Daemon::new(config);
daemon.run().await?;
# Watch local directory
amalgam-daemon --watch ./schemas --output ./generated
# Watch Kubernetes cluster
amalgam-daemon --k8s --context production --output ./k8s-types
# Watch with specific interval
amalgam-daemon --watch ./schemas --interval 30s