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
|
|
@ -43,6 +43,14 @@ use crate::network::{
|
|||
};
|
||||
use crate::sandbox::RunscCommand;
|
||||
|
||||
use handoff::{build_runtime_handoff, parse_runtime_handoff};
|
||||
use runtime::{
|
||||
attached_runsc_standard_io, fail_network, fail_runtime_components, fail_with_runtime_cleanup,
|
||||
receive_message, require_lifetime_held, runsc_delete_target, runsc_target, send_message,
|
||||
supervise, wait_and_reap, wait_for_runsc_ready,
|
||||
};
|
||||
use startup::{RuntimeGitRouting, inherited_directory_at, run_supervisor};
|
||||
|
||||
pub const PRIVATE_RUNTIME_ROLE: &str = "--lazaret-runtime-supervisor-role";
|
||||
const MAX_CONTROL_MESSAGE: usize = 16 * 1024;
|
||||
const MAX_RUNTIME_HANDOFF_BYTES: usize = 64 * 1024;
|
||||
|
|
@ -605,7 +613,9 @@ struct RuntimeNetworkArguments {
|
|||
network_sidecar_id: NetworkSidecarId,
|
||||
}
|
||||
|
||||
include!("supervision/handoff.rs");
|
||||
include!("supervision/startup.rs");
|
||||
include!("supervision/runtime.rs");
|
||||
include!("supervision/tests.rs");
|
||||
mod handoff;
|
||||
mod runtime;
|
||||
mod startup;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
|
|
|||
Loading…
Reference in a new issue