daemonbit-core 0.1.1

Cross-platform daemon lifecycle primitives
Documentation
  • Coverage
  • 0%
    0 out of 18 items documented0 out of 14 items with examples
  • Size
  • Source code size: 7.39 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.89 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 16s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • becmer/daemonbit
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • becmer

Cross-platform daemon lifecycle primitives

⚠️ Warning: This project is in early development.

This crate provides the foundational primitives for managing cross-platform daemon lifecycles, with strict support for:

  • Lock enforcement

    • lockfile-based locking on Unix (using flock)
    • mutex-based locking on Windows (using Win32 named mutexes)
  • Runtime directories

    • Per-scope (global/local) runtime directory discovery and fallback
    • Cleanup on drop for temporary directories

The following major components are planned:

  • Cross-platform IPC

    • Unix Domain Socket (UDS)
    • Named Pipe on Windows
  • System integration

    • systemd
    • Windows SCM

These will build on the current abstractions, enabling full lifecycle management of daemons across platforms.

MSRV Policy

This crate's Minimum Supported Rust Version (MSRV) is 1.85, as required by the 2024 edition. Changes to the MSRV will be accompanied by a minor version bump.

The MSRV policy only takes effect beyond 1.85. Once applicable, it will be bound by:

min(sid, stable - 3)

Where sid is the current version of rustc provided by Debian Sid, and stable is the latest stable version of Rust. This bound may be broken in case of a major ecosystem shift or a security vulnerability.

License