//! Cotton for the Mac: an importer and nothing else. //! //! The Mac reads sources; the personal object decides everything. Each source //! is an [`importer::Importer`]; a run reads past its cursor and hands every //! batch to the [`sink::ObjectSink`], which puts the bytes first //! (`PUT /v1/media/`, after a `HEAD`) and then the rows: the rows the //! importer's own copy decided (messages, calls and photos) through `import_rows`, and plain `create`/`update` acts for //! everything that has no engine. Nothing here matches a handle to a person, //! derives a thread or removes a duplicate. //! //! The one exception is [`music`], a developer verb rather than a source: //! songs have no engine in the object, so it decides a song's rows (the same //! bytes, the same song in a better file, its album and artist) with the //! phone's own `cotton_core::music` rules, as the phone does. //! //! The only state the Mac keeps is its cursors and what each source last //! brought, in `importer.db` ([`store::Store`]); the device token lives in the //! app's keychain and reaches this crate in memory. pub mod app; pub mod approval; pub mod calls; pub mod copy; pub mod device; pub mod files; pub mod hand; pub mod health_import; pub mod ids; pub mod importer; pub mod mail; pub mod meetings; pub mod meetings_job; pub mod music; pub mod object; pub mod old_polls; pub mod older; pub mod outbox; pub mod panel; pub mod patience; pub mod photos; pub mod seal_land; pub mod seal_migrate; pub mod sink; pub mod sources; pub mod store; pub mod summarise; pub mod texts; pub mod vault; pub mod vault_passkey; pub mod whatsapp; pub mod whatsapp_passkey;