os_service_fabric
os_service_fabric is a dependency-free, no_std-first crate that provides
a small but expressive framework for modeling and orchestrating operating
system services in Rust (edition 2024).
It focuses on:
- explicit, stateful service lifecycles
- static, allocation-free dependency graphs (DAG)
- health reporting and recovery policies
- a deterministic, allocation-free runtime that drives your services
This crate is designed to complement, but not depend on, OS development crates like:
os_kernel_foundry— kernel and boot orchestrationos_dev_toolkit— developer tooling (logging, diagnostics)os_metal_primitives— low-level MMIO, bitfields, IRQ, and register primitives
os_service_fabric handles a different concern: the service-level fabric
that ties together your memory manager, scheduler, filesystem, device frameworks,
and other subsystems as first-class services with well-defined lifecycles.
Design goals
no_std-first with an optionalstdfeature- zero external dependencies
- deterministic, allocation-free core API
- clear, fully documented traits and types
- CI-friendly: no warnings allowed (including docs)
Quick example
use ;
;
For a complete walkthrough, see docs/MANUAL.md.
Documentation
- API docs: built on docs.rs (
cargo doc --openlocally) - Manual:
docs/MANUAL.md - Additional documents:
docs/lifecycle_design.mddocs/dependency_graph.mddocs/recovery_policies.mddocs/integration_patterns.mddocs/testing_strategy.md
License and attribution
Licensed under the MIT License (see LICENSE).
This crate was created by an AI assistant (ChatGPT) based on an idea and requirements by alisio85.