rusty_stack/platform/mod.rs
1//! Platform module — hardware detection, environment management, and OS abstraction.
2//!
3//! This module provides platform-specific functionality including:
4//! - GPU detection with fallback chain (rocminfo → lspci → sysfs)
5//! - GPU architecture correction from marketing names
6//! - ROCm version detection and path search
7//! - Linux distribution detection and package manager identification
8//! - Environment normalization, home directory resolution, Python interpreter discovery
9//! - Component registry, installed component detection, and version querying
10//! - Linux-specific platform operations
11//! - Windows build support, WSL2 detection, and backend routing
12//! - Windows ↔ WSL2 path translation bridge
13//! - Service launch surfaces with localhost-only binding
14//! - Windows-native control shell using shared Rust contracts
15//!
16//! # Platform-Specific Modules
17//!
18//! - `linux` — Linux-native GPU/ROCm detection (Unix-only internals, cfg-gated)
19//! - `windows` — Backend routing model (cross-platform)
20//! - `wsl` — WSL2 detection, health checks, provisioning guidance (cross-platform)
21//! - `path_bridge` — Windows ↔ WSL2 path translation (cross-platform)
22//! - `service` — Service launch with localhost-only binding and health endpoints
23//! - `control_shell` — Windows-native control shell using shared Rust contracts
24
25pub mod control_shell;
26pub mod detection;
27pub mod environment;
28#[cfg(unix)]
29pub mod linux;
30pub mod path_bridge;
31pub mod registry;
32pub mod service;
33pub mod windows;
34pub mod wsl;
35
36pub use control_shell::*;
37pub use detection::*;
38pub use environment::*;
39#[cfg(unix)]
40pub use linux::*;
41pub use path_bridge::*;
42pub use registry::*;
43pub use service::*;
44pub use windows::*;
45pub use wsl::*;