Make split modules own their dependency imports

This commit is contained in:
ms2k 2026-07-19 05:28:45 +09:00
commit 76de24c75c

View file

@ -17,38 +17,25 @@ use lazaret_core::records::{
HostProcessOwnershipSlot, NetworkReadinessAttestation, ProcessOwnershipCommitAck,
StagedProcessOwnership,
};
use lazaret_ignored_workspace::{GitSentry, PRIVATE_ROUTER_ROLE};
use lazaret_linux::capability;
use lazaret_linux::filesystem::{mount_identity, require_write_sealed, sealed_memfd};
use lazaret_linux::process::{
ChildStandardIo, ParentEdge, ProcessOwnershipContext, RetainedProcess, TargetCommand,
child_broker, current_process_identity,
child_broker,
};
use lazaret_state_anchor::{
RuntimeStateAnchorAbsenceAuthority, RuntimeStateAnchorAuthority, RuntimeStateAnchorInherited,
RuntimeStateAnchorMount, StateAnchorLaunchAuthority,
RuntimeStateAnchorAbsenceAuthority, RuntimeStateAnchorMount, StateAnchorLaunchAuthority,
};
use rustix::event::{PollFd, PollFlags, Timespec, poll};
use rustix::fs::{FileType, MemfdFlags, Mode, OFlags, ResolveFlags, fstat, memfd_create, openat2};
use rustix::fs::{FileType, fstat};
use rustix::io::{FdFlags, fcntl_setfd, read, write};
use rustix::pipe::{PipeFlags, pipe_with};
use rustix::process::Signal;
use rustix::thread::CapabilitySet;
use serde::{Deserialize, Serialize};
use crate::network::{
NetworkAttestationContext, NetworkProbeRequest, PreparedNetwork,
enter_generation_filesystem_namespaces, enter_generation_network_namespace, prepare_network,
probe_current_network,
};
use crate::network::{NetworkProbeRequest, PreparedNetwork};
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 runtime::{receive_message, send_message};
use startup::{RuntimeGitRouting, inherited_directory_at, run_supervisor};
pub const PRIVATE_RUNTIME_ROLE: &str = "--lazaret-runtime-supervisor-role";