pub fn write_to_writer( package: &Package<'_>, writer: impl Write, ) -> Result<(), WriteError>
Writes a package to an impl of Write.