//! XMP sidecars: `.xmp` (default) or `.xmp` next to the original. //! //! **Write** ([`Session::save_sidecar`], `photo.saveMetadataToFile`, or automatically after every //! change when [`XmpPrefs::auto_write`] is on): rating, colour label, title, caption, copyright, //! creator, keywords, capture time and GPS in the standard namespaces, plus our complete develop //! settings (`lc:settings`, JSON), the pick/reject flag (`lc:flag`) and location (`lc:location`). //! A sidecar is written only beside an original that is an existing file at an absolute path; //! otherwise the save fails. //! //! An existing sidecar is never replaced wholesale (issue #92): LightCraft's properties //! ([`OWNED`], [`OWNED_IF_STATED`]) are merged into it ([`lightcraft_meta::merge_xmp`]) and //! everything else — another editor's `crs:` develop settings, `xmpMM` history, unknown //! namespaces — is kept byte for byte. A sidecar that can't be read as XMP is first copied to //! `.xmp.bak-