Skip to main content

capsule_library/import/
mod.rs

1//! Import: scanning a source, planning against the library index, and executing the plan
2//! (staged or streaming). The pure half — grouping, scope, default-album resolution and the
3//! upload policy — is `capsule_core::import`, re-exported here so callers name one path.
4
5pub(crate) mod camera;
6pub(crate) mod enrichment;
7pub(crate) mod executor;
8pub(crate) mod executor_cancellation;
9pub(crate) mod importers;
10pub(crate) mod planner;
11pub(crate) mod progress;
12pub(crate) mod scanner;
13pub(crate) mod streaming;
14
15pub use camera::{
16    CameraAdapter, CameraDevice, CameraError, CameraObject, CameraReceipt, ObjectFailure,
17    PtpCamera, ReceivedObject, StorageFailure, safe_file_name,
18};
19pub use capsule_core::import::*;
20pub use enrichment::{CAPTION_MAX_BYTES, FAVORITE_RATING, SourceMetadataIndex, sidecar_enrichment};
21pub use executor::{execute, execute_with_source_metadata};
22pub use executor_cancellation::CancellationToken;
23pub use importers::takeout::TakeoutAdapter;
24pub use importers::{
25    AdapterError, ExtractedImport, ExtractedMetadata, FoldSource, GeoPoint, ImportProvider,
26    SourceAdapter, SourceEntry,
27};
28pub use planner::{ImportActionPlan, ImportConfig, ImportDecision, PlanCounts, plan};
29pub use progress::{ImportExecutionSummary, ImportOutcome, ImportProgressEvent};
30pub use scanner::scan as scan_paths;
31pub use streaming::{
32    AssetUploader, StreamHalt, StreamedOutcome, StreamedState, StreamingError, StreamingEvent,
33    StreamingOptions, StreamingReport, UploadHalt, execute_streaming,
34};