1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
//! zinit - Process supervisor with dependency management
//!
//! This crate provides a process supervisor similar to systemd but simpler.
//! It includes:
//!
//! - **SDK**: Shared types, configuration, and client libraries
//! - **Server**: The supervisor daemon that manages services
//! - **Client**: CLI interface for interacting with the server
//! - **PID1**: Init process for running as PID 1 in containers/VMs
//!
//! ## Features
//!
//! - `sdk` - Shared types, config, protocol (always included)
//! - `client` - CLI client
//! - `tui` - Terminal UI for client
//! - `repl` - Interactive REPL for client
//! - `server` - Supervisor daemon
//! - `pid1` - PID 1 init process (Linux only)
//! - `async` - Async client support
//!
//! ## Example
//!
//! ```no_run
//! use zinit::{ZinitClient, ServiceConfig};
//!
//! let mut client = ZinitClient::connect_default().unwrap();
//! let services = client.list().unwrap();
//! for name in services {
//! println!("Service: {}", name);
//! }
//! ```
// SDK module - always available
// Re-export commonly used types from SDK at crate root
pub use ;
// Async client (when async feature enabled)
pub use AsyncZinitClient;
// Server module (when server feature enabled)
// Client module (when client feature enabled)