Skip to main content

Crate cargo_reclaim

Crate cargo_reclaim 

Source

Re-exports§

pub use active_process::ActiveObservationProvider;
pub use active_process::ActiveObservationScope;
pub use active_process::DISABLE_ACTIVE_PROCESS_DETECTION_ENV;
pub use active_process::ProcfsActiveObservationProvider;
pub use active_process::SysinfoActiveObservationProvider;
pub use active_process::platform_active_observation_provider;
pub use background::BACKGROUND_RUN_LOG_SCHEMA_VERSION;
pub use background::BACKGROUND_SERVICE_STATE_SCHEMA_VERSION;
pub use background::BackgroundApplyEntrySummary;
pub use background::BackgroundApplySummary;
pub use background::BackgroundApplyTotals;
pub use background::BackgroundPlanSummary;
pub use background::BackgroundPlanTotals;
pub use background::BackgroundRunEventKind;
pub use background::BackgroundRunLogError;
pub use background::BackgroundRunLogRecord;
pub use background::BackgroundRunLogResult;
pub use background::BackgroundRunReport;
pub use background::BackgroundRunRequest;
pub use background::BackgroundRunTrigger;
pub use background::BackgroundRunnerError;
pub use background::BackgroundRunnerResult;
pub use background::BackgroundServiceClock;
pub use background::BackgroundServiceCycleRunner;
pub use background::BackgroundServiceError;
pub use background::BackgroundServiceOptions;
pub use background::BackgroundServicePaths;
pub use background::BackgroundServiceResult;
pub use background::BackgroundServiceRunSummary;
pub use background::BackgroundServiceSleeper;
pub use background::BackgroundServiceState;
pub use background::BackgroundServiceStatus;
pub use background::BackgroundSkippedProject;
pub use background::BackgroundTriggerReasonSummary;
pub use background::BackgroundTriggerSummary;
pub use background::DEFAULT_BACKGROUND_CHECK_EVERY;
pub use background::PlatformBackgroundServiceCycleRunner;
pub use background::SystemBackgroundServiceClock;
pub use background::ThreadBackgroundServiceSleeper;
pub use background::append_background_run_log_record;
pub use background::read_background_run_log;
pub use background::read_background_service_state;
pub use background::refresh_background_service_state;
pub use background::run_background_cleanup_cycle;
pub use background::run_background_service;
pub use background::run_background_service_with_runtime;
pub use background::write_background_service_state;
pub use cargo_home::CARGO_HOME_PERSISTED_PLAN_SCHEMA_VERSION;
pub use cargo_home::CARGO_HOME_PLAN_SCHEMA_VERSION;
pub use cargo_home::CARGO_HOME_REPORT_SCHEMA_VERSION;
pub use cargo_home::CargoHomeApplyEntryResult;
pub use cargo_home::CargoHomeApplyEntryStatus;
pub use cargo_home::CargoHomeApplyReport;
pub use cargo_home::CargoHomeApplyTotals;
pub use cargo_home::CargoHomeClass;
pub use cargo_home::CargoHomeEntry;
pub use cargo_home::CargoHomeError;
pub use cargo_home::CargoHomeInput;
pub use cargo_home::CargoHomePathKind;
pub use cargo_home::CargoHomePlan;
pub use cargo_home::CargoHomePlanAction;
pub use cargo_home::CargoHomePlanEntry;
pub use cargo_home::CargoHomePlanRequest;
pub use cargo_home::CargoHomePlanTotals;
pub use cargo_home::CargoHomeProblem;
pub use cargo_home::CargoHomeRecommendation;
pub use cargo_home::CargoHomeReport;
pub use cargo_home::CargoHomeReportRequest;
pub use cargo_home::CargoHomeResolveRequest;
pub use cargo_home::CargoHomeSource;
pub use cargo_home::CargoHomeTotals;
pub use cargo_home::PersistedCargoHomeInput;
pub use cargo_home::PersistedCargoHomePlan;
pub use cargo_home::PersistedCargoHomePlanBody;
pub use cargo_home::PersistedCargoHomePlanEntry;
pub use cargo_home::PersistedCargoHomePlanSnapshot;
pub use cargo_home::PersistedCargoHomePlanTotals;
pub use cargo_home::SaveCargoHomePlanOptions;
pub use cargo_home::build_cargo_home_plan;
pub use cargo_home::build_cargo_home_plan_from_report;
pub use cargo_home::build_cargo_home_report;
pub use cargo_home::classify_cargo_home_relative_path;
pub use cargo_home::ensure_cargo_home_plan_usable;
pub use cargo_home::execute_cargo_home_plan_apply;
pub use cargo_home::inventory_cargo_home;
pub use cargo_home::load_cargo_home_plan_from_path;
pub use cargo_home::persist_cargo_home_plan;
pub use cargo_home::resolve_cargo_home;
pub use cargo_home::save_cargo_home_plan_to_path;
pub use cargo_home::validate_cargo_home_plan_for_apply;
pub use classifier::Classifier;
pub use classifier::classify_target_relative_path;
pub use config::BackgroundConfig;
pub use config::BackgroundMode;
pub use config::CARGO_CONFIG_RECOMMEND_SCHEMA_VERSION;
pub use config::CargoConfigOutputDir;
pub use config::CargoConfigRecommendReport;
pub use config::CargoConfigRecommendRequest;
pub use config::CargoConfigRecommendation;
pub use config::ConfigError;
pub use config::PolicyThresholdConfig;
pub use config::ReclaimConfig;
pub use config::WholeTargetConfig;
pub use config::build_cargo_config_recommend_report;
pub use config::load_config_from_path;
pub use config::parse_config;
pub use disk::DiskFreeSpace;
pub use disk::disk_free_basis_points;
pub use disk::disk_free_space;
pub use error::ReclaimError;
pub use error::ReclaimResult;
pub use executor::ApplyEntryResult;
pub use executor::ApplyEntryStatus;
pub use executor::ApplyReport;
pub use executor::ApplyTotals;
pub use executor::execute_persisted_plan_apply;
pub use executor::validate_persisted_plan_for_apply;
pub use integration::BuildPlanFromScanItemsRequest;
pub use integration::BuildPlanFromScanItemsWithProviderRequest;
pub use integration::active_observation_scope_from_scan_items;
pub use integration::build_plan_from_roots;
pub use integration::build_plan_from_roots_with_active_observation;
pub use integration::build_plan_from_roots_with_active_observation_provider;
pub use integration::build_plan_from_roots_with_options;
pub use integration::build_plan_from_scan_items;
pub use integration::build_plan_from_scan_items_with_active_observation;
pub use integration::build_plan_from_scan_items_with_active_observation_provider;
pub use integration::build_plan_from_scan_items_with_options;
pub use inventory::InventoryOptions;
pub use inventory::planner_candidate_from_target_relative_path;
pub use inventory::planner_candidate_from_target_relative_path_with_context;
pub use inventory::planner_candidates_from_target_root;
pub use inventory::planner_candidates_from_target_root_with_context;
pub use inventory::snapshot_path;
pub use inventory::snapshot_path_parallel;
pub use inventory::snapshot_target_relative_path;
pub use model::ArtifactClass;
pub use model::PLAN_SCHEMA_VERSION;
pub use model::PathKind;
pub use model::PathSnapshot;
pub use model::Plan;
pub use model::PlanAction;
pub use model::PlanEntry;
pub use model::PlanInput;
pub use model::PlanSkip;
pub use model::PlanSkipReason;
pub use model::PlanTotals;
pub use model::TargetEvidence;
pub use persistence::PERSISTED_PLAN_SCHEMA_VERSION;
pub use persistence::PersistedEvidence;
pub use persistence::PersistedInventoryOptions;
pub use persistence::PersistedPathSnapshot;
pub use persistence::PersistedPlan;
pub use persistence::PersistedPlanBody;
pub use persistence::PersistedPlanEntry;
pub use persistence::PersistedPlanInput;
pub use persistence::PersistedPlanSkip;
pub use persistence::PersistedPlanSnapshot;
pub use persistence::PersistedPlanTotals;
pub use persistence::PersistedPlannerOptions;
pub use persistence::PersistedScannerOptions;
pub use persistence::PersistedTimestamp;
pub use persistence::PersistedWholeTargetMode;
pub use persistence::PlanCommandKind;
pub use persistence::PlanId;
pub use persistence::PlanInvocation;
pub use persistence::PlanPersistenceError;
pub use persistence::PlanPersistenceResult;
pub use persistence::SavePlanOptions;
pub use persistence::ensure_plan_usable;
pub use persistence::load_plan_from_path;
pub use persistence::persist_plan;
pub use persistence::save_plan_to_path;
pub use plan_edit::PlanEditError;
pub use plan_edit::PlanEditReport;
pub use plan_edit::PlanEditRequest;
pub use plan_edit::edit_persisted_plan;
pub use planner::ActiveObservation;
pub use planner::CargoTool;
pub use planner::ObservedCargoProcess;
pub use planner::PlannerCandidate;
pub use planner::PlannerOptions;
pub use planner::ProcessView;
pub use planner::TargetContext;
pub use planner::WholeTargetMode;
pub use planner::build_plan;
pub use planner::build_plan_with_active_observation;
pub use planner::build_plan_with_options;
pub use planner::plan_candidate;
pub use planner::plan_candidate_with_active_observation;
pub use planner::plan_candidate_with_options;
pub use policy::PolicyKind;
pub use scanner::CargoConfigProblem;
pub use scanner::CargoConfigUnsupported;
pub use scanner::CargoConfigUnsupportedReason;
pub use scanner::CargoOutputDirs;
pub use scanner::CargoProject;
pub use scanner::ScanItem;
pub use scanner::ScanSkip;
pub use scanner::ScanSkipReason;
pub use scanner::ScannerOptions;
pub use scanner::SkipReason;
pub use scanner::TargetCandidate;
pub use scanner::TargetCandidateKind;
pub use scanner::TargetDirOverride;
pub use scanner::TargetDirOverrideSource;
pub use scanner::classify_target_candidate;
pub use scanner::detect_cargo_project;
pub use scanner::resolve_project_output_dirs;
pub use scanner::resolve_project_output_dirs_with_env;
pub use scanner::scan_roots;
pub use watcher::WatcherDecision;
pub use watcher::WatcherDecisionInput;
pub use watcher::WatcherDecisionState;
pub use watcher::WatcherMode;
pub use watcher::WatcherObservedTarget;
pub use watcher::WatcherThresholds;
pub use watcher::WatcherTriggerReason;
pub use watcher::decide_watcher_thresholds;

Modules§

active_process
background
cargo_home
classifier
config
disk
error
executor
integration
inventory
model
persistence
plan_edit
planner
policy
scanner
watcher

Structs§

GeneratedArtifact
RealSchedulerOperationBackend
Schedule
SchedulerCommandOutput
SchedulerExecutionReport
SchedulerExecutionStep
SchedulerExecutionTotals
SchedulerOperationPlan
SchedulerReport
SchedulerRequest

Enums§

GeneratedArtifactKind
RemoveFileOutcome
SchedulerError
SchedulerExecutionStatus
SchedulerMode
SchedulerOperation
SchedulerPlanStep
SchedulerPlatform
ToolchainHashError

Constants§

DEFAULT_SCHEDULER_INSTANCE_NAME

Traits§

SchedulerOperationBackend
ToolchainHashResolver

Functions§

artifact_kind_label
default_instance_log_dir
default_instance_state_dir
default_log_dir
default_state_dir
execute_scheduler_operation
execution_status_label
generate_scheduler_artifacts
mode_label
operation_label
plan_scheduler_install
plan_scheduler_uninstall
platform_label
policy_label
resolve_command_toolchain_hash_options
resolve_toolchain_hash_options
scheduler_instance_name_from_config

Type Aliases§

ToolchainHashResult