| Crates.io | duende-platform |
| lib.rs | duende-platform |
| version | 0.2.0 |
| created_at | 2026-01-06 14:09:02.142572+00 |
| updated_at | 2026-01-13 12:16:43.305107+00 |
| description | Platform adapters for the Duende daemon framework (systemd, launchd, container, pepita, WOS) |
| homepage | |
| repository | https://github.com/paiml/duende |
| max_upload_size | |
| id | 2025928 |
| size | 181,094 |
Platform adapters for the Duende daemon framework.
Platform-specific implementations for spawning, signaling, and monitoring daemons across:
use duende_platform::{detect_platform, NativeAdapter, Platform, PlatformAdapter};
// Auto-detect platform
let platform = detect_platform();
// Create appropriate adapter
let adapter = NativeAdapter::new();
// Spawn daemon
let handle = adapter.spawn(my_daemon).await?;
// Signal daemon
adapter.signal(&handle, Signal::Term).await?;
Prevents swap deadlock for daemons serving as swap devices:
use duende_platform::{lock_daemon_memory, is_memory_locked};
// Lock all current and future memory allocations
let result = lock_daemon_memory()?;
assert!(is_memory_locked());
| Feature | Description |
|---|---|
native (default) |
Native process adapter |
linux |
systemd integration |
macos |
launchd integration |
container |
Docker/OCI support |
pepita |
MicroVM support |
wos |
WebAssembly OS support |
MIT OR Apache-2.0