1mod app_root;
48pub mod approval;
51pub mod chunk;
52mod client;
53pub mod contract;
54mod discovery;
55mod error;
56mod fail_limit;
57mod host_identity;
58pub mod lifecycle;
59#[cfg(feature = "link")]
60pub mod link;
61#[cfg(feature = "remote-loopback")]
63pub mod loopback;
64pub mod mode;
65mod peer;
66pub mod private;
67mod record;
68mod registration;
69#[cfg(feature = "relay")]
70pub mod relay;
71#[cfg(any(feature = "remote", feature = "link"))]
73pub mod remote;
74mod root_cutover;
75mod server;
76mod service;
77pub mod stop;
78mod suite;
79pub mod supervisor;
80mod takeover_watch;
81pub mod ticker;
82mod transport;
83
84pub use client::{Client, ClientConfig, ClientPool, RetryPolicy, DEFAULT_DEADLINE};
85pub use discovery::{
86 adopt_or_spawn, discover_apps_in, discover_apps_in_with, discover_macos, discover_macos_with,
87 discover_windows, discover_windows_with, parse_plist_string, parse_reg_query, plan_host,
88 poll_until, publish_takeover, record_process_matches, resolve_install_dir, resolve_rank,
89 should_request_takeover, spawn_detached, takeover_obliges_yield, try_adopt_or_spawn,
90 try_plan_host, wait_for_claim_winner, AdoptOrSpawn, Completeness, DiscoverOptions, HostPlan,
91 InstalledApp, SpawnClaim, SpawnClaimError, UninstallEntry,
92};
93pub use private::{
94 exit_when_stdin_closes, watch_reader_eof, watch_stdin_eof, PrivateChild, PrivateSecret,
95 SecretError, SECRET_BYTES, SECRET_HEX_LEN,
96};
97pub use app_root::{
100 valid_app_name, AppRoot, AppRootError, LinkNotCreated, MigrateOptions, MigratedLink,
101 MigrationOutcome, MigrationReport, MigrationScope, MigrationState, MigrationStatus,
102 OmittedLink, ReparseKind, SkippedReparsePoint, SkippedSpecial, SpecialKind, WriterLock,
103 MAX_APP_NAME_LEN, MIGRATION_MARKER, MIGRATION_STATE,
104};
105#[allow(deprecated)]
106pub use discovery::{discover_apps, KNOWN_APPS};
107pub use error::{
108 ConnectError, ServiceError, ERROR_BAD_CHUNK, ERROR_CONNECTION_CLOSED, ERROR_FORBIDDEN,
109 ERROR_HOST_HANDOFF, ERROR_HOST_IDENTITY, ERROR_NOT_ALLOWED, ERROR_RATE_LIMITED,
110 ERROR_REQUEST_TOO_LARGE, ERROR_RESPONSE_TOO_LARGE, ERROR_REVISION_CONFLICT,
111 ERROR_SUITE_UNRESOLVED, ERROR_TIMEOUT, ERROR_UNAUTHENTICATED, ERROR_UNAVAILABLE,
112};
113pub use fail_limit::FailLimiter;
114pub use host_identity::{HostExpectation, HostIdentityError, HostIdentityReason, HostProcess};
115pub use lifecycle::{
116 DaemonLifecycle, LifecycleError, Provenance, ERROR_NOT_OWNED, ERROR_RESTART_EXHAUSTED,
117 ERROR_SESSION_RELEASED, ERROR_STALE_GENERATION,
118};
119#[cfg(unix)]
120pub use peer::verify_peer_is_current_user;
121#[cfg(windows)]
122pub use peer::{
123 current_user_sid, owner_only_security_attributes, verify_pipe_peer_is_current_user,
124 verify_pipe_server_is_current_user, OwnerOnlySecurityAttributes,
125};
126pub use peer::{PeerError, PeerIdentity};
127pub use record::{
128 clear_takeover_if_owner, read_live_record, read_record, read_takeover, record_path,
129 takeover_path, try_read_live_record, try_read_record, try_read_takeover, write_atomic,
130 write_takeover, Allowlist, ServiceRecord, TakeoverRequest, PROTOCOL_MAJOR, PROTOCOL_MINOR,
131 RANK_UNKNOWN,
132};
133pub use registration::{
134 MethodDescriptor, Registration, RegistrationError, ServiceIdentity, TransportProfile,
135};
136pub use root_cutover::{
137 CutoverContext, CutoverError, CutoverParticipant, CutoverPhase, CutoverReport, CutoverStep,
138 FsMove, ParticipantError, RecoverOutcome, RetireMode, Retired, RootCutover, RootSelection,
139 RootStatus, Settlement, CUTOVER_RECORD,
140};
141pub use server::{
142 host, host_with_options, CallContext, Emit, Handler, HostError, HostOptions, Hosted,
143 ServiceConfig, ServiceEvent, ServiceStatus, DEFAULT_FRAME_LIMIT, DEFAULT_MAX_CONNECTIONS,
144 DEFAULT_WRITE_TIMEOUT,
145};
146pub use service::{BuildError, Service, ServiceBuilder};
147pub use suite::{
148 refuse_build_tool_real_data, refuse_build_tool_real_data_for_mode, valid_service_name, Suite,
149 SuiteError, ENV_SUITE_ROOT, MAX_SERVICE_NAME_LEN, SHARED_DIR_NAME, SUITE_DIR_NAME,
150};
151pub use transport::{
152 endpoint_candidates, endpoint_for, find_live_endpoint, open_stream, open_stream_expecting,
153 pid_alive, probe_endpoint, try_endpoint_for, Accepted, Conn, EndpointError, Listener, Stream,
154 DEFAULT_MAX_PIPE_INSTANCES, MAX_UNIX_SOCKET_PATH,
155};