mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-08 22:38:01 -06:00
Split protocol and leaf surfaces into crates
Move the protocol runtime into unshell-protocol and remote shell leaf code into unshell-leaves so endpoint and TUI roles can compile independently without circular dependencies.
This commit is contained in:
@@ -3,13 +3,11 @@
|
||||
//! This binary listens for the endpoint example, opens one remote shell session, sends a few
|
||||
//! commands, and prints returned hook data until the shell closes.
|
||||
|
||||
#[path = "../../src/leaf/remote_shell/mod.rs"]
|
||||
mod remote_shell;
|
||||
|
||||
use std::error::Error;
|
||||
use std::net::TcpListener;
|
||||
|
||||
use unshell::protocol::tree::{Endpoint, EndpointOutcome, Ingress, LocalEvent};
|
||||
use unshell_leaves::remote_shell;
|
||||
|
||||
fn main() -> Result<(), Box<dyn Error>> {
|
||||
let listener = TcpListener::bind(remote_shell::LISTEN_ADDR)?;
|
||||
|
||||
Reference in New Issue
Block a user