daemon/lib.rs
1// SPDX-License-Identifier: Apache-2.0
2//! Heddle local-mode gRPC daemon.
3//!
4//! Hosts the W2 gRPC services on a Unix-domain socket inside a single repo,
5//! reachable by the same-user CLI for the latency-sensitive agent loop. No
6//! Biscuit, no TLS, no multi-tenant — local-only, single-user, same-process
7//! auth via SO_PEERCRED on Linux and `getpeereid` on macOS.
8//!
9//! The hosted variant (with Postgres, Biscuit, push/pull) lives in the
10//! `server` crate. The two sides share the gRPC service contract from the
11//! `grpc` crate but implement it against different state stores.
12
13pub mod grpc_local_impl;
14
15#[cfg(unix)]
16pub mod local_daemon;