Make split modules own their dependency imports
This commit is contained in:
parent
56b54163ae
commit
76de24c75c
1 changed files with 123 additions and 91 deletions
|
|
@ -1,15 +1,28 @@
|
|||
use std::collections::{BTreeMap, BTreeSet};
|
||||
use std::ffi::OsString;
|
||||
use std::fmt;
|
||||
use std::fs::File;
|
||||
use std::io::{Read, Seek, SeekFrom};
|
||||
use std::os::fd::{AsRawFd, OwnedFd};
|
||||
use std::os::unix::ffi::OsStrExt;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
use rustix::fs::{FileType, Mode, OFlags, ResolveFlags, Stat, openat2};
|
||||
|
||||
use crate::identity::HostPath;
|
||||
use crate::records::{
|
||||
EnvironmentReference, NetworkProbeTargetConfigurationV1, NetworkReadinessConfigurationV1,
|
||||
ProfileConfigurationV1, ResolvedAutoApprovalRule, ResolvedDnsProbeTargetV1,
|
||||
ResolvedNetworkProbeTargetV1, ResolvedNetworkReadinessV1, ResolvedVolume,
|
||||
TrustedHostConfigurationV1, VolumeAccess, VolumeKind,
|
||||
};
|
||||
|
||||
use super::validation::{
|
||||
validate_declared_host_path, validate_environment_name, validate_sandbox_path,
|
||||
};
|
||||
use super::{
|
||||
AsRawFd, BTreeMap, BTreeSet, ConfigurationError, ConfigurationErrorKind,
|
||||
ConfigurationLoadRequest, ConfinedPathPlan, ConfinedPathType, EnvironmentReference,
|
||||
EnvironmentValue, File, FileType, HostPath, Ipv4Prefix, MAX_CONFIGURATION_BYTES, Mode,
|
||||
NetworkProbeTargetConfigurationV1, NetworkReadinessConfigurationV1, OFlags, OsStrExt, OsString,
|
||||
OwnedFd, Path, PathBuf, ProfileConfigurationV1, Read, ResolveFlags, ResolvedAutoApprovalRule,
|
||||
ResolvedDnsProbeTargetV1, ResolvedNetworkProbeTargetV1, ResolvedNetworkReadinessV1,
|
||||
ResolvedVolume, Seek, SeekFrom, Stat, TrustedHostConfigurationV1, VolumeAccess, VolumeKind,
|
||||
fmt, openat2,
|
||||
ConfigurationError, ConfigurationErrorKind, ConfigurationLoadRequest, ConfinedPathPlan,
|
||||
ConfinedPathType, EnvironmentValue, Ipv4Prefix, MAX_CONFIGURATION_BYTES,
|
||||
};
|
||||
|
||||
pub(super) fn validate_host_base(path: &Path, name: &str) -> Result<(), ConfigurationError> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue