Replace lexical Rust fragments with real modules
This commit is contained in:
parent
f8849cdb5f
commit
247819250b
1 changed files with 3302 additions and 2671 deletions
|
|
@ -1,9 +1,7 @@
|
|||
use std::collections::{HashMap, VecDeque};
|
||||
use std::ffi::OsString;
|
||||
use std::fs::File;
|
||||
use std::io::{self, Read, Write};
|
||||
use std::os::fd::AsRawFd;
|
||||
use std::os::unix::ffi::OsStringExt as _;
|
||||
use std::io;
|
||||
use std::path::PathBuf;
|
||||
use std::sync::{Arc, Mutex};
|
||||
use std::time::{Duration, Instant};
|
||||
|
|
@ -653,6 +651,19 @@ impl TerminalDomainStore for HostCoordinatorDomainStore {
|
|||
}
|
||||
}
|
||||
|
||||
include!("terminal/interactive.rs");
|
||||
include!("terminal/engine.rs");
|
||||
include!("terminal/runsc.rs");
|
||||
mod engine;
|
||||
mod interactive;
|
||||
mod runsc;
|
||||
|
||||
use engine::release_physical;
|
||||
use interactive::ActiveTerminal;
|
||||
#[cfg(test)]
|
||||
use interactive::RunscInteractiveControlSession;
|
||||
pub use interactive::{RunscInteractiveSessionExecutor, SessionTerminalEngine};
|
||||
pub use runsc::RunscSessionTerminalFactory;
|
||||
use runsc::{clean_terminal, copy_terminal_state, terminal_snapshot};
|
||||
#[cfg(test)]
|
||||
use runsc::{commit_running_or_cleanup, staged_terminal};
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
|
|
|||
Loading…
Reference in a new issue