KeiSeiKit-1.0/_primitives/_rust/kei-net-wireguard/src/lib.rs
Parfii-bot a4e667de10 KeiSeiKit-public — clean state
Single-commit clean baseline after security scrub of niche-tells,
project codenames, internal jargon, and contributor-email leaks.

Contents:
- 100 Rust crates (_primitives/_rust/)
- 37 agent manifests (_manifests/) + generated specs (_generated/)
- 67 user-invocable skills (skills/)
- 33 hooks (hooks/)
- Composition blocks (_blocks/)
- Documentation (docs/, README.md)
- TS adapter packages (_ts_packages/)
- Assembler (_assembler/)
- Roles (_roles/)
- Templates (_templates/)
- Forgejo CI (.forgejo/)

Author: Denis Parfionovich <info@greendragon.info>

License: see LICENSE.
2026-05-01 12:09:03 +08:00

29 lines
1.2 KiB
Rust

// SPDX-License-Identifier: Apache-2.0
// Copyright 2026 <author org>
//
//! kei-net-wireguard — Wave 9 NetworkMode impl over `wg-quick`/`wg`.
//!
//! Constructor Pattern: 4 cubes
//! * `error` — Error/Result + conversions into `kei_runtime_core::Error`
//! * `runner` — `Runner` shell-out seam + `RunOutput` + `SystemRunner`
//! * `parse` — `parse_wg_dump` (peer rows from `wg show <iface> dump`)
//! * `network` — `WireguardMode` (the `NetworkMode` impl)
//!
//! Brings up a WireGuard interface via `wg-quick up <iface>` (config at
//! `/etc/wireguard/<iface>.conf` or `$WG_CONFIG_PATH`), tears down via
//! `wg-quick down <iface>`, and reports peer status by parsing the
//! tab-separated output of `wg show <iface> dump`. The interface name
//! defaults to `wg0` and may be overridden via `$WG_IFACE`.
//!
//! Mode is private — `is_public()` is `false` (WireGuard is a private
//! mesh, not a public ingress). Mirror of the kei-net-tailscale sibling.
pub mod error;
pub mod network;
pub mod parse;
pub mod runner;
pub use error::{Error, Result};
pub use network::WireguardMode;
pub use parse::parse_wg_dump;
pub use runner::{RunOutput, Runner, SystemRunner};