Skip to main content

netget/
lib.rs

1//! NetGet - LLM-Controlled Network Application
2//!
3//! A Rust CLI application that allows an LLM to control network protocols
4//! and act as a server or client for various protocols (TCP, FTP, etc.).
5
6// The browser build has no OS underneath. On wasm32 the names `tokio` and `crossterm` mean
7// the shim crates under `crates/`: the JS event loop as executor, a virtual loopback network,
8// and crossterm's key/colour types without a terminal. Binding them here, once, at the crate
9// root is what lets every `tokio::spawn` and `KeyCode::Char` in the tree compile unchanged.
10// See crates/netget-tokio-wasm/src/lib.rs for what is real tokio and what is not.
11#[cfg(target_arch = "wasm32")]
12extern crate netget_crossterm_wasm as crossterm;
13#[cfg(target_arch = "wasm32")]
14extern crate netget_tokio_wasm as tokio;
15
16pub mod cli;
17pub mod client;
18pub mod display;
19pub mod docs;
20pub mod easy;
21pub mod events;
22pub mod llm;
23pub mod logging;
24#[cfg(any(feature = "mcp-stdio", feature = "mcp-http"))]
25pub mod mcp_stdio;
26pub mod panic_log;
27pub mod pipe;
28pub mod privilege;
29pub mod protocol;
30pub mod scripting;
31pub mod server;
32pub mod settings;
33pub mod state;
34pub mod system_stats;
35pub mod tui;
36pub mod ui;
37pub mod utils;