From 96c0ca4db2be4ad60cf69bc5d18e036d485b23df Mon Sep 17 00:00:00 2001 From: THEtheChad <880190+THEtheChad@users.noreply.github.com> Date: Mon, 9 Nov 2026 17:18:45 -0600 Subject: [PATCH 01/18] test(ui-egui): #3822 the second folder drop waits for the Missing Photos count dont_ask_again_moves_the_next_drop_at_once read the home row's rect one frame after the first move. The move changes the Missing Photos count, which a worker takes: a count already running when beach.png moved finds its old path empty and adds the Missing Photos row, and the recount takes it away. Each shifts every folder row below it by one row, so on a busy machine the second drop, aimed at the rect read before the count landed, went to the folder above (dunes.png moved into the parent folder) or to trip ("Already in"). Waiting longer for home/dunes.png could not help. The test now settles the sidebar before reading the row, as other sidebar tests do, and runs with a slow count so the race happens on every run: it checks that the row stays put for longer than the count takes. Without the settle it fails every time ("home stays where the drop aims"). The move is synchronous, so the 20 s wait from #3834 is replaced by an immediate check that prints the toast, and the drag checks the drop hint before releasing. --- crates/ui-egui/src/tests/folder_drop.rs | 43 +++++++++++++++++++++---- 1 file changed, 36 insertions(+), 7 deletions(-) diff --git a/crates/ui-egui/src/tests/folder_drop.rs b/crates/ui-egui/src/tests/folder_drop.rs index ba1dc5c501..d264013ea6 100644 --- a/crates/ui-egui/src/tests/folder_drop.rs +++ b/crates/ui-egui/src/tests/folder_drop.rs @@ -28,6 +28,11 @@ fn folders(tag: &str) -> (PathBuf, PathBuf, PathBuf) { /// The photos at `paths` in the catalog (`local`: browsed, not in the library), in the grid with /// the sidebar out, tall enough for the Folders section. fn app(paths: &[(PathBuf, bool)]) -> Headless { + app_prepared(paths, |_| {}) +} + +/// [`app`], with `prepare` run on the app before its first frame. +fn app_prepared(paths: &[(PathBuf, bool)], prepare: impl FnOnce(&mut LightcraftApp)) -> Headless { use lightcraft_catalog::{Op, Photo, Source}; let mut session = lightcraft_engine::Session::new().with_fs(); for (path, local) in paths { @@ -37,7 +42,9 @@ fn app(paths: &[(PathBuf, bool)]) -> Headless { p.local = *local; session.catalog.apply(Op::AddPhoto { photo: Box::new(p) }).unwrap(); } - let mut h = Headless::new(LightcraftApp::new(session, Services { png: None, ..Default::default() }), [1300.0, 1600.0], 1.0); + let mut app = LightcraftApp::new(session, Services { png: None, ..Default::default() }); + prepare(&mut app); + let mut h = Headless::new(app, [1300.0, 1600.0], 1.0); let r = h.request("ui.set", json!({"view": "photoGrid", "leftPanel": true, "sidebar": ["folders"]}), std::time::Duration::from_secs(10)); assert_eq!(r["ok"], true, "{r}"); for _ in 0..6 { @@ -317,11 +324,18 @@ fn cancelling_the_question_moves_nothing() { let _ = std::fs::remove_dir_all(&root); } +/// Issue #3822: the folder rows are read for the second drop only once the sidebar settled. The +/// first move changes the Missing Photos count, which a worker takes: a count that was running +/// when the photo moved finds its old place empty and adds the Missing Photos row, and the +/// recount takes it away again. Each moves every folder row below it, so on a busy machine a drop +/// aimed at the row read before the count landed went to the folder above (here, a slow count). #[test] fn dont_ask_again_moves_the_next_drop_at_once() { + let count = std::time::Duration::from_secs(1); let (root, trip, home) = folders("dont-ask"); std::fs::copy(trip.join("beach.png"), trip.join("dunes.png")).unwrap(); - let mut h = app(&[(trip.join("beach.png"), false), (trip.join("dunes.png"), false), (home.join("garden.png"), false)]); + let photos = [(trip.join("beach.png"), false), (trip.join("dunes.png"), false), (home.join("garden.png"), false)]; + let mut h = app_prepared(&photos, |app| app.missing_count_test_delay = Some(count)); click(&mut h, &format!("libraryFolderToggle:{}", folder_key(&root))); let target = folder_row(&h, &home).unwrap(); let beach = id_of(&h, "beach.png"); @@ -335,13 +349,28 @@ fn dont_ask_again_moves_the_next_drop_at_once() { // the next drop goes at once let dunes = id_of(&h, "dunes.png"); h.app.session.selection = lightcraft_engine::Selection::single(lightcraft_catalog::PhotoId(dunes)); - h.step(); + assert!(h.settle(std::time::Duration::from_secs(120)), "the sidebar settles after the move"); let target = folder_row(&h, &home).unwrap(); - drop_beach(&mut h, dunes, target); + // nothing moves the folder rows once settled, however long the count takes + let t0 = std::time::Instant::now(); + while t0.elapsed() < count { + h.step(); + std::thread::sleep(std::time::Duration::from_millis(5)); + } + assert_eq!(folder_row(&h, &home), Some(target), "home stays where the drop aims"); + let from = widget(&h, &format!("thumb:{dunes}")).unwrap().center(); + press(&mut h, from); + glide(&mut h, from, target.center()); + // (synthetic pointer events reach the app one a frame, the press's two included: one more + // frame brings the pointer to the end of the glide) + h.step(); + assert_eq!(hint(&h).as_deref(), Some("Move 1 photo to “home”"), "over home"); + release(&mut h, target.center()); + h.step(); assert!(h.app.ui.dialog.is_none(), "not asked"); - // no question comes first, but the file itself can take a moment on a busy machine - let moved = home.join("dunes.png"); - assert!(h.step_until(std::time::Duration::from_secs(20), |_| moved.is_file()), "moved without a question"); + // the move runs within the frame of the drop: a file not there now never moves, and the + // toast says why + assert!(home.join("dunes.png").is_file(), "moved without a question (toast: {:?})", toast(&h)); let _ = std::fs::remove_dir_all(&root); } From c1fa91c38956ad11bba8e04c2602f1bb1ce7585d Mon Sep 17 00:00:00 2001 From: THEtheChad <880190+THEtheChad@users.noreply.github.com> Date: Tue, 10 Nov 2026 14:37:43 -0600 Subject: [PATCH 02/18] test(ui-egui): #3822 say what the slow count in the folder-drop test catches Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/tests/folder_drop.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/tests/folder_drop.rs b/crates/ui-egui/src/tests/folder_drop.rs index d264013ea6..6bb1afe119 100644 --- a/crates/ui-egui/src/tests/folder_drop.rs +++ b/crates/ui-egui/src/tests/folder_drop.rs @@ -328,7 +328,9 @@ fn cancelling_the_question_moves_nothing() { /// first move changes the Missing Photos count, which a worker takes: a count that was running /// when the photo moved finds its old place empty and adds the Missing Photos row, and the /// recount takes it away again. Each moves every folder row below it, so on a busy machine a drop -/// aimed at the row read before the count landed went to the folder above (here, a slow count). +/// aimed at the row read before the count landed went to the folder above. The slow count here +/// doesn't make the drop miss by itself: it makes the rows move after the first move on every +/// run, and the test checks that `home` stays put once the sidebar settled. #[test] fn dont_ask_again_moves_the_next_drop_at_once() { let count = std::time::Duration::from_secs(1); From 884956e27e48300585c46ef52f753968d41ec43e Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Thu, 12 Nov 2026 00:53:36 +0000 Subject: [PATCH 03/18] Use craft-gainmap from craft-libs for gain map metadata and arithmetic crates/codecs/src/gainmap.rs keeps the JPEG layout (encode_jpeg, read_jpeg, is_gain_map_jpeg) and re-exports GainMapMeta, GainImage, GainMapOptions, ISO_URN, compute and apply from craft-gainmap, which is this file's metadata and arithmetic moved to craft-libs (storytold/craft-libs#904). The tests of the moved code went with it. --- Cargo.lock | 9 + Cargo.toml | 2 + crates/codecs/Cargo.toml | 1 + crates/codecs/src/gainmap.rs | 642 +---------------------------------- docs/file-format-parity.md | 2 +- 5 files changed, 22 insertions(+), 634 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 58e4b706e2..064783fb91 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1199,6 +1199,14 @@ name = "craft-fonts-build" version = "0.1.0" source = "git+https://github.com/storytold/craft-libs?rev=c5a1cbfb5f9049f9270955caffb5bee5997aebf7#c5a1cbfb5f9049f9270955caffb5bee5997aebf7" +[[package]] +name = "craft-gainmap" +version = "0.1.0" +source = "git+https://github.com/storytold/craft-libs?rev=430a908f68819bf23d14fe73ab9b18d8f4fd4e5d#430a908f68819bf23d14fe73ab9b18d8f4fd4e5d" +dependencies = [ + "thiserror 2.0.21", +] + [[package]] name = "craft-heif" version = "0.1.0" @@ -3677,6 +3685,7 @@ version = "0.21.0" dependencies = [ "avif-serialize", "bytemuck", + "craft-gainmap", "craft-heif", "dhat", "image", diff --git a/Cargo.toml b/Cargo.toml index 28720cba93..427c091de8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,6 +17,8 @@ craft-crw = { git = "https://github.com/storytold/craft-libs", rev = "f3b62ec61f # craft-update: app-specific pretend versions apply to startup and manual checks. craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "6e03f65bf45181db77ba6229716e6624db9eb25b", features = ["egui"] } craft-window = { git = "https://github.com/storytold/craft-libs", rev = "c5a1cbfb5f9049f9270955caffb5bee5997aebf7", features = ["egui"] } +# HDR gain maps: ISO 21496-1 and hdrgm metadata, compute and apply (moved from crates/codecs; craft-libs#904). +craft-gainmap = { git = "https://github.com/storytold/craft-libs", rev = "430a908f68819bf23d14fe73ab9b18d8f4fd4e5d" } # internal lightcraft-denoise-core = { path = "crates/denoise-core" } lightcraft-denoise = { path = "crates/denoise", default-features = false } diff --git a/crates/codecs/Cargo.toml b/crates/codecs/Cargo.toml index 2a766aeee7..019009d7c1 100644 --- a/crates/codecs/Cargo.toml +++ b/crates/codecs/Cargo.toml @@ -12,6 +12,7 @@ workspace = true lightcraft-geom = { workspace = true } lightcraft-color = { workspace = true } lightcraft-raster = { workspace = true } +craft-gainmap = { workspace = true } craft-heif = { workspace = true, optional = true } serde = { workspace = true } bytemuck = { workspace = true } diff --git a/crates/codecs/src/gainmap.rs b/crates/codecs/src/gainmap.rs index 9280314067..4a6f485818 100644 --- a/crates/codecs/src/gainmap.rs +++ b/crates/codecs/src/gainmap.rs @@ -1,547 +1,21 @@ -//! Gain map HDR images (ISO 21496-1): an SDR base image plus a gain map that a decoder uses to -//! rebuild the HDR rendition, so the file looks right everywhere and lights up on HDR displays. +//! Gain map JPEGs (ISO 21496-1): an SDR base image plus a gain map that a decoder uses to rebuild +//! the HDR rendition, so the file looks right everywhere and lights up on HDR displays. +//! +//! The metadata formats and the arithmetic ([`compute`], [`apply`], [`GainMapMeta`]) are +//! `craft-gainmap`'s, re-exported here. This module lays the two images out in a JPEG: //! -//! - [`compute`] measures a gain map from an SDR and an HDR rendition of the same picture (linear -//! light, same primaries). Measure it against the base *as written* (decoded from its 8-bit -//! codes), so quantisation in the base is handed back by the gain map. -//! - [`apply`] rebuilds the HDR rendition from a base and its gain map. //! - [`encode_jpeg`] writes a gain map JPEG: the base with an MPF index (CIPA DC-007), the ISO //! 21496-1 marker and Adobe/Google container XMP, followed by the gain map JPEG carrying the ISO //! 21496-1 metadata, the Adobe `hdrgm` XMP (Android, Chrome) and Apple's description of the same //! map (what survives an iMessage send). //! - [`read_jpeg`] finds and decodes the gain map of a gain map JPEG (ours, cameras, Lightroom), //! from its ISO 21496-1 metadata or, failing that, its `hdrgm` XMP. -//! -//! All gains are log2. A decoder recovers `log2(hdr + offset_hdr) − log2(sdr + offset_sdr)` as -//! `min + (max − min) · (code / 255)^(1 / gamma)`, scaled by a weight in 0..1 that depends on how -//! much headroom the display has between `base_headroom` and `alternate_headroom`. + +pub use craft_gainmap::{GainImage, GainMapMeta, GainMapOptions, ISO_URN, apply, compute}; use crate::encode::{EncodeImage, EncodeMeta, Samples, jpeg_app_segments, xmp_segment}; use crate::{ChromaSubsampling, Error, Format, Result, jpeg, jpeg_par}; -/// The ISO 21496-1 namespace that opens its APP2 payloads (NUL terminated). -pub const ISO_URN: &[u8] = b"urn:iso:std:iso:ts:21496:-1\0"; - -/// Fixed denominator for the metadata's rationals: one value per setting, byte-identical output. -const DENOMINATOR: u32 = 1_000_000; - -/// Gain map parameters (ISO 21496-1 / Adobe `hdrgm`). Per-channel arrays repeat the first value -/// when the map is single-channel. -#[derive(Clone, Copy, Debug, PartialEq)] -pub struct GainMapMeta { - /// Three gain channels (R, G, B) instead of one luminance gain. - pub multichannel: bool, - /// The gain applies in the base image's colour space. - pub use_base_colour_space: bool, - /// log2 headroom at which the base is shown as is (0: an SDR base). - pub base_headroom: f32, - /// log2 headroom at which the gain map applies in full. - pub alternate_headroom: f32, - pub min: [f32; 3], - pub max: [f32; 3], - pub gamma: [f32; 3], - pub base_offset: [f32; 3], - pub alternate_offset: [f32; 3], -} - -impl Default for GainMapMeta { - fn default() -> Self { - GainMapMeta { - multichannel: false, - use_base_colour_space: true, - base_headroom: 0.0, - alternate_headroom: 1.0, - min: [0.0; 3], - max: [1.0; 3], - gamma: [1.0; 3], - base_offset: [1.0 / 64.0; 3], - alternate_offset: [1.0 / 64.0; 3], - } - } -} - -impl GainMapMeta { - fn channels(&self) -> usize { - if self.multichannel { 3 } else { 1 } - } - - /// Usable by [`apply`]: finite, positive gammas, max ≥ min, headrooms in order. - pub fn is_valid(&self) -> bool { - let fin = |a: &[f32; 3]| a.iter().all(|v| v.is_finite()); - fin(&self.min) - && fin(&self.max) - && fin(&self.gamma) - && fin(&self.base_offset) - && fin(&self.alternate_offset) - && self.gamma.iter().all(|g| *g > 0.0) - && self.min.iter().zip(&self.max).all(|(a, b)| b >= a) - && self.base_headroom.is_finite() - && self.alternate_headroom.is_finite() - && self.alternate_headroom > self.base_headroom - } - - /// The ISO 21496-1 APP2 payload of the gain map image, URN included. - pub fn to_iso(&self) -> Vec { - let mut p = ISO_URN.to_vec(); - p.extend_from_slice(&0u16.to_be_bytes()); // minimum_version: readers gate on this - p.extend_from_slice(&0u16.to_be_bytes()); // writer_version - let mut flags = 0u8; - if self.multichannel { - flags |= FLAG_MULTICHANNEL; - } - if self.use_base_colour_space { - flags |= FLAG_BASE_COLOUR_SPACE; - } - p.push(flags); - let unsigned = |p: &mut Vec, v: f32| { - let n = (v as f64 * DENOMINATOR as f64).round().clamp(0.0, u32::MAX as f64) as u32; - p.extend_from_slice(&n.to_be_bytes()); - p.extend_from_slice(&DENOMINATOR.to_be_bytes()); - }; - let signed = |p: &mut Vec, v: f32| { - let n = (v as f64 * DENOMINATOR as f64).round().clamp(i32::MIN as f64, i32::MAX as f64) as i32; - p.extend_from_slice(&n.to_be_bytes()); - p.extend_from_slice(&DENOMINATOR.to_be_bytes()); - }; - unsigned(&mut p, self.base_headroom.max(0.0)); - unsigned(&mut p, self.alternate_headroom.max(0.0)); - for c in 0..self.channels() { - signed(&mut p, self.min[c]); - signed(&mut p, self.max[c]); - unsigned(&mut p, self.gamma[c]); - signed(&mut p, self.base_offset[c]); - signed(&mut p, self.alternate_offset[c]); - } - p - } - - /// Parse an ISO 21496-1 payload (the bytes after [`ISO_URN`]). `None` for the versions-only - /// marker a primary image carries, unknown versions, a base that is the HDR rendition, or - /// values no decoder could use. - pub fn from_iso(p: &[u8]) -> Option { - let mut r = Reader { b: p, at: 0 }; - let min_version = r.u16()?; - let _writer_version = r.u16()?; - if min_version != 0 { - return None; - } - let flags = r.u8()?; - if flags & FLAG_BACKWARD != 0 { - return None; - } - let multichannel = flags & FLAG_MULTICHANNEL != 0; - let common = flags & FLAG_COMMON_DENOMINATOR != 0; - let common_d = if common { r.u32()? } else { 0 }; - let unsigned = |r: &mut Reader| -> Option { - let n = r.u32()?; - let d = if common { common_d } else { r.u32()? }; - (d != 0).then(|| (n as f64 / d as f64) as f32) - }; - let signed = |r: &mut Reader| -> Option { - let n = r.u32()? as i32; - let d = if common { common_d } else { r.u32()? }; - (d != 0).then(|| (n as f64 / d as f64) as f32) - }; - let mut m = GainMapMeta { - multichannel, - use_base_colour_space: flags & FLAG_BASE_COLOUR_SPACE != 0, - base_headroom: unsigned(&mut r)?, - alternate_headroom: unsigned(&mut r)?, - ..GainMapMeta::default() - }; - for c in 0..m.channels() { - m.min[c] = signed(&mut r)?; - m.max[c] = signed(&mut r)?; - m.gamma[c] = unsigned(&mut r)?; - m.base_offset[c] = signed(&mut r)?; - m.alternate_offset[c] = signed(&mut r)?; - } - if !multichannel { - m.fill_from_first(); - } - m.is_valid().then_some(m) - } - - fn fill_from_first(&mut self) { - for a in [&mut self.min, &mut self.max, &mut self.gamma, &mut self.base_offset, &mut self.alternate_offset] { - a[1] = a[0]; - a[2] = a[0]; - } - } - - /// The gain parameters from Adobe `hdrgm` XMP (the gain map image's packet), for files - /// without ISO 21496-1 metadata (the first Ultra HDR files). Attributes or `rdf:Seq` lists. - pub fn from_hdrgm_xmp(xmp: &str) -> Option { - if !xmp.contains("hdrgm:") { - return None; - } - let base_rendition_hdr = xmp_values(xmp, "BaseRenditionIsHDR").is_some_and(|v| v.first().is_some_and(|s| s.eq_ignore_ascii_case("true"))); - if base_rendition_hdr { - return None; - } - let get = |name: &str, default: f32| -> Option<([f32; 3], bool)> { - let Some(v) = xmp_values(xmp, name) else { return Some(([default; 3], false)) }; - let f: Vec = v.iter().map(|s| s.trim().parse::().ok()).collect::>()?; - match f.as_slice() { - [a] => Some(([*a; 3], false)), - [a, b, c] => Some(([*a, *b, *c], true)), - _ => None, - } - }; - let (max, m1) = get("GainMapMax", f32::NAN)?; - if max.iter().any(|v| v.is_nan()) { - return None; // the one required parameter - } - let (min, m2) = get("GainMapMin", 0.0)?; - let (gamma, m3) = get("Gamma", 1.0)?; - let (base_offset, m4) = get("OffsetSDR", 1.0 / 64.0)?; - let (alternate_offset, m5) = get("OffsetHDR", 1.0 / 64.0)?; - let (cap_min, _) = get("HDRCapacityMin", 0.0)?; - let max_gain = max.iter().copied().fold(f32::MIN, f32::max); - let (cap_max, _) = get("HDRCapacityMax", max_gain)?; - let m = GainMapMeta { - multichannel: m1 || m2 || m3 || m4 || m5, - use_base_colour_space: true, - base_headroom: cap_min[0].max(0.0), - alternate_headroom: cap_max[0], - min, - max, - gamma, - base_offset, - alternate_offset, - }; - m.is_valid().then_some(m) - } - - /// The gain map image's XMP: the Adobe `hdrgm` parameters (read by Android and Chrome, which - /// ignore the ISO payload) and Apple's description of the same map (what iMessage keeps). - pub fn to_gain_map_xmp(&self) -> String { - let names = ["GainMapMin", "GainMapMax", "Gamma", "OffsetSDR", "OffsetHDR"]; - let values = [&self.min, &self.max, &self.gamma, &self.base_offset, &self.alternate_offset]; - let uniform = |v: &[f32; 3]| !self.multichannel || (v[0] == v[1] && v[1] == v[2]); - let mut s = String::from(XMP_OPEN); - s.push_str(r#"'); - // per-channel values are an rdf:Seq of three, not a comma list: readers parse each item - for (n, v) in names.iter().zip(values) { - if !uniform(v) { - s.push_str(&format!("")); - for x in v { - s.push_str(&format!("{}", num(*x))); - } - s.push_str(&format!("")); - } - } - s.push_str(""); - s.push_str(&self.apple_description()); - s.push_str(XMP_CLOSE); - s - } - - /// Apple's own description of the map (`apdi`, `HDRGainMap`, `HDRToneMap` namespaces). - fn apple_description(&self) -> String { - // 'L008' (8-bit luminance) or '444f'; the stored map must really have that many channels - let format = if self.multichannel { 0x3434_3466u32 } else { 0x4C30_3038 }; - let mut s = String::from( - r#""#, - ); - s.push_str("urn:com:apple:photo:2020:aux:hdrgainmap"); - s.push_str(&format!("{format}{format}")); - s.push_str("131072"); - // linear, not log2: the headroom multiplier itself - s.push_str(&format!("{}", num(self.alternate_headroom.exp2()))); - s.push_str(&format!("{}", num(self.alternate_headroom))); - s.push_str(""); - for c in 0..self.channels() { - s.push_str(&format!( - r#"{}{}{}{}{}"#, - num(self.min[c]), - num(self.max[c]), - num(self.gamma[c]), - num(self.base_offset[c]), - num(self.alternate_offset[c]) - )); - } - s.push_str(""); - s.push_str(&format!("{}", num(self.base_headroom))); - s.push_str("True1"); - s.push_str(""); - s - } -} - -const FLAG_MULTICHANNEL: u8 = 0x80; -const FLAG_BASE_COLOUR_SPACE: u8 = 0x40; -const FLAG_COMMON_DENOMINATOR: u8 = 0x08; -const FLAG_BACKWARD: u8 = 0x04; - -const XMP_OPEN: &str = ""; -const XMP_CLOSE: &str = ""; - -/// A short decimal (up to 6 significant digits, no exponent for ordinary values). -fn num(v: f32) -> String { - if !v.is_finite() { - return "0".into(); - } - let s = format!("{:.6}", v); - let s = s.trim_end_matches('0').trim_end_matches('.'); - if s == "-0" || s.is_empty() { "0".into() } else { s.to_string() } -} - -/// The values of `hdrgm:`: an attribute (`name="v"`) or an element holding an `rdf:Seq`. -fn xmp_values(xmp: &str, name: &str) -> Option> { - let attr = format!("hdrgm:{name}="); - if let Some(i) = xmp.find(&attr) { - let rest = xmp.get(i + attr.len()..)?; - let q = rest.chars().next()?; - if q == '"' || q == '\'' { - let body = rest.get(1..)?; - let end = body.find(q)?; - return Some(vec![body.get(..end)?.to_string()]); - } - } - let open = format!(""); - let close = format!(""); - let i = xmp.find(&open)?; - let body = xmp.get(i + open.len()..)?; - let body = body.get(..body.find(&close)?)?; - let mut out = Vec::new(); - let mut rest = body; - while let Some(a) = rest.find("") { - let after = rest.get(a + 8..)?; - let b = after.find("")?; - out.push(after.get(..b)?.to_string()); - rest = after.get(b..)?; - if out.len() > 3 { - return None; - } - } - if out.is_empty() { - // a plain element value - out.push(body.trim().to_string()); - } - Some(out) -} - -struct Reader<'a> { - b: &'a [u8], - at: usize, -} - -impl Reader<'_> { - fn take(&mut self) -> Option<[u8; N]> { - let s = self.b.get(self.at..self.at.checked_add(N)?)?; - self.at += N; - s.try_into().ok() - } - fn u8(&mut self) -> Option { - self.take::<1>().map(|a| a[0]) - } - fn u16(&mut self) -> Option { - self.take().map(u16::from_be_bytes) - } - fn u32(&mut self) -> Option { - self.take().map(u32::from_be_bytes) - } -} - -/// A gain map image: `channels` (1 or 3) interleaved 8-bit codes. -#[derive(Clone, Debug, PartialEq)] -pub struct GainImage { - pub width: usize, - pub height: usize, - pub channels: usize, - pub data: Vec, -} - -impl GainImage { - /// Bilinear code of channel `c` at gain map coordinates (`x`, `y`) (pixel centres at +0.5). - fn sample(&self, x: f32, y: f32, c: usize) -> f32 { - let (w, h) = (self.width, self.height); - let fx = (x - 0.5).clamp(0.0, (w - 1) as f32); - let fy = (y - 0.5).clamp(0.0, (h - 1) as f32); - let (x0, y0) = (fx as usize, fy as usize); - let (x1, y1) = ((x0 + 1).min(w - 1), (y0 + 1).min(h - 1)); - let (tx, ty) = (fx - x0 as f32, fy - y0 as f32); - let at = |x: usize, y: usize| self.data.get((y * w + x) * self.channels + c).copied().unwrap_or(0) as f32; - let a = at(x0, y0) + (at(x1, y0) - at(x0, y0)) * tx; - let b = at(x0, y1) + (at(x1, y1) - at(x0, y1)) * tx; - a + (b - a) * ty - } -} - -/// How [`compute`] builds the map. -#[derive(Clone, Copy, Debug, PartialEq)] -pub struct GainMapOptions { - /// Downscale factor of the map (1, 2 or 4). - pub scale: usize, - /// Three gains (R, G, B) instead of one luminance gain. Apple's readers want a single - /// channel, so this is off by default. - pub multichannel: bool, - pub gamma: f32, - /// Offsets added to SDR and HDR before the ratio (keep blacks finite and noise quiet). - pub offset: f32, -} - -impl Default for GainMapOptions { - fn default() -> Self { - GainMapOptions { scale: 2, multichannel: false, gamma: 1.0, offset: 1.0 / 64.0 } - } -} - -/// Measure the gain map that turns `sdr` into `hdr` (both `width × height` linear RGB in the same -/// primaries; `luma` = that space's luminance weights). -pub fn compute( - sdr: &[[f32; 3]], - hdr: &[[f32; 3]], - width: usize, - height: usize, - luma: [f32; 3], - o: &GainMapOptions, -) -> Result<(GainImage, GainMapMeta)> { - let n = width.checked_mul(height).ok_or_else(|| Error::Encode("gain map: image too large".into()))?; - if n == 0 || sdr.len() < n || hdr.len() < n { - return Err(Error::Encode("gain map: SDR and HDR renditions must match the image size".into())); - } - if !(matches!(o.scale, 1 | 2 | 4) && o.gamma > 0.0 && o.gamma.is_finite() && o.offset > 0.0 && o.offset.is_finite()) { - return Err(Error::Encode("gain map: scale must be 1, 2 or 4, gamma and offset positive".into())); - } - let s = o.scale; - let (gw, gh) = (width.div_ceil(s), height.div_ceil(s)); - let ch = if o.multichannel { 3 } else { 1 }; - let y = |p: &[f32; 3]| luma[0] * p[0] + luma[1] * p[1] + luma[2] * p[2]; - let ratio = |a: f32, b: f32| ((b.max(0.0) + o.offset) / (a.max(0.0) + o.offset)).log2(); - // block means of the log gains - let mut gains = vec![0f32; gw * gh * ch]; - let mut lo = [f32::MAX; 3]; - let mut hi = [f32::MIN; 3]; - for gy in 0..gh { - for gx in 0..gw { - let mut acc = [0f32; 3]; - let mut count = 0f32; - for yy in gy * s..((gy + 1) * s).min(height) { - for xx in gx * s..((gx + 1) * s).min(width) { - let i = yy * width + xx; - let (Some(a), Some(b)) = (sdr.get(i), hdr.get(i)) else { continue }; - if o.multichannel { - for c in 0..3 { - acc[c] += ratio(a[c], b[c]); - } - } else { - acc[0] += ratio(y(a), y(b)); - } - count += 1.0; - } - } - for c in 0..ch { - let g = if count > 0.0 { acc[c] / count } else { 0.0 }; - let g = if g.is_finite() { g } else { 0.0 }; - gains[(gy * gw + gx) * ch + c] = g; - lo[c] = lo[c].min(g); - hi[c] = hi[c].max(g); - } - } - } - let mut m = GainMapMeta { - multichannel: o.multichannel, - gamma: [o.gamma; 3], - base_offset: [o.offset; 3], - alternate_offset: [o.offset; 3], - ..GainMapMeta::default() - }; - for c in 0..ch { - // the range always includes 0 (no change) so an SDR-only area encodes exactly - m.min[c] = lo[c].min(0.0); - m.max[c] = hi[c].max(m.min[c] + 1e-4); - } - if !o.multichannel { - m.fill_from_first(); - } - m.base_headroom = 0.0; - m.alternate_headroom = m.max.iter().copied().fold(0.0f32, f32::max).max(1e-3); - let data = gains - .iter() - .enumerate() - .map(|(i, g)| { - let c = i % ch; - let norm = ((g - m.min[c]) / (m.max[c] - m.min[c])).clamp(0.0, 1.0); - (norm.powf(o.gamma) * 255.0).round() as u8 - }) - .collect(); - Ok((GainImage { width: gw, height: gh, channels: ch, data }, m)) -} - -/// Rebuild the HDR rendition in place: `base` (`width × height` linear RGB) is replaced by the -/// rendition at `weight` (0 = the base, 1 = the full alternate rendition; a display with headroom -/// `H` uses `(H − base_headroom) / (alternate_headroom − base_headroom)`, clamped). -pub fn apply(base: &mut [[f32; 3]], width: usize, height: usize, gain: &GainImage, m: &GainMapMeta, weight: f32) -> Result<()> { - let n = width.checked_mul(height).ok_or_else(|| Error::Encode("gain map: image too large".into()))?; - if base.len() < n - || gain.width == 0 - || gain.height == 0 - || !matches!(gain.channels, 1 | 3) - || gain.data.len() < gain.width * gain.height * gain.channels - { - return Err(Error::Encode("gain map: base and gain map sizes don't match".into())); - } - if !m.is_valid() { - return Err(Error::Encode("gain map: unusable metadata".into())); - } - let weight = if weight.is_finite() { weight.clamp(0.0, 1.0) } else { 1.0 }; - let (sx, sy) = (gain.width as f32 / width as f32, gain.height as f32 / height as f32); - let inv_gamma = m.gamma.map(|g| 1.0 / g); - for (i, p) in base.iter_mut().enumerate().take(n) { - let (x, y) = ((i % width) as f32 + 0.5, (i / width) as f32 + 0.5); - let (gx, gy) = (x * sx, y * sy); - let mut g = [0f32; 3]; - for (c, gc) in g.iter_mut().enumerate() { - let src = if gain.channels == 3 { c } else { 0 }; - let norm = (gain.sample(gx, gy, src) / 255.0).clamp(0.0, 1.0).powf(inv_gamma[c]); - *gc = m.min[c] + (m.max[c] - m.min[c]) * norm; - } - for c in 0..3 { - let v = (p[c] + m.base_offset[c]) * (g[c] * weight).exp2() - m.alternate_offset[c]; - p[c] = v.max(0.0); - } - } - Ok(()) -} - -/// The primary image's container XMP: `hdrgm:Version` (marks the file as a gain map image for -/// Adobe/Google readers) and the Container directory naming the gain map and its length. -fn primary_description(gain_len: usize) -> String { - format!( - concat!( - r#""#, - r#""#, - r#""#, - r#""#, - r#""# - ), - gain_len - ) -} - -/// `xmp` with `description` added as another `rdf:Description` (a fresh packet when there is -/// none, or when it has no `rdf:RDF` to add to). -fn merge_xmp(xmp: Option<&str>, description: &str) -> String { - if let Some(x) = xmp - && let Some(i) = x.rfind("") - && let (Some(a), Some(b)) = (x.get(..i), x.get(i..)) - { - return format!("{a}{description}{b}"); - } - format!("{XMP_OPEN}{description}{XMP_CLOSE}") -} - /// Offsets within the MPF payload (from "MPF\0"): the endian field, then the index IFD (3 tags). const MPF_ENTRIES_FROM_ENDIAN: usize = 8 + 2 + 3 * 12 + 4; @@ -598,11 +72,9 @@ pub fn encode_jpeg(base: &EncodeImage, gain: &GainImage, m: &GainMapMeta, qualit let gain_segs = vec![(0xE1, xmp_segment(&m.to_gain_map_xmp())?), (0xE2, m.to_iso())]; let gain_jpeg = jpeg_par::encode(&gain.data, gain.width, gain.height, gain.channels, quality, ChromaSubsampling::S444, &gain_segs); - let xmp = merge_xmp(meta.xmp, &primary_description(gain_jpeg.len())); + let xmp = craft_gainmap::primary_xmp(meta.xmp, gain_jpeg.len()); let mut segs = jpeg_app_segments(&EncodeMeta { xmp: Some(&xmp), ..*meta })?; - let mut iso_marker = ISO_URN.to_vec(); - iso_marker.extend_from_slice(&[0, 0, 0, 0]); // versions only: "this image has a gain map" - segs.push((0xE2, iso_marker)); + segs.push((0xE2, craft_gainmap::primary_iso_marker())); segs.push((0xE2, mpf_placeholder())); let mut primary = jpeg_par::encode(data, w, h, base.channels as usize, quality, sub, &segs); @@ -672,77 +144,6 @@ pub fn is_gain_map_jpeg(bytes: &[u8]) -> bool { mod tests { use super::*; - fn meta3() -> GainMapMeta { - GainMapMeta { - multichannel: true, - use_base_colour_space: true, - base_headroom: 0.0, - alternate_headroom: 2.5, - min: [-0.25, -0.5, 0.0], - max: [2.5, 2.25, 2.0], - gamma: [1.0, 1.25, 0.75], - base_offset: [0.015625; 3], - alternate_offset: [0.015625, 0.03125, 0.015625], - } - } - - #[test] - fn iso_metadata_round_trips() { - for m in [GainMapMeta { alternate_headroom: 3.0, max: [3.0; 3], ..GainMapMeta::default() }, meta3()] { - let p = m.to_iso(); - assert!(p.starts_with(ISO_URN)); - let back = GainMapMeta::from_iso(&p[ISO_URN.len()..]).unwrap(); - for (a, b) in [(back.min, m.min), (back.max, m.max), (back.gamma, m.gamma), (back.alternate_offset, m.alternate_offset)] { - for c in 0..3 { - assert!((a[c] - b[c]).abs() < 1e-6, "{a:?} {b:?}"); - } - } - assert_eq!(back.multichannel, m.multichannel); - assert!((back.alternate_headroom - m.alternate_headroom).abs() < 1e-6); - } - } - - #[test] - fn iso_common_denominator_and_rejections() { - // common-denominator form, single channel: d = 4, headrooms 0 and 2, min 0, max 2, gamma 1, offsets 0 - let mut p = vec![0, 0, 0, 0, FLAG_COMMON_DENOMINATOR]; - for v in [4u32, 0, 8, 0, 8, 4, 0, 0] { - p.extend_from_slice(&v.to_be_bytes()); - } - let m = GainMapMeta::from_iso(&p).unwrap(); - assert_eq!((m.alternate_headroom, m.max[2], m.gamma[1]), (2.0, 2.0, 1.0)); - // versions only (a primary image's marker), unknown version, truncated, backward - assert!(GainMapMeta::from_iso(&[0, 0, 0, 0]).is_none()); - assert!(GainMapMeta::from_iso(&[0, 1, 0, 0, 0]).is_none()); - assert!(GainMapMeta::from_iso(&p[..p.len() - 1]).is_none()); - let mut back = p.clone(); - back[4] |= FLAG_BACKWARD; - assert!(GainMapMeta::from_iso(&back).is_none()); - // a zero denominator is rejected, not divided by - let mut z = p.clone(); - z[5..9].copy_from_slice(&0u32.to_be_bytes()); - assert!(GainMapMeta::from_iso(&z).is_none()); - } - - #[test] - fn hdrgm_xmp_round_trips_including_per_channel_sequences() { - for m in [GainMapMeta { alternate_headroom: 2.0, max: [2.0; 3], ..GainMapMeta::default() }, meta3()] { - let x = m.to_gain_map_xmp(); - assert!(x.contains("apdi:AuxiliaryImageType")); - if m.multichannel { - assert!(x.contains("2.5"), "{x}"); - } - let back = GainMapMeta::from_hdrgm_xmp(&x).unwrap(); - assert_eq!(back.multichannel, m.multichannel); - for c in 0..3 { - assert!((back.max[c] - m.max[c]).abs() < 1e-5 && (back.gamma[c] - m.gamma[c]).abs() < 1e-5); - } - assert!((back.alternate_headroom - m.alternate_headroom).abs() < 1e-5); - } - assert!(GainMapMeta::from_hdrgm_xmp("").is_none(), "no GainMapMax"); - assert!(GainMapMeta::from_hdrgm_xmp("hdrgm:GainMapMax=\"nope\"").is_none()); - } - fn renditions(w: usize, h: usize) -> (Vec<[f32; 3]>, Vec<[f32; 3]>) { // a ramp: SDR rolls off at 1, HDR keeps going to 6 let hdr: Vec<[f32; 3]> = (0..w * h) @@ -765,31 +166,6 @@ mod tests { (sdr, hdr) } - #[test] - fn compute_then_apply_recovers_the_hdr_rendition() { - let (w, h) = (64, 8); - let (sdr, hdr) = renditions(w, h); - for multichannel in [false, true] { - let o = GainMapOptions { scale: 1, multichannel, ..GainMapOptions::default() }; - let (g, m) = compute(&sdr, &hdr, w, h, [0.2126, 0.7152, 0.0722], &o).unwrap(); - assert!(m.is_valid() && m.alternate_headroom > 1.0); - let mut out = sdr.clone(); - apply(&mut out, w, h, &g, &m, 1.0).unwrap(); - for (a, b) in out.iter().zip(&hdr) { - for c in 0..3 { - // 8-bit codes over the gain range: within ~2 % in linear light - assert!((a[c] - b[c]).abs() <= 0.03 * b[c] + 0.01, "{multichannel}: {a:?} vs {b:?}"); - } - } - // weight 0 is the base - let mut base = sdr.clone(); - apply(&mut base, w, h, &g, &m, 0.0).unwrap(); - for (a, b) in base.iter().zip(&sdr) { - assert!((a[0] - b[0]).abs() < 1e-5); - } - } - } - #[test] fn a_gain_map_wider_than_a_jpeg_allows_is_refused() { let base = [0u8; 3]; diff --git a/docs/file-format-parity.md b/docs/file-format-parity.md index f72a9b235a..7f82adf2e9 100644 --- a/docs/file-format-parity.md +++ b/docs/file-format-parity.md @@ -27,7 +27,7 @@ import and export formats. Ours come from `crates/codecs/src/sniff.rs`, `crates/ | DNG (from raw) | ✅ | ✅ incl. lossy, embedded original | ✅ | ✅ uncompressed, LJ92, Deflate or lossy (JPEG tiles, optional long edge); ⬜ embedded original | `crates/raw/src/dngwrite.rs` | | Render to DNG (15.5) | — | ✅ | — | 🟡 export format "Rendered DNG" (linear float DNG, edit baked in); not yet added to the catalog | `crates/raw/src/dngwrite.rs` (`write_rendered_dng`) | | Original + sidecar | — | ✅ | — | ✅ | | -| HDR gain map JPEG (ISO 21496-1) | ✅ | ✅ | ✅ (gain map read) | ✅ | `crates/codecs/src/gainmap.rs` | +| HDR gain map JPEG (ISO 21496-1) | ✅ | ✅ | ✅ (gain map read) | ✅ | `crates/codecs/src/gainmap.rs` (JPEG layout), `craft-gainmap` (metadata, compute, apply) | | PQ / HLG HDR | ✅ | ✅ AVIF, JXL, TIFF | — | 🟡 PQ AVIF, PQ JPEG XL, float TIFF; no HLG | | | Contact sheet / print PDF | — | ✅ (Print module: PDF / JPEG / printer) | — | 🟡 paginated contact-sheet PDF (A4 / Letter, 150 dpi, sRGB) | `crates/engine/src/contact_sheet.rs` | | Video (MP4, MOV, AVCHD…) | ✅ playback, trim, edit | ✅ export | 🟡 catalogued (kind, duration) | ⬜ | see video gap | From 69cd98a5c2749e6f56ebf73d6a71cd8c2afdbbc1 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Thu, 12 Nov 2026 01:05:29 +0000 Subject: [PATCH 04/18] Read the PSD header and image resources with craft-psd lightcraft-meta's EXIF/XMP scan and lightcraft-codecs' PSD probe and decoder take the header, colour mode data and image resources from craft_psd::Head (storytold/craft-libs#885). The merged-image decoder and the flat writer stay. --- Cargo.lock | 32 +++++++++ Cargo.toml | 2 + crates/codecs/Cargo.toml | 1 + crates/codecs/src/psd.rs | 145 ++++++++++++++++++--------------------- crates/meta/Cargo.toml | 1 + crates/meta/src/psd.rs | 63 ++--------------- 6 files changed, 108 insertions(+), 136 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 064783fb91..2660670522 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1239,6 +1239,16 @@ dependencies = [ "writeable", ] +[[package]] +name = "craft-psd" +version = "0.1.0" +source = "git+https://github.com/storytold/craft-libs?rev=430a908f68819bf23d14fe73ab9b18d8f4fd4e5d#430a908f68819bf23d14fe73ab9b18d8f4fd4e5d" +dependencies = [ + "encoding_rs", + "flate2", + "thiserror 2.0.21", +] + [[package]] name = "craft-tiff" version = "0.1.0" @@ -1796,6 +1806,20 @@ dependencies = [ "bytemuck", ] +[[package]] +name = "encoding_rs" +version = "0.8.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "89253175e704ab869b04f9db224d38630e0211a53841a79181deae0889e169f5" +dependencies = [ + "cfg-if", + "core_detect", + "multiversion_no_op", + "rustversion", + "scopeguard", + "simdutf8", +] + [[package]] name = "endi" version = "1.1.1" @@ -3687,6 +3711,7 @@ dependencies = [ "bytemuck", "craft-gainmap", "craft-heif", + "craft-psd", "dhat", "image", "image-webp", @@ -3930,6 +3955,7 @@ version = "0.21.0" dependencies = [ "chrono", "craft-heif", + "craft-psd", "craft-tiff", "lightcraft-geom", "proptest", @@ -4309,6 +4335,12 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "multiversion_no_op" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "743fb55ba31b18fb1ecef6bdc9aa2743314978ac084044301a7eee33fb99a20d" + [[package]] name = "naga" version = "30.0.1" diff --git a/Cargo.toml b/Cargo.toml index 427c091de8..26d0f84822 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,6 +19,8 @@ craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0. craft-window = { git = "https://github.com/storytold/craft-libs", rev = "c5a1cbfb5f9049f9270955caffb5bee5997aebf7", features = ["egui"] } # HDR gain maps: ISO 21496-1 and hdrgm metadata, compute and apply (moved from crates/codecs; craft-libs#904). craft-gainmap = { git = "https://github.com/storytold/craft-libs", rev = "430a908f68819bf23d14fe73ab9b18d8f4fd4e5d" } +# PSD/PSB: the header, colour mode data and image resources (craft-libs#885). +craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "430a908f68819bf23d14fe73ab9b18d8f4fd4e5d" } # internal lightcraft-denoise-core = { path = "crates/denoise-core" } lightcraft-denoise = { path = "crates/denoise", default-features = false } diff --git a/crates/codecs/Cargo.toml b/crates/codecs/Cargo.toml index 019009d7c1..15b7fb0557 100644 --- a/crates/codecs/Cargo.toml +++ b/crates/codecs/Cargo.toml @@ -13,6 +13,7 @@ lightcraft-geom = { workspace = true } lightcraft-color = { workspace = true } lightcraft-raster = { workspace = true } craft-gainmap = { workspace = true } +craft-psd = { workspace = true } craft-heif = { workspace = true, optional = true } serde = { workspace = true } bytemuck = { workspace = true } diff --git a/crates/codecs/src/psd.rs b/crates/codecs/src/psd.rs index 7cccec0f8f..f0422edc13 100644 --- a/crates/codecs/src/psd.rs +++ b/crates/codecs/src/psd.rs @@ -40,36 +40,46 @@ impl<'a> Rd<'a> { } } +/// The header, colour mode data and image resources (`craft-psd`), with a reader at the layer and mask section. +struct Start<'a> { + psb: bool, + channels: usize, + width: usize, + height: usize, + depth: u16, + mode: u16, + head: craft_psd::Head, + r: Rd<'a>, +} + +fn start<'a>(bytes: &'a [u8], opts: &DecodeOptions) -> Result> { + // the size limit first, from the header's fixed fields, so an oversized file is `TooLarge` as for other formats + if let (Some(&[h0, h1, h2, h3]), Some(&[w0, w1, w2, w3])) = (bytes.get(14..18), bytes.get(18..22)) { + check_size(F, u64::from(u32::from_be_bytes([w0, w1, w2, w3])), u64::from(u32::from_be_bytes([h0, h1, h2, h3])), opts)?; + } + let head = craft_psd::Head::from_bytes(bytes).map_err(|e| match e { + craft_psd::PsdError::UnexpectedEof { .. } => err("truncated"), + e => err(&e.to_string()), + })?; + let h = &head.header; + check_size(F, u64::from(h.width), u64::from(h.height), opts)?; + let p = usize::try_from(head.layer_section_offset).map_err(|_| err("truncated"))?; + Ok(Start { + psb: h.version.is_psb(), + channels: usize::from(h.channels), + width: h.width as usize, + height: h.height as usize, + depth: h.depth, + mode: h.color_mode.as_u16(), + r: Rd { b: bytes, p }, + head, + }) +} + pub(crate) fn decode(bytes: &[u8], opts: &DecodeOptions) -> Result { - let mut r = Rd { b: bytes, p: 0 }; - if r.take(4)? != b"8BPS" { - return Err(err("bad signature")); - } - let version = r.u16()?; - let psb = match version { - 1 => false, - 2 => true, - _ => return Err(err("bad version")), - }; - r.take(6)?; - let channels = r.u16()? as usize; - let height = r.u32()? as usize; - let width = r.u32()? as usize; - let depth = r.u16()?; - let mode = r.u16()?; - check_size(F, width as u64, height as u64, opts)?; - if channels == 0 || channels > 56 { - return Err(err("bad channel count")); - } - - // Colour mode data (palette for indexed). - let cm_len = r.u32()? as usize; - let color_mode_data = r.take(cm_len)?; - - // Image resources. - let res_len = r.u32()? as usize; - let res = r.take(res_len)?; - let (icc, exif, xmp) = resources(res); + let Start { psb, channels, width, height, depth, mode, head, mut r } = start(bytes, opts)?; + let color_mode_data = head.color_mode_data.as_slice(); + let (icc, exif, xmp) = resources(&head); // Layer and mask information: only the layer count sign matters (merged transparency). let lm_len = if psb { r.u64()? } else { u64::from(r.u32()?) }; @@ -342,29 +352,9 @@ fn packbits(src: &[u8], out: &mut Vec) { /// depth, colour mode or compression, or merged image data that runs past the end of the file /// (truncated). The run-length data itself is not unpacked. pub(crate) fn header(bytes: &[u8]) -> Result<(u32, u32, u16)> { - let mut r = Rd { b: bytes, p: 0 }; - if r.take(4)? != b"8BPS" { - return Err(err("bad signature")); - } - let psb = match r.u16()? { - 1 => false, - 2 => true, - _ => return Err(err("bad version")), - }; - r.take(6)?; - let channels = r.u16()? as usize; - let height = r.u32()? as usize; - let width = r.u32()? as usize; - let depth = r.u16()?; - let mode = r.u16()?; - check_size(F, width as u64, height as u64, &DecodeOptions::default())?; - if channels == 0 || channels > 56 { - return Err(err("bad channel count")); - } - let cm_len = r.u32()? as usize; - let color_mode_data = r.take(cm_len)?; - let res_len = r.u32()? as usize; - let (_, exif, _) = resources(r.take(res_len)?); + let Start { psb, channels, width, height, depth, mode, head, mut r } = start(bytes, &DecodeOptions::default())?; + let color_mode_data = head.color_mode_data.as_slice(); + let (_, exif, _) = resources(&head); let lm_len = if psb { r.u64()? as usize } else { r.u32()? as usize }; r.take(lm_len)?; let compression = r.u16()?; @@ -444,28 +434,12 @@ fn unpackbits(mut src: &[u8], row: &mut [u8]) -> Result<()> { Ok(()) } -fn resources(mut b: &[u8]) -> (Option>, Option>, Option) { - let (mut icc, mut exif, mut xmp) = (None, None, None); - while b.len() >= 12 && &b[0..4] == b"8BIM" { - let id = u16::from_be_bytes([b[4], b[5]]); - let name_len = b[6] as usize; - let name_total = (1 + name_len + 1) & !1; - let p = 6 + name_total; - if p + 4 > b.len() { - break; - } - let size = u32::from_be_bytes([b[p], b[p + 1], b[p + 2], b[p + 3]]) as usize; - let start = p + 4; - let Some(data) = start.checked_add(size).and_then(|end| b.get(start..end)) else { break }; - match id { - 1039 => icc = Some(data.to_vec()), - 1058 => exif = Some(if data.starts_with(b"Exif\0\0") { data[6..].to_vec() } else { data.to_vec() }), - 1060 => xmp = Some(String::from_utf8_lossy(data).trim_end_matches('\0').to_string()), - _ => {} - } - let next = start + ((size + 1) & !1); - b = b.get(next..).unwrap_or(&[]); - } +/// ICC (1039), EXIF (1058, without its optional `Exif\0\0` prefix) and XMP (1060) resources; the last of each id. +fn resources(head: &craft_psd::Head) -> (Option>, Option>, Option) { + let last = |id: u16| head.resources.iter().rev().find(|r| r.id == id).map(|r| r.data.as_slice()); + let icc = last(1039).map(<[u8]>::to_vec); + let exif = last(1058).map(|d| d.strip_prefix(b"Exif\0\0").unwrap_or(d).to_vec()); + let xmp = last(1060).map(|d| String::from_utf8_lossy(d).trim_end_matches('\0').to_string()); (icc, exif, xmp) } @@ -514,8 +488,8 @@ mod tests { #[test] fn huge_rle_with_truncated_count_table_is_rejected_before_allocating() { - // 1 × 2^30 px, 56 channels: the row table alone would be 56 Gi entries; the file has 4 bytes. - let mut b = header(56, 1, 1 << 30, 32, 3, 1); + // 1 × 300 000 px, 56 channels: the row table alone would be 16.8 M entries; the file has 4 bytes. + let mut b = header(56, 1, 300_000, 32, 3, 1); b.extend_from_slice(&[0, 0, 0, 0]); let e = decode(&b, &DecodeOptions::default()).unwrap_err(); assert!(matches!(e, Error::Malformed(_, ref m) if m == "truncated"), "{e:?}"); @@ -523,18 +497,29 @@ mod tests { #[test] fn huge_rle_of_empty_rows_is_rejected_before_allocating() { - // 2^30 × 1 px RGB at 32 bits: every row count is 0, which used to zero-pad 3 × 4 GiB. - let mut b = header(3, 1 << 30, 1, 32, 3, 1); + // 300 000 × 1 px RGB at 32 bits: every row count is 0, which used to zero-pad 3 × 1.2 MB. + let mut b = header(3, 300_000, 1, 32, 3, 1); b.extend_from_slice(&[0; 6]); let e = decode(&b, &DecodeOptions::default()).unwrap_err(); assert!(matches!(e, Error::Malformed(_, ref m) if m.contains("too short")), "{e:?}"); - // 1 Gpx RGB 8-bit whose (plausible) row counts claim more data than the file holds. - let mut b = header(3, 1 << 20, 1 << 10, 8, 3, 1); + // 0.27 Gpx RGB 8-bit whose (plausible) row counts claim more data than the file holds. + let mut b = header(3, 1 << 18, 1 << 10, 8, 3, 1); b.extend_from_slice(&[0xFF; 3 * 1024 * 2]); let e = decode(&b, &DecodeOptions::default()).unwrap_err(); assert!(matches!(e, Error::Malformed(_, ref m) if m == "truncated"), "{e:?}"); } + #[test] + fn a_damaged_resource_section_is_malformed() { + // a resource section of 4 bytes that is not an `8BIM` record + let mut b = header(3, 1, 1, 8, 3, 0); + b[30..34].copy_from_slice(&4u32.to_be_bytes()); + b.splice(34..34, *b"JUNK"); + let e = decode(&b, &DecodeOptions::default()).unwrap_err(); + assert!(matches!(e, Error::Malformed(_, ref m) if m.contains("signature")), "{e:?}"); + assert!(super::header(&b).is_err()); + } + #[test] fn rle_repeat_run_past_row_width_is_an_error() { // 4 × 1 gray 8-bit; the single row is a 128-byte repeat run. diff --git a/crates/meta/Cargo.toml b/crates/meta/Cargo.toml index 1b146c99da..e813d3a2a8 100644 --- a/crates/meta/Cargo.toml +++ b/crates/meta/Cargo.toml @@ -10,6 +10,7 @@ workspace = true [dependencies] craft-tiff = { workspace = true } +craft-psd = { workspace = true } lightcraft-geom = { workspace = true } serde = { workspace = true } quick-xml = { workspace = true } diff --git a/crates/meta/src/psd.rs b/crates/meta/src/psd.rs index ebdbdaf723..8fbe448d55 100644 --- a/crates/meta/src/psd.rs +++ b/crates/meta/src/psd.rs @@ -2,73 +2,24 @@ use crate::container::Embedded; -struct Reader<'a> { - bytes: &'a [u8], - offset: usize, -} - -impl<'a> Reader<'a> { - fn take(&mut self, length: usize) -> Option<&'a [u8]> { - let end = self.offset.checked_add(length)?; - let bytes = self.bytes.get(self.offset..end)?; - self.offset = end; - Some(bytes) - } - - fn u16(&mut self) -> Option { - let bytes = self.take(2)?; - Some(u16::from_be_bytes([*bytes.first()?, *bytes.get(1)?])) - } - - fn u32(&mut self) -> Option { - let bytes = self.take(4)?; - Some(u32::from_be_bytes([*bytes.first()?, *bytes.get(1)?, *bytes.get(2)?, *bytes.get(3)?])) - } -} - pub(crate) fn embedded(bytes: &[u8]) -> Embedded { parse(bytes).unwrap_or_default() } +/// The EXIF (1058) and XMP (1060) resources of the head `craft-psd` reads (header, colour mode data, image +/// resources). `None` for a head that does not parse, a second EXIF or XMP resource, or XMP that is not UTF-8. pub(crate) fn parse(bytes: &[u8]) -> Option { - let mut reader = Reader { bytes, offset: 0 }; - if reader.take(4)? != b"8BPS" || !matches!(reader.u16()?, 1 | 2) { - return None; - } - // The fixed header after the version is reserved bytes, channels, dimensions, depth and colour mode. - reader.take(6 + 2 + 4 + 4 + 2 + 2)?; - let colour_mode_length = usize::try_from(reader.u32()?).ok()?; - reader.take(colour_mode_length)?; - let resource_length = usize::try_from(reader.u32()?).ok()?; - let resources = reader.take(resource_length)?; - parse_resources(resources) -} - -fn parse_resources(bytes: &[u8]) -> Option { - let mut reader = Reader { bytes, offset: 0 }; + let head = craft_psd::Head::from_bytes(bytes).ok()?; let (mut exif, mut xmp) = (None, None); - while reader.offset < bytes.len() { - if reader.take(4)? != b"8BIM" { - return None; - } - let id = reader.u16()?; - let name_length = usize::from(*reader.take(1)?.first()?); - let pascal_length = 1usize.checked_add(name_length)?.checked_add(1)? & !1; - reader.take(pascal_length.checked_sub(1)?)?; - let data_length = usize::try_from(reader.u32()?).ok()?; - let data = reader.take(data_length)?; - if !data_length.is_multiple_of(2) { - reader.take(1)?; - } - match id { + for r in &head.resources { + match r.id { 1058 if exif.is_some() => return None, - 1058 => exif = Some(data), + 1058 => exif = Some(r.data.as_slice()), 1060 if xmp.is_some() => return None, - 1060 => xmp = Some(std::str::from_utf8(data).ok()?), + 1060 => xmp = Some(std::str::from_utf8(&r.data).ok()?), _ => {} } } - Some(Embedded { exif: exif.map(crate::strip_exif_header).map(<[u8]>::to_vec), xmp: xmp.map(|text| text.trim_end_matches('\0').to_string()), From 4ad863d19385c2830439843b186a3b351db0d7ce Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Thu, 12 Nov 2026 01:07:05 +0000 Subject: [PATCH 05/18] craft-heif's Options has a chroma field at this rev: keep the libheif upsampling LightCraft had --- crates/codecs/src/heif.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/codecs/src/heif.rs b/crates/codecs/src/heif.rs index 3e899bcdd7..2d4d5a7a1d 100644 --- a/crates/codecs/src/heif.rs +++ b/crates/codecs/src/heif.rs @@ -57,7 +57,7 @@ pub(crate) fn decode(bytes: &[u8], opts: &DecodeOptions) -> Result { if (info.width as u64).saturating_mul(info.height as u64) > opts.max_pixels { return Err(Error::TooLarge(info.width as u64, info.height as u64)); } - let options = craft_heif::Options { max_pixels: opts.max_pixels, apply_transforms: true }; + let options = craft_heif::Options { max_pixels: opts.max_pixels, apply_transforms: true, ..craft_heif::Options::default() }; // A small decode (a thumbnail or a cataloguing probe) uses the file's own thumbnail image when // it is at least as large as asked: iPhones store one of 320 × 240, and decoding it is a // hundredth of the work of the 12 MP photo. From 8dd2d60a24ae585ac14754b1fdaf76c3d12add8a Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Thu, 12 Nov 2026 03:01:31 +0000 Subject: [PATCH 06/18] PSD: a damaged resource section is left out of the decode, as before; valid headers in the sidecar test The decode keeps the picture when the image resources don't parse (the import of such a file relies on it); the metadata reader still reports it as malformed. craft-psd validates the header, so the sidecar test's synthetic PSDs get a valid one. --- crates/codecs/src/psd.rs | 47 ++++++++++++++++++++---------------- crates/engine/src/sidecar.rs | 4 ++- 2 files changed, 29 insertions(+), 22 deletions(-) diff --git a/crates/codecs/src/psd.rs b/crates/codecs/src/psd.rs index f0422edc13..4eeaeec3d2 100644 --- a/crates/codecs/src/psd.rs +++ b/crates/codecs/src/psd.rs @@ -40,7 +40,7 @@ impl<'a> Rd<'a> { } } -/// The header, colour mode data and image resources (`craft-psd`), with a reader at the layer and mask section. +/// The header (`craft-psd`), colour mode data and image resources, with a reader at the layer and mask section. struct Start<'a> { psb: bool, channels: usize, @@ -48,7 +48,8 @@ struct Start<'a> { height: usize, depth: u16, mode: u16, - head: craft_psd::Head, + color_mode_data: &'a [u8], + resources: Vec, r: Rd<'a>, } @@ -57,13 +58,17 @@ fn start<'a>(bytes: &'a [u8], opts: &DecodeOptions) -> Result> { if let (Some(&[h0, h1, h2, h3]), Some(&[w0, w1, w2, w3])) = (bytes.get(14..18), bytes.get(18..22)) { check_size(F, u64::from(u32::from_be_bytes([w0, w1, w2, w3])), u64::from(u32::from_be_bytes([h0, h1, h2, h3])), opts)?; } - let head = craft_psd::Head::from_bytes(bytes).map_err(|e| match e { + let h = craft_psd::Header::from_bytes(bytes).map_err(|e| match e { craft_psd::PsdError::UnexpectedEof { .. } => err("truncated"), e => err(&e.to_string()), })?; - let h = &head.header; - check_size(F, u64::from(h.width), u64::from(h.height), opts)?; - let p = usize::try_from(head.layer_section_offset).map_err(|_| err("truncated"))?; + let mut r = Rd { b: bytes, p: 26 }; + let cm_len = r.u32()? as usize; + let color_mode_data = r.take(cm_len)?; + let res_len = r.u32()? as usize; + r.take(res_len)?; + // a resource section that doesn't parse is left out: the picture still decodes, without its profile and metadata + let resources = craft_psd::Head::from_bytes(bytes).map(|head| head.resources).unwrap_or_default(); Ok(Start { psb: h.version.is_psb(), channels: usize::from(h.channels), @@ -71,15 +76,15 @@ fn start<'a>(bytes: &'a [u8], opts: &DecodeOptions) -> Result> { height: h.height as usize, depth: h.depth, mode: h.color_mode.as_u16(), - r: Rd { b: bytes, p }, - head, + color_mode_data, + resources, + r, }) } pub(crate) fn decode(bytes: &[u8], opts: &DecodeOptions) -> Result { - let Start { psb, channels, width, height, depth, mode, head, mut r } = start(bytes, opts)?; - let color_mode_data = head.color_mode_data.as_slice(); - let (icc, exif, xmp) = resources(&head); + let Start { psb, channels, width, height, depth, mode, color_mode_data, resources: res, mut r } = start(bytes, opts)?; + let (icc, exif, xmp) = resources(&res); // Layer and mask information: only the layer count sign matters (merged transparency). let lm_len = if psb { r.u64()? } else { u64::from(r.u32()?) }; @@ -352,9 +357,8 @@ fn packbits(src: &[u8], out: &mut Vec) { /// depth, colour mode or compression, or merged image data that runs past the end of the file /// (truncated). The run-length data itself is not unpacked. pub(crate) fn header(bytes: &[u8]) -> Result<(u32, u32, u16)> { - let Start { psb, channels, width, height, depth, mode, head, mut r } = start(bytes, &DecodeOptions::default())?; - let color_mode_data = head.color_mode_data.as_slice(); - let (_, exif, _) = resources(&head); + let Start { psb, channels, width, height, depth, mode, color_mode_data, resources: res, mut r } = start(bytes, &DecodeOptions::default())?; + let (_, exif, _) = resources(&res); let lm_len = if psb { r.u64()? as usize } else { r.u32()? as usize }; r.take(lm_len)?; let compression = r.u16()?; @@ -435,8 +439,8 @@ fn unpackbits(mut src: &[u8], row: &mut [u8]) -> Result<()> { } /// ICC (1039), EXIF (1058, without its optional `Exif\0\0` prefix) and XMP (1060) resources; the last of each id. -fn resources(head: &craft_psd::Head) -> (Option>, Option>, Option) { - let last = |id: u16| head.resources.iter().rev().find(|r| r.id == id).map(|r| r.data.as_slice()); +fn resources(res: &[craft_psd::ImageResource]) -> (Option>, Option>, Option) { + let last = |id: u16| res.iter().rev().find(|r| r.id == id).map(|r| r.data.as_slice()); let icc = last(1039).map(<[u8]>::to_vec); let exif = last(1058).map(|d| d.strip_prefix(b"Exif\0\0").unwrap_or(d).to_vec()); let xmp = last(1060).map(|d| String::from_utf8_lossy(d).trim_end_matches('\0').to_string()); @@ -510,14 +514,15 @@ mod tests { } #[test] - fn a_damaged_resource_section_is_malformed() { - // a resource section of 4 bytes that is not an `8BIM` record + fn a_damaged_resource_section_is_left_out() { + // a resource section of 4 bytes that is not an `8BIM` record: the picture decodes without it let mut b = header(3, 1, 1, 8, 3, 0); b[30..34].copy_from_slice(&4u32.to_be_bytes()); b.splice(34..34, *b"JUNK"); - let e = decode(&b, &DecodeOptions::default()).unwrap_err(); - assert!(matches!(e, Error::Malformed(_, ref m) if m.contains("signature")), "{e:?}"); - assert!(super::header(&b).is_err()); + b.extend_from_slice(&[1, 2, 3]); + let d = decode(&b, &DecodeOptions::default()).unwrap(); + assert_eq!((d.width, d.height, d.icc.is_none()), (1, 1, true)); + assert_eq!(super::header(&b).unwrap(), (1, 1, 1)); } #[test] diff --git a/crates/engine/src/sidecar.rs b/crates/engine/src/sidecar.rs index b927aa8f31..fbf7eb6c49 100644 --- a/crates/engine/src/sidecar.rs +++ b/crates/engine/src/sidecar.rs @@ -1481,8 +1481,10 @@ mod tests { section.push(0); } } + // a valid header: one RGB pixel, 8 bits let mut p = b"8BPS\0\x01".to_vec(); - p.resize(26, 0); + p.resize(12, 0); + p.extend_from_slice(&[0, 3, 0, 0, 0, 1, 0, 0, 0, 1, 0, 8, 0, 3]); p.extend_from_slice(&(colour as u32).to_be_bytes()); p.resize(p.len() + colour, 0); p.extend_from_slice(&(section.len() as u32).to_be_bytes()); From c11eb960eb52f77ed426af56ecc551dd145283f8 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sat, 14 Nov 2026 21:28:58 +0000 Subject: [PATCH 07/18] codecs: use shared JPEG encoder --- Cargo.lock | 14 +- Cargo.toml | 13 +- crates/codecs/Cargo.toml | 6 +- crates/codecs/README.md | 5 +- crates/codecs/examples/jpeg_bench.rs | 9 +- crates/codecs/src/encode.rs | 60 +- crates/codecs/src/gainmap.rs | 36 +- crates/codecs/src/jpeg_par.rs | 803 --------------------------- crates/codecs/src/lib.rs | 1 - crates/codecs/tests/it/bench.rs | 3 +- crates/codecs/tests/it/roundtrip.rs | 53 ++ docs/parity-checklist.md | 2 +- 12 files changed, 124 insertions(+), 881 deletions(-) delete mode 100644 crates/codecs/src/jpeg_par.rs diff --git a/Cargo.lock b/Cargo.lock index 7db5f5a634..8b654bccbe 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1190,7 +1190,7 @@ dependencies = [ [[package]] name = "craft-crw" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18#f0f4758c01581d79577b9bf5046c06f4e77b1f18" +source = "git+https://github.com/storytold/craft-libs?rev=94777dcf7f8962476e96b049d08d22e25b9330c2#94777dcf7f8962476e96b049d08d22e25b9330c2" dependencies = [ "thiserror 2.0.21", ] @@ -1257,7 +1257,7 @@ dependencies = [ [[package]] name = "craft-image-codecs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18#f0f4758c01581d79577b9bf5046c06f4e77b1f18" +source = "git+https://github.com/storytold/craft-libs?rev=94777dcf7f8962476e96b049d08d22e25b9330c2#94777dcf7f8962476e96b049d08d22e25b9330c2" dependencies = [ "craft-jpeg", "craft-metadata", @@ -1280,8 +1280,9 @@ dependencies = [ [[package]] name = "craft-jpeg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18#f0f4758c01581d79577b9bf5046c06f4e77b1f18" +source = "git+https://github.com/storytold/craft-libs?rev=94777dcf7f8962476e96b049d08d22e25b9330c2#94777dcf7f8962476e96b049d08d22e25b9330c2" dependencies = [ + "rayon", "thiserror 2.0.21", ] @@ -1298,7 +1299,7 @@ dependencies = [ [[package]] name = "craft-metadata" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18#f0f4758c01581d79577b9bf5046c06f4e77b1f18" +source = "git+https://github.com/storytold/craft-libs?rev=94777dcf7f8962476e96b049d08d22e25b9330c2#94777dcf7f8962476e96b049d08d22e25b9330c2" dependencies = [ "brotli-decompressor 6.0.1", "chrono", @@ -1321,7 +1322,7 @@ dependencies = [ [[package]] name = "craft-raw" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18#f0f4758c01581d79577b9bf5046c06f4e77b1f18" +source = "git+https://github.com/storytold/craft-libs?rev=94777dcf7f8962476e96b049d08d22e25b9330c2#94777dcf7f8962476e96b049d08d22e25b9330c2" dependencies = [ "chrono", "craft-crw", @@ -1339,7 +1340,7 @@ dependencies = [ [[package]] name = "craft-tiff" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18#f0f4758c01581d79577b9bf5046c06f4e77b1f18" +source = "git+https://github.com/storytold/craft-libs?rev=94777dcf7f8962476e96b049d08d22e25b9330c2#94777dcf7f8962476e96b049d08d22e25b9330c2" dependencies = [ "serde", "thiserror 2.0.21", @@ -3838,6 +3839,7 @@ dependencies = [ "craft-gif", "craft-heif", "craft-image-codecs", + "craft-jpeg", "craft-jxl", "craft-psd", "dhat", diff --git a/Cargo.toml b/Cargo.toml index c1eade1456..2e576f3dc5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,12 +13,15 @@ repository = "https://github.com/storytold/lightcraft" craft-ui = { git = "https://github.com/storytold/craft-libs", rev = "c5a1cbfb5f9049f9270955caffb5bee5997aebf7", features = ["serde"] } craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "c5a1cbfb5f9049f9270955caffb5bee5997aebf7" } # Canon CRW decoder shared with the other Craft apps -craft-crw = { git = "https://github.com/storytold/craft-libs", rev = "f0f4758c01581d79577b9bf5046c06f4e77b1f18" } +# Keep the JPEG/image-codec/metadata/TIFF/RAW graph on one shared snapshot so Cargo resolves each +# public type from a single source revision. +craft-crw = { git = "https://github.com/storytold/craft-libs", rev = "94777dcf7f8962476e96b049d08d22e25b9330c2" } craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "b77af389f30bb10de10d8436ca9b39fe94e3bb67", features = ["frames"] } craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "b77af389f30bb10de10d8436ca9b39fe94e3bb67", default-features = false, features = ["decode", "encode"] } # Photo metadata: EXIF, IPTC-IIM, XMP packets and GPX track logs (craft-libs#949) -craft-metadata = { git = "https://github.com/storytold/craft-libs", rev = "f0f4758c01581d79577b9bf5046c06f4e77b1f18" } -craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "f0f4758c01581d79577b9bf5046c06f4e77b1f18" } +craft-metadata = { git = "https://github.com/storytold/craft-libs", rev = "94777dcf7f8962476e96b049d08d22e25b9330c2" } +craft-jpeg = { git = "https://github.com/storytold/craft-libs", rev = "94777dcf7f8962476e96b049d08d22e25b9330c2" } +craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "94777dcf7f8962476e96b049d08d22e25b9330c2" } craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "b77af389f30bb10de10d8436ca9b39fe94e3bb67" } # craft-update: app-specific pretend versions apply to startup and manual checks. craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "6e03f65bf45181db77ba6229716e6624db9eb25b", features = ["egui"] } @@ -37,10 +40,10 @@ lightcraft-wincolor = { path = "crates/wincolor" } lightcraft-color = { path = "crates/color" } lightcraft-raster = { path = "crates/raster" } # TIFF/IFD: the shared reader and writer (moved from crates/tiff; craft-libs#783). -craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "f0f4758c01581d79577b9bf5046c06f4e77b1f18" } +craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "94777dcf7f8962476e96b049d08d22e25b9330c2" } # Camera raw files, the format layer: every maker but CR3, ARW, RAF, RW2 and ORF (craft-libs#862 and the maker PRs). # On the same commit as craft-tiff: its errors and IFDs are shared. -craft-raw = { git = "https://github.com/storytold/craft-libs", rev = "f0f4758c01581d79577b9bf5046c06f4e77b1f18" } +craft-raw = { git = "https://github.com/storytold/craft-libs", rev = "94777dcf7f8962476e96b049d08d22e25b9330c2" } lightcraft-raw = { path = "crates/raw" } lightcraft-codecs = { path = "crates/codecs" } lightcraft-meta = { path = "crates/meta" } diff --git a/crates/codecs/Cargo.toml b/crates/codecs/Cargo.toml index aaabd25ddf..7920b4e199 100644 --- a/crates/codecs/Cargo.toml +++ b/crates/codecs/Cargo.toml @@ -13,6 +13,7 @@ lightcraft-geom = { workspace = true } lightcraft-color = { workspace = true } lightcraft-raster = { workspace = true } craft-gainmap = { workspace = true } +craft-jpeg = { workspace = true } craft-image-codecs = { workspace = true } craft-gif = { workspace = true } craft-psd = { workspace = true } @@ -25,7 +26,6 @@ image = { workspace = true, features = ["gif", "bmp"] } zune-jpeg = { workspace = true } zune-core = { workspace = true } jpeg-decoder = { workspace = true } -jpeg-encoder = { workspace = true } png = { workspace = true } tiff = { workspace = true } image-webp = { workspace = true } @@ -39,7 +39,7 @@ avif-serialize = { workspace = true, optional = true } [features] default = ["parallel", "jxl", "avif"] -parallel = ["dep:rayon", "lightcraft-raster/parallel", "jpeg-decoder/rayon"] +parallel = ["dep:rayon", "lightcraft-raster/parallel", "jpeg-decoder/rayon", "craft-jpeg/parallel"] ## JPEG XL decoding and encoding via the shared craft-jxl codec. jxl = ["dep:craft-jxl"] # HEIC/HEIF decode via the optional craft-heif crate (heic-rs, pure Rust). Off by default so @@ -52,6 +52,8 @@ avif = ["dep:ravif", "dep:rav1e", "dep:avif-serialize"] [dev-dependencies] # tests record why they skip (`cargo xtask ci` lists the skips) lightcraft-testkit = { workspace = true } +# The CMYK JPEG test fixture and JPEG benchmark use this reference encoder only in development. +jpeg-encoder = { workspace = true } # JPEG XL tests read encoded samples without our colour conversion jxl-oxide = { workspace = true } proptest = { workspace = true } diff --git a/crates/codecs/README.md b/crates/codecs/README.md index e48e57d8eb..ac8fde403d 100644 --- a/crates/codecs/README.md +++ b/crates/codecs/README.md @@ -46,7 +46,7 @@ CRW, MRW, X3F) are detected so the engine can route them to `lightcraft-raw`; `d | Format | Decode | Encode | Notes | |---|---|---|---| -| JPEG | yes (zune-jpeg; jpeg-decoder for DCT scaling, CMYK/YCCK, 12-bit, non-interleaved scans) | yes (jpeg-encoder, baseline, 4:4:4/4:2:2/4:2:0) | EXIF (APP1), XMP (APP1, ≤ 64 KiB), ICC (APP2; only complete, consistently counted, uniquely numbered chunk sequences are assembled; malformed profiles use the existing unsupported-profile fallback), Adobe APP14, MPF previews | +| JPEG | yes (zune-jpeg; jpeg-decoder for DCT scaling, CMYK/YCCK, 12-bit, non-interleaved scans) | yes (shared `craft-jpeg`, optimized baseline, 4:4:4/4:2:2/4:2:0) | EXIF (APP1), XMP (APP1, ≤ 64 KiB), ICC (APP2; only complete, consistently counted, uniquely numbered chunk sequences are assembled; malformed profiles use the existing unsupported-profile fallback), Adobe APP14, MPF previews | | PNG | yes, 1–16-bit, palette, tRNS, interlaced | 8/16-bit, gray/GA/RGB/RGBA | iCCP, eXIf, iTXt XMP; sRGB/cICP/cHRM/gAMA honoured when no ICC | | TIFF | 8/16-bit int (32/64-bit int kept to 16 bits), 16/32/64-bit float, gray/RGB/CMYK/palette, alpha (assoc./unassoc.), planar, LZW/Deflate/PackBits/JPEG | 8/16-bit, 32-bit float; none/LZW/Deflate/PackBits | ICC (34675), XMP (700), Orientation; first IFD only; EXIF not written (use `craft-tiff`) | | WebP | lossy + lossless, alpha, first frame of animations | lossless only | ICCP/EXIF/XMP chunks | @@ -85,7 +85,8 @@ All pure Rust, verified with `cargo info` / `cargo tree`: |---|---|---| | zune-jpeg, zune-core | MIT OR Apache-2.0 OR Zlib | JPEG decode | | jpeg-decoder | MIT OR Apache-2.0 | scaled / CMYK JPEG decode | -| jpeg-encoder | (MIT OR Apache-2.0) AND IJG | JPEG encode (IJG: permissive, attribution in docs) | +| craft-jpeg | MIT OR Apache-2.0 | baseline JPEG encode (shared craft-libs) | +| jpeg-encoder (dev only) | (MIT OR Apache-2.0) AND IJG | reference CMYK fixture and JPEG benchmark | | png | MIT OR Apache-2.0 | PNG | | tiff | MIT | TIFF | | image-webp | MIT OR Apache-2.0 | WebP | diff --git a/crates/codecs/examples/jpeg_bench.rs b/crates/codecs/examples/jpeg_bench.rs index 487f8619c4..6e746a67eb 100644 --- a/crates/codecs/examples/jpeg_bench.rs +++ b/crates/codecs/examples/jpeg_bench.rs @@ -1,6 +1,6 @@ -//! Compare the parallel JPEG encoder with `jpeg-encoder` (size, time, PSNR): +//! Compare the shared JPEG encoder with `jpeg-encoder` (size, time, PSNR): //! `cargo run --release -p lightcraft-codecs --example jpeg_bench [image]` (default: 6000×4000 synthetic). -use lightcraft_codecs::ChromaSubsampling; +use lightcraft_codecs::{ChromaSubsampling, EncodeImage, EncodeMeta, Samples, encode_jpeg}; use std::time::Instant; fn psnr(a: &[u8], b: &[u8]) -> f64 { @@ -41,7 +41,8 @@ fn main() { for (sub, js) in [(ChromaSubsampling::S444, jpeg_encoder::SamplingFactor::R_4_4_4), (ChromaSubsampling::S420, jpeg_encoder::SamplingFactor::R_4_2_0)] { - let (ours, t_ours) = best(5, || lightcraft_codecs::jpeg_par::encode(&rgb, w, h, 3, 90, sub, &[])); + let img = EncodeImage::new(w as u32, h as u32, 3, Samples::U8(&rgb)); + let (ours, t_ours) = best(5, || encode_jpeg(&img, 90, sub, &EncodeMeta::default()).expect("shared JPEG encoder")); let (theirs, t_theirs) = best(3, || { let mut out = Vec::new(); let mut e = jpeg_encoder::Encoder::new(&mut out, 90); @@ -51,7 +52,7 @@ fn main() { }); let dec = |b: &[u8]| jpeg_decoder::Decoder::new(b).decode().unwrap(); println!( - "{w}x{h} {sub:?} q90: parallel {t_ours:.0} ms, {} KB, PSNR {:.2} dB | jpeg-encoder {t_theirs:.0} ms, {} KB, PSNR {:.2} dB", + "{w}x{h} {sub:?} q90: craft-jpeg {t_ours:.0} ms, {} KB, PSNR {:.2} dB | jpeg-encoder {t_theirs:.0} ms, {} KB, PSNR {:.2} dB", ours.len() / 1024, psnr(&rgb, &dec(&ours)), theirs.len() / 1024, diff --git a/crates/codecs/src/encode.rs b/crates/codecs/src/encode.rs index ecc353af07..952dcf0d70 100644 --- a/crates/codecs/src/encode.rs +++ b/crates/codecs/src/encode.rs @@ -1,4 +1,4 @@ -//! Encoders: JPEG (`jpeg-encoder`), PNG (`png`), TIFF (`tiff`), flat PSD (our own), lossless WebP (`image-webp`) and, +//! Encoders: JPEG (`craft-jpeg`), PNG (`png`), TIFF (`tiff`), flat PSD (our own), lossless WebP (`image-webp`) and, //! on native targets with the `avif` feature, AVIF (`ravif`/`rav1e`); JPEG XL is in `jxl_encode`. //! Metadata (ICC/EXIF/XMP) is embedded where the format allows. @@ -132,52 +132,20 @@ pub fn encode_jpeg(img: &EncodeImage, quality: u8, subsampling: ChromaSubsamplin if img.width > u16::MAX as u32 || img.height > u16::MAX as u32 { return Err(Error::Encode("JPEG dimensions are limited to 65535".into())); } - let n = img.width as usize * img.height as usize; - let (data, ct): (std::borrow::Cow<[u8]>, jpeg_encoder::ColorType) = match img.channels { - 1 => (data[..n].into(), jpeg_encoder::ColorType::Luma), - 2 => (data.as_chunks::<2>().0.iter().take(n).map(|c| c[0]).collect::>().into(), jpeg_encoder::ColorType::Luma), - 3 => (data[..n * 3].into(), jpeg_encoder::ColorType::Rgb), - _ => (data[..n * 4].into(), jpeg_encoder::ColorType::Rgba), + let pixels = img.width as usize * img.height as usize; + let (data, channels): (std::borrow::Cow<'_, [u8]>, usize) = match img.channels { + 1 => (data[..pixels].into(), 1), + 2 => (data.as_chunks::<2>().0.iter().take(pixels).map(|c| c[0]).collect::>().into(), 1), + 3 => (data[..pixels * 3].into(), 3), + _ => (data[..pixels * 4].into(), 4), }; - if subsampling != ChromaSubsampling::S422 { - // Parallel encoder (restart-interval bands on all cores). - let segs = jpeg_app_segments(meta)?; - let ch = if img.channels == 2 { 1 } else { img.channels as usize }; - // `data` is already gray for 2-channel input (see above) - return Ok(crate::jpeg_par::encode(&data, img.width as usize, img.height as usize, ch, quality, subsampling, &segs)); - } - let mut out = Vec::new(); - let mut enc = jpeg_encoder::Encoder::new(&mut out, quality.clamp(1, 100)); - enc.set_sampling_factor(match subsampling { - ChromaSubsampling::S444 => jpeg_encoder::SamplingFactor::R_4_4_4, - ChromaSubsampling::S422 => jpeg_encoder::SamplingFactor::R_4_2_2, - ChromaSubsampling::S420 => jpeg_encoder::SamplingFactor::R_4_2_0, - }); - // Standard tables: jpeg-encoder's optimized-table mode writes non-interleaved scans, which some - // decoders (incl. zune-jpeg 0.5) mishandle. Interleaved baseline is universally supported. - let e = |e: jpeg_encoder::EncodingError| Error::Encode(e.to_string()); - if let Some(ppi) = meta.ppi.filter(|p| *p > 0) { - enc.set_density(jpeg_encoder::PixelDensity::dpi(ppi)); - } - if let Some(exif) = meta.exif { - if exif.len() > 65_527 { - return Err(Error::Encode("EXIF larger than one APP1 segment (64 KiB)".into())); - } - enc.add_exif_metadata(exif).map_err(e)?; - } - if let Some(xmp) = meta.xmp { - let mut seg = XMP_NS.to_vec(); - seg.extend_from_slice(xmp.as_bytes()); - if seg.len() > 65_533 { - return Err(Error::Encode("XMP larger than one APP1 segment (extended XMP not supported)".into())); - } - enc.add_app_segment(1, seg).map_err(e)?; - } - if let Some(icc) = meta.icc { - enc.add_icc_profile(icc).map_err(e)?; - } - enc.encode(&data, img.width as u16, img.height as u16, ct).map_err(e)?; - Ok(out) + let subsampling = match subsampling { + ChromaSubsampling::S444 => craft_jpeg::ChromaSubsampling::S444, + ChromaSubsampling::S422 => craft_jpeg::ChromaSubsampling::S422, + ChromaSubsampling::S420 => craft_jpeg::ChromaSubsampling::S420, + }; + craft_jpeg::encode_baseline(&data, img.width as usize, img.height as usize, channels, quality, subsampling, &jpeg_app_segments(meta)?) + .map_err(|e| Error::Encode(e.to_string())) } /// Encode PNG (8- or 16-bit; float input is rejected — quantize first). diff --git a/crates/codecs/src/gainmap.rs b/crates/codecs/src/gainmap.rs index 4a6f485818..3fc5fd0841 100644 --- a/crates/codecs/src/gainmap.rs +++ b/crates/codecs/src/gainmap.rs @@ -14,7 +14,7 @@ pub use craft_gainmap::{GainImage, GainMapMeta, GainMapOptions, ISO_URN, apply, compute}; use crate::encode::{EncodeImage, EncodeMeta, Samples, jpeg_app_segments, xmp_segment}; -use crate::{ChromaSubsampling, Error, Format, Result, jpeg, jpeg_par}; +use crate::{ChromaSubsampling, Error, Format, Result, jpeg}; /// Offsets within the MPF payload (from "MPF\0"): the endian field, then the index IFD (3 tags). const MPF_ENTRIES_FROM_ENDIAN: usize = 8 + 2 + 3 * 12 + 4; @@ -50,33 +50,51 @@ pub fn encode_jpeg(base: &EncodeImage, gain: &GainImage, m: &GainMapMeta, qualit return Err(Error::Encode("gain map JPEG needs an 8-bit base image".into())); }; let (w, h) = (base.width as usize, base.height as usize); - if !matches!(base.channels, 3 | 4) || data.len() < w * h * base.channels as usize { + if !matches!(base.channels, 3 | 4) { + return Err(Error::Encode("gain map JPEG needs an RGB base image".into())); + } + let Some(base_bytes) = w.checked_mul(h).and_then(|pixels| pixels.checked_mul(base.channels as usize)) else { + return Err(Error::Encode("gain map JPEG needs an RGB base image".into())); + }; + if data.len() < base_bytes { return Err(Error::Encode("gain map JPEG needs an RGB base image".into())); } if w == 0 || h == 0 || w > u16::MAX as usize || h > u16::MAX as usize { return Err(Error::Encode("JPEG dimensions are limited to 65535".into())); } - if !matches!(gain.channels, 1 | 3) || gain.width == 0 || gain.height == 0 || gain.data.len() < gain.width * gain.height * gain.channels { + if !matches!(gain.channels, 1 | 3) || gain.width == 0 || gain.height == 0 { return Err(Error::Encode("gain map image is malformed".into())); } - // (jpeg_par::encode gives an empty JPEG past this, which would be appended as a size-0 gain map) + // Check the JPEG frame-header limit before multiplying dimensions, then validate the source + // buffer with checked arithmetic on both 32- and 64-bit targets. if gain.width > u16::MAX as usize || gain.height > u16::MAX as usize { return Err(Error::Encode("JPEG dimensions are limited to 65535".into())); } + let Some(gain_bytes) = gain.width.checked_mul(gain.height).and_then(|pixels| pixels.checked_mul(gain.channels)) else { + return Err(Error::Encode("gain map image is malformed".into())); + }; + if gain.data.len() < gain_bytes { + return Err(Error::Encode("gain map image is malformed".into())); + } if !m.is_valid() || m.multichannel != (gain.channels == 3) { return Err(Error::Encode("gain map metadata doesn't match the map".into())); } - // jpeg_par writes 4:4:4 or 4:2:0 - let sub = if sub == ChromaSubsampling::S422 { ChromaSubsampling::S420 } else { sub }; - let gain_segs = vec![(0xE1, xmp_segment(&m.to_gain_map_xmp())?), (0xE2, m.to_iso())]; - let gain_jpeg = jpeg_par::encode(&gain.data, gain.width, gain.height, gain.channels, quality, ChromaSubsampling::S444, &gain_segs); + let gain_jpeg = + craft_jpeg::encode_baseline(&gain.data, gain.width, gain.height, gain.channels, quality, craft_jpeg::ChromaSubsampling::S444, &gain_segs) + .map_err(|e| Error::Encode(e.to_string()))?; let xmp = craft_gainmap::primary_xmp(meta.xmp, gain_jpeg.len()); let mut segs = jpeg_app_segments(&EncodeMeta { xmp: Some(&xmp), ..*meta })?; segs.push((0xE2, craft_gainmap::primary_iso_marker())); segs.push((0xE2, mpf_placeholder())); - let mut primary = jpeg_par::encode(data, w, h, base.channels as usize, quality, sub, &segs); + let sub = match sub { + ChromaSubsampling::S444 => craft_jpeg::ChromaSubsampling::S444, + ChromaSubsampling::S422 => craft_jpeg::ChromaSubsampling::S420, + ChromaSubsampling::S420 => craft_jpeg::ChromaSubsampling::S420, + }; + let mut primary = + craft_jpeg::encode_baseline(data, w, h, base.channels as usize, quality, sub, &segs).map_err(|e| Error::Encode(e.to_string()))?; // patch the MPF index: sizes, and the gain map's offset from the MPF endian field let markers = jpeg::parse_markers(&primary).ok_or_else(|| Error::Encode("gain map JPEG: primary image unreadable".into()))?; diff --git a/crates/codecs/src/jpeg_par.rs b/crates/codecs/src/jpeg_par.rs deleted file mode 100644 index cc2d41629a..0000000000 --- a/crates/codecs/src/jpeg_par.rs +++ /dev/null @@ -1,803 +0,0 @@ -//! Parallel baseline JPEG encoder (ITU-T T.81 / JFIF). -//! -//! The image is cut into bands of MCU rows separated by restart markers (`DRI` + `RSTn`): DC -//! prediction restarts at every marker, so bands are entropy-coded independently on all cores and -//! concatenated. Quantization uses the example tables of T.81 Annex K scaled by the usual 1–100 -//! quality convention. Huffman tables are made for each image from its own symbol counts (T.81 -//! Annex K.2): a first pass over the bands counts the symbols, a second codes them. The file stays -//! interleaved baseline with the tables in its `DHT` segments, readable by every decoder, and is -//! smaller than with the Annex K example tables at the same pixels. Supports grayscale and YCbCr -//! 4:4:4 / 4:2:0. - -use crate::encode::ChromaSubsampling; - -/// T.81 Annex K.1 / K.2 example quantization tables (natural order). -const Q_LUMA: [u16; 64] = [ - 16, 11, 10, 16, 24, 40, 51, 61, 12, 12, 14, 19, 26, 58, 60, 55, 14, 13, 16, 24, 40, 57, 69, 56, 14, 17, 22, 29, 51, 87, 80, 62, 18, 22, 37, 56, - 68, 109, 103, 77, 24, 35, 55, 64, 81, 104, 113, 92, 49, 64, 78, 87, 103, 121, 120, 101, 72, 92, 95, 98, 112, 100, 103, 99, -]; -const Q_CHROMA: [u16; 64] = [ - 17, 18, 24, 47, 99, 99, 99, 99, 18, 21, 26, 66, 99, 99, 99, 99, 24, 26, 56, 99, 99, 99, 99, 99, 47, 66, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, - 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, -]; - -/// Zig-zag position k → natural index. -const ZIGZAG: [usize; 64] = [ - 0, 1, 8, 16, 9, 2, 3, 10, 17, 24, 32, 25, 18, 11, 4, 5, 12, 19, 26, 33, 40, 48, 41, 34, 27, 20, 13, 6, 7, 14, 21, 28, 35, 42, 49, 56, 57, 50, 43, - 36, 29, 22, 15, 23, 30, 37, 44, 51, 58, 59, 52, 45, 38, 31, 39, 46, 53, 60, 61, 54, 47, 55, 62, 63, -]; - -/// T.81 Annex K.3 example Huffman tables: (code counts per length 1..16, symbols). -const DC_LUMA_BITS: [u8; 16] = [0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0]; -const DC_CHROMA_BITS: [u8; 16] = [0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0]; -const DC_VALS: [u8; 12] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]; -const AC_LUMA_BITS: [u8; 16] = [0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 0x7d]; -const AC_LUMA_VALS: [u8; 162] = [ - 0x01, 0x02, 0x03, 0x00, 0x04, 0x11, 0x05, 0x12, 0x21, 0x31, 0x41, 0x06, 0x13, 0x51, 0x61, 0x07, 0x22, 0x71, 0x14, 0x32, 0x81, 0x91, 0xa1, 0x08, - 0x23, 0x42, 0xb1, 0xc1, 0x15, 0x52, 0xd1, 0xf0, 0x24, 0x33, 0x62, 0x72, 0x82, 0x09, 0x0a, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x25, 0x26, 0x27, 0x28, - 0x29, 0x2a, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3a, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4a, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, - 0x5a, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6a, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7a, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, - 0x8a, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9a, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, - 0xb7, 0xb8, 0xb9, 0xba, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0xe1, 0xe2, - 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, -]; -const AC_CHROMA_BITS: [u8; 16] = [0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 0x77]; -const AC_CHROMA_VALS: [u8; 162] = [ - 0x00, 0x01, 0x02, 0x03, 0x11, 0x04, 0x05, 0x21, 0x31, 0x06, 0x12, 0x41, 0x51, 0x07, 0x61, 0x71, 0x13, 0x22, 0x32, 0x81, 0x08, 0x14, 0x42, 0x91, - 0xa1, 0xb1, 0xc1, 0x09, 0x23, 0x33, 0x52, 0xf0, 0x15, 0x62, 0x72, 0xd1, 0x0a, 0x16, 0x24, 0x34, 0xe1, 0x25, 0xf1, 0x17, 0x18, 0x19, 0x1a, 0x26, - 0x27, 0x28, 0x29, 0x2a, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3a, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4a, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, - 0x59, 0x5a, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6a, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7a, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, - 0x88, 0x89, 0x8a, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9a, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xb2, 0xb3, 0xb4, - 0xb5, 0xb6, 0xb7, 0xb8, 0xb9, 0xba, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda, - 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, -]; - -/// Huffman code table: symbol → (code, length). -struct Huff { - code: [(u16, u8); 256], -} - -impl Huff { - /// Canonical codes from counts (T.81 Annex C). - fn new(bits: &[u8; 16], vals: &[u8]) -> Huff { - let mut code = [(0u16, 0u8); 256]; - let (mut c, mut k) = (0u16, 0usize); - for (len, &n) in bits.iter().enumerate() { - for _ in 0..n { - if let Some(&v) = vals.get(k) { - code[v as usize] = (c, len as u8 + 1); - } - c = c.wrapping_add(1); - k += 1; - } - c = c.wrapping_shl(1); - } - Huff { code } - } -} - -/// Symbol counts of one Huffman table: index = symbol (DC size category, or AC run/size byte). -type Freq = [u64; 256]; - -/// The code lengths (`BITS`, counts per length 1..16) and symbols (`HUFFVAL`) of an optimal -/// Huffman table for `freq`, limited to 16-bit codes and never assigning the all-ones code -/// (T.81 Annex K.2, figures K.1–K.4). Symbols with a zero count get no code. At least one symbol -/// is always present (a table nothing used gets symbol 0), so the result is a valid `DHT`. -fn optimal_table(freq: &Freq) -> ([u8; 16], Vec) { - // 256 is the reserved pseudo-symbol: counted once, it takes the longest code, which is - // then dropped so no real code is all ones (K.2) - let mut f = [0u64; 257]; - f[..256].copy_from_slice(freq); - if f[..256].iter().all(|&c| c == 0) { - f[0] = 1; - } - f[256] = 1; - let mut size = [0usize; 257]; - let mut next: [Option; 257] = [None; 257]; - loop { - // the two smallest non-zero counts; on equal counts the larger symbol goes first (K.1) - let mut c1: Option = None; - for i in 0..257 { - if f[i] > 0 && c1.is_none_or(|c| f[i] <= f[c]) { - c1 = Some(i); - } - } - let Some(c1) = c1 else { break }; - let mut c2: Option = None; - for i in 0..257 { - if i != c1 && f[i] > 0 && c2.is_none_or(|c| f[i] <= f[c]) { - c2 = Some(i); - } - } - let Some(c2) = c2 else { break }; - f[c1] = f[c1].saturating_add(f[c2]); - f[c2] = 0; - // every symbol in both trees goes one level deeper; c2's chain is appended to c1's - let mut k = c1; - size[k] += 1; - while let Some(n) = next[k] { - k = n; - size[k] += 1; - } - next[k] = Some(c2); - let mut k = c2; - size[k] += 1; - while let Some(n) = next[k] { - k = n; - size[k] += 1; - } - } - // counts per code length; 257 symbols need at most 256 levels - let mut bits = [0usize; 257]; - for &s in &size { - if s > 0 { - bits[s.min(256)] += 1; - } - } - // limit to 16 bits (K.3): move pairs of the longest codes up, one level at a time (the - // deepest level of a full tree always holds an even number of codes) - for i in (17..257).rev() { - while bits[i] >= 2 { - let Some(j) = (1..i - 1).rev().find(|&j| bits[j] > 0) else { break }; - bits[i] -= 2; - bits[i - 1] += 1; - bits[j + 1] += 2; - bits[j] -= 1; - } - } - // drop the reserved symbol's code: it is one of the longest - if let Some(i) = (1..=16).rev().find(|&i| bits[i] > 0) { - bits[i] -= 1; - } - // symbols by code length, then by value (K.4); the reserved symbol is not listed - let mut vals = Vec::new(); - for len in 1..257 { - vals.extend((0..256).filter(|&s| size[s] == len).map(|s| s as u8)); - } - let mut out = [0u8; 16]; - for (o, &b) in out.iter_mut().zip(&bits[1..=16]) { - *o = b.min(255) as u8; - } - (out, vals) -} - -fn scaled_quant(base: &[u16; 64], quality: u8) -> [u16; 64] { - let q = quality.clamp(1, 100) as u32; - let scale = if q < 50 { 5000 / q } else { 200 - 2 * q }; - base.map(|b| ((b as u32 * scale + 50) / 100).clamp(1, 255) as u16) -} - -/// Entropy-coded segment writer with 0xFF byte stuffing. -struct Bits { - out: Vec, - acc: u32, - n: u32, -} - -impl Bits { - fn new() -> Bits { - Bits { out: Vec::new(), acc: 0, n: 0 } - } - #[inline] - fn put(&mut self, code: u32, len: u32) { - if len == 0 { - return; - } - self.acc = (self.acc << len) | (code & ((1 << len) - 1)); - self.n += len; - while self.n >= 8 { - let b = (self.acc >> (self.n - 8)) as u8; - self.out.push(b); - if b == 0xFF { - self.out.push(0); - } - self.n -= 8; - } - self.acc &= (1 << self.n) - 1; - } - /// Pad with 1-bits to a byte boundary. - fn finish(mut self) -> Vec { - if self.n > 0 { - let pad = 8 - self.n; - self.put((1 << pad) - 1, pad); - } - self.out - } -} - -/// AAN output scale factors: `s[0] = 1`, `s[k] = cos(kπ/16)·√2`. -fn aan_scale() -> [f32; 8] { - std::array::from_fn(|k| if k == 0 { 1.0 } else { ((k as f64 * std::f64::consts::PI / 16.0).cos() * std::f64::consts::SQRT_2) as f32 }) -} - -/// Quantization reciprocals with the AAN scaling folded in: coefficient = out / (8·s[u]·s[v]·q). -fn recip_table(q: &[u16; 64]) -> [f32; 64] { - let s = aan_scale(); - std::array::from_fn(|i| 1.0 / (q[i] as f32 * s[i / 8] * s[i % 8] * 8.0)) -} - -/// One 8-point forward DCT (Arai–Agui–Nakajima flowgraph, 5 multiplies) on `d[o + k·stride]`. -#[inline(always)] -fn aan_1d(d: &mut [f32; 64], o: usize, stride: usize) { - let g = |k: usize| o + k * stride; - let (t0, t7) = (d[g(0)] + d[g(7)], d[g(0)] - d[g(7)]); - let (t1, t6) = (d[g(1)] + d[g(6)], d[g(1)] - d[g(6)]); - let (t2, t5) = (d[g(2)] + d[g(5)], d[g(2)] - d[g(5)]); - let (t3, t4) = (d[g(3)] + d[g(4)], d[g(3)] - d[g(4)]); - // even part - let (t10, t13, t11, t12) = (t0 + t3, t0 - t3, t1 + t2, t1 - t2); - d[g(0)] = t10 + t11; - d[g(4)] = t10 - t11; - let z1 = (t12 + t13) * 0.707_106_77; - d[g(2)] = t13 + z1; - d[g(6)] = t13 - z1; - // odd part - let (t10, t11, t12) = (t4 + t5, t5 + t6, t6 + t7); - let z5 = (t10 - t12) * 0.382_683_43; - let z2 = 0.541_196_1 * t10 + z5; - let z4 = 1.306_563 * t12 + z5; - let z3 = t11 * 0.707_106_77; - let (z11, z13) = (t7 + z3, t7 - z3); - d[g(5)] = z13 + z2; - d[g(3)] = z13 - z2; - d[g(1)] = z11 + z4; - d[g(7)] = z11 - z4; -} - -/// Forward DCT of a level-shifted 8×8 block and quantization. -#[inline] -fn fdct_quant(block: &[f32; 64], recip: &[f32; 64], out: &mut [i16; 64]) { - let mut d = *block; - for r in 0..8 { - aan_1d(&mut d, r * 8, 1); - } - for c in 0..8 { - aan_1d(&mut d, c, 8); - } - for i in 0..64 { - out[i] = round_i16(d[i] * recip[i]); - } -} -/// `x.round() as i16` (half away from zero, saturating, NaN to 0) for every `x` (checked for all of them), in plain -/// arithmetic: without SSE4.1 `f32::round` is a libm call, one per coefficient, that keeps the loop from vectorising. -#[inline(always)] -fn round_i16(x: f32) -> i16 { - // (below 2^24 the truncation is exact and so is the remainder) - let c = x.clamp(-65536.0, 65536.0); - let t = c as i32; - let f = c - t as f32; - let r = t + i32::from(f >= 0.5) - i32::from(f <= -0.5); - r.clamp(i32::from(i16::MIN), i32::from(i16::MAX)) as i16 -} - -#[inline] -fn magnitude(v: i32) -> (u32, u32) { - let a = v.unsigned_abs(); - let size = 32 - a.leading_zeros(); - let bits = if v < 0 { (v - 1) as u32 } else { v as u32 }; - (size, bits & ((1u32 << size) - 1)) -} - -/// The Huffman symbols of one quantized block in coding order: `sym(ac, symbol, bits, n)` for the -/// DC size category (`ac` false) and each AC run/size, ZRL and EOB (`ac` true), each followed by -/// its `n` extra bits `bits`. -#[inline(always)] -fn block_symbols(q: &[i16; 64], pred: &mut i32, mut sym: impl FnMut(bool, usize, u32, u32)) { - let d = q[0] as i32 - *pred; - *pred = q[0] as i32; - let (s, b) = magnitude(d); - sym(false, s as usize, b, s); - let mut run = 0u32; - for &zi in &ZIGZAG[1..] { - let v = q[zi] as i32; - if v == 0 { - run += 1; - continue; - } - while run >= 16 { - sym(true, 0xF0, 0, 0); - run -= 16; - } - let (s, b) = magnitude(v); - sym(true, ((run << 4) | s) as usize, b, s); - run = 0; - } - if run > 0 { - sym(true, 0x00, 0, 0); - } -} - -/// One coded symbol of the entropy-coded data: bits 0–7 the symbol, 8–9 its table (0 DC luma, -/// 1 AC luma, 2 DC chroma, 3 AC chroma), 10–13 the number of extra bits, 14–29 those bits (a -/// baseline coefficient needs at most 11). -type Token = u32; - -/// Append one block's symbols to `out` and count them in `freq` (by table, as in [`Token`]). -fn tokenize_block(q: &[i16; 64], pred: &mut i32, chroma: bool, out: &mut Vec, freq: &mut [Freq; 4]) { - let base = if chroma { 2 } else { 0 }; - block_symbols(q, pred, |is_ac, s, bits, n| { - let table = base + is_ac as usize; - freq[table][s & 0xFF] += 1; - out.push((s as u32 & 0xFF) | (table as u32) << 8 | (n & 0xF) << 10 | (bits & 0xFFFF) << 14); - }); -} - -/// Code a band's symbols with `tables` (indexed as in [`Token`]). -fn write_tokens(tokens: &[Token], tables: &[Huff; 4]) -> Vec { - let mut w = Bits::new(); - for &t in tokens { - let (s, table, n, bits) = (t & 0xFF, (t >> 8) & 3, (t >> 10) & 0xF, t >> 14); - let (c, l) = tables[table as usize].code[s as usize]; - w.put(c as u32, l as u32); - w.put(bits, n); - } - w.finish() -} - -/// Planar component samples (level-shifted to −128..127) with edge replication on read. -struct Plane { - w: usize, - h: usize, - data: Vec, -} - -impl Plane { - #[inline] - fn block(&self, bx: usize, by: usize, out: &mut [f32; 64]) { - let (x0, y0) = (bx * 8, by * 8); - if x0 + 8 <= self.w && y0 + 8 <= self.h { - for y in 0..8 { - let i = (y0 + y) * self.w + x0; - out[y * 8..y * 8 + 8].copy_from_slice(&self.data[i..i + 8]); - } - return; - } - for y in 0..8 { - let sy = (by * 8 + y).min(self.h - 1); - let row = &self.data[sy * self.w..(sy + 1) * self.w]; - for x in 0..8 { - out[y * 8 + x] = row[(bx * 8 + x).min(self.w - 1)]; - } - } - } -} - -fn segment(out: &mut Vec, marker: u8, payload: &[u8]) { - out.extend_from_slice(&[0xFF, marker]); - out.extend_from_slice(&((payload.len() + 2) as u16).to_be_bytes()); - out.extend_from_slice(payload); -} - -fn dht(out: &mut Vec, class_id: u8, bits: &[u8; 16], vals: &[u8]) { - let mut p = vec![class_id]; - p.extend_from_slice(bits); - p.extend_from_slice(vals); - segment(out, 0xC4, &p); -} - -/// Encode interleaved 8-bit samples (`channels` 1, 3 or 4; alpha is dropped), with Huffman -/// tables made for the image. -pub fn encode( - data: &[u8], - width: usize, - height: usize, - channels: usize, - quality: u8, - sub: ChromaSubsampling, - app_segments: &[(u8, Vec)], -) -> Vec { - encode_with(data, width, height, channels, quality, sub, app_segments, true) -} - -/// [`encode`], with optimized Huffman tables or (`optimize` false) the Annex K example tables. -#[allow(clippy::too_many_arguments)] -fn encode_with( - data: &[u8], - width: usize, - height: usize, - channels: usize, - quality: u8, - sub: ChromaSubsampling, - app_segments: &[(u8, Vec)], - optimize: bool, -) -> Vec { - // The public entry takes caller-sized dimensions: refuse (an empty output) what would size an allocation from - // them or index past `data`, rather than panic or allocate for them. - let fits = width.checked_mul(height).and_then(|n| n.checked_mul(channels)).is_some_and(|n| n <= data.len()); - if !fits || width == 0 || height == 0 || width > 65_535 || height > 65_535 || !matches!(channels, 1 | 3 | 4) { - return Vec::new(); - } - let gray = channels == 1; - let (hs, vs) = match (gray, sub) { - (true, _) | (false, ChromaSubsampling::S444) => (1usize, 1usize), - (false, _) => (2, 2), - }; - #[cfg(feature = "parallel")] - use rayon::prelude::*; - // colour conversion (JFIF YCbCr, full range, level-shifted) of the pixel rows `rows`, one band's worth at a - // time (in the band's task: the planes of the whole image would be ~290 MB at 24 MP, written and read back - // once): 4:4:4 Y, Cb, Cr at full resolution in one pass; 4:2:0 Y, and chroma (rows `crows` of the - // half-size planes) straight from 2×2 RGB means (conversion is linear: average first, then convert once) - let ncomp = if gray || hs == 2 { 1 } else { 3 }; - let (cw, ch) = (width.div_ceil(2), height.div_ceil(2)); - let convert = |rows: std::ops::Range, crows: std::ops::Range| -> Vec { - let mut full: Vec> = (0..ncomp).map(|_| vec![0f32; rows.len() * width]).collect(); - for (k, y) in rows.clone().enumerate() { - let src = &data[y * width * channels..(y + 1) * width * channels]; - let mut out: Vec<&mut [f32]> = full.iter_mut().map(|p| &mut p[k * width..(k + 1) * width]).collect(); - if gray { - for (o, p) in out[0].iter_mut().zip(src.chunks_exact(channels)) { - *o = p[0] as f32 - 128.0; - } - continue; - } - if out.len() == 1 { - for (o, p) in out[0].iter_mut().zip(src.chunks_exact(channels)) { - *o = 0.299 * p[0] as f32 + 0.587 * p[1] as f32 + 0.114 * p[2] as f32 - 128.0; - } - continue; - } - for (x, p) in src.chunks_exact(channels).enumerate() { - let (r, g, b) = (p[0] as f32, p[1] as f32, p[2] as f32); - out[0][x] = 0.299 * r + 0.587 * g + 0.114 * b - 128.0; - out[1][x] = -0.168_736 * r - 0.331_264 * g + 0.5 * b; - out[2][x] = 0.5 * r - 0.418_688 * g - 0.081_312 * b; - } - } - let mut planes: Vec = full.into_iter().map(|data| Plane { w: width, h: rows.len(), data }).collect(); - if !gray && hs == 2 { - let (mut cb, mut cr) = (vec![0f32; cw * crows.len()], vec![0f32; cw * crows.len()]); - for (cy, (ob, or)) in crows.clone().zip(cb.chunks_mut(cw).zip(cr.chunks_mut(cw))) { - let (y0, y1) = (2 * cy, (2 * cy + 1).min(height - 1)); - let (r0, r1) = (&data[y0 * width * channels..], &data[y1 * width * channels..]); - for cx in 0..cw { - let (x0, x1) = (2 * cx * channels, (2 * cx + 1).min(width - 1) * channels); - let s = |k: usize| (r0[x0 + k] as f32 + r0[x1 + k] as f32 + r1[x0 + k] as f32 + r1[x1 + k] as f32) * 0.25; - let (r, g, b) = (s(0), s(1), s(2)); - ob[cx] = -0.168_736 * r - 0.331_264 * g + 0.5 * b; - or[cx] = 0.5 * r - 0.418_688 * g - 0.081_312 * b; - } - } - planes.push(Plane { w: cw, h: crows.len(), data: cb }); - planes.push(Plane { w: cw, h: crows.len(), data: cr }); - } - planes - }; - - let ql = scaled_quant(&Q_LUMA, quality); - let qc = scaled_quant(&Q_CHROMA, quality); - let (rl, rc) = (recip_table(&ql), recip_table(&qc)); - let (mcu_w, mcu_h) = (8 * hs, 8 * vs); - let (mx, my) = (width.div_ceil(mcu_w), height.div_ceil(mcu_h)); - // restart interval: whole MCU rows per band, ≤ 65535 MCUs, enough bands to keep all cores busy - let rows_per_band = (my / 64).clamp(1, (65_535 / mx.max(1)).max(1)); - let bands: Vec = (0..my.div_ceil(rows_per_band)).collect(); - // first pass: each band's quantized blocks as symbols, with their counts per table (DC - // prediction restarts per band, as the restart markers say) - let tokenize_band = |band: &usize| -> (Vec, [Freq; 4]) { - let (mut blk, mut q) = ([0f32; 64], [0i16; 64]); - let (mut tokens, mut freq) = (Vec::new(), [[0u64; 256]; 4]); - let mut pred = [0i32; 3]; - let (m0, m1) = (band * rows_per_band, ((band + 1) * rows_per_band).min(my)); - // the band's planes, its MCU row `m0` at their top (blocks past the image's bottom repeat its last row, - // which is the band's last row then) - let planes = convert(m0 * mcu_h..(m1 * mcu_h).min(height), m0 * 8..(m1 * 8).min(ch)); - for mcu_y in m0..m1 { - let mcu_y = mcu_y - m0; - for mcu_x in 0..mx { - for vy in 0..vs { - for hx in 0..hs { - planes[0].block(mcu_x * hs + hx, mcu_y * vs + vy, &mut blk); - fdct_quant(&blk, &rl, &mut q); - tokenize_block(&q, &mut pred[0], false, &mut tokens, &mut freq); - } - } - if !gray { - for (plane, pred) in planes.iter().zip(pred.iter_mut()).take(3).skip(1) { - plane.block(mcu_x, mcu_y, &mut blk); - fdct_quant(&blk, &rc, &mut q); - tokenize_block(&q, pred, true, &mut tokens, &mut freq); - } - } - } - } - (tokens, freq) - }; - #[cfg(feature = "parallel")] - let tokenized: Vec<(Vec, [Freq; 4])> = bands.par_iter().map(tokenize_band).collect(); - #[cfg(not(feature = "parallel"))] - let tokenized: Vec<(Vec, [Freq; 4])> = bands.iter().map(tokenize_band).collect(); - // the tables: DC luma, AC luma, DC chroma, AC chroma - let tables: [([u8; 16], Vec); 4] = if optimize { - let mut total = [[0u64; 256]; 4]; - for (_, f) in &tokenized { - for (t, f) in total.iter_mut().zip(f) { - for (t, f) in t.iter_mut().zip(f) { - *t = t.saturating_add(*f); - } - } - } - total.each_ref().map(optimal_table) - } else { - [ - (DC_LUMA_BITS, DC_VALS.to_vec()), - (AC_LUMA_BITS, AC_LUMA_VALS.to_vec()), - (DC_CHROMA_BITS, DC_VALS.to_vec()), - (AC_CHROMA_BITS, AC_CHROMA_VALS.to_vec()), - ] - }; - let huff = tables.each_ref().map(|(bits, vals)| Huff::new(bits, vals)); - // second pass: code the symbols - #[cfg(feature = "parallel")] - let coded: Vec> = tokenized.into_par_iter().map(|(t, _)| write_tokens(&t, &huff)).collect(); - #[cfg(not(feature = "parallel"))] - let coded: Vec> = tokenized.into_iter().map(|(t, _)| write_tokens(&t, &huff)).collect(); - - // headers - let mut out = Vec::with_capacity(coded.iter().map(Vec::len).sum::() + 4096); - out.extend_from_slice(&[0xFF, 0xD8]); - // JFIF APP0 first (callers may pass their own, e.g. with a print density) - if !app_segments.iter().any(|(m, _)| *m == 0xE0) { - segment(&mut out, 0xE0, &[b'J', b'F', b'I', b'F', 0, 1, 2, 0, 0, 1, 0, 1, 0, 0]); - } - for (marker, payload) in app_segments { - segment(&mut out, *marker, payload); - } - let dqt = |id: u8, q: &[u16; 64]| -> Vec { - let mut p = vec![id]; - p.extend(ZIGZAG.iter().map(|&i| q[i] as u8)); - p - }; - segment(&mut out, 0xDB, &dqt(0, &ql)); - if !gray { - segment(&mut out, 0xDB, &dqt(1, &qc)); - } - let mut sof = vec![8]; - sof.extend_from_slice(&(height as u16).to_be_bytes()); - sof.extend_from_slice(&(width as u16).to_be_bytes()); - if gray { - sof.extend_from_slice(&[1, 1, 0x11, 0]); - } else { - sof.extend_from_slice(&[3, 1, ((hs as u8) << 4) | vs as u8, 0, 2, 0x11, 1, 3, 0x11, 1]); - } - segment(&mut out, 0xC0, &sof); - let [(dlb, dlv), (alb, alv), (dcb, dcv), (acb, acv)] = &tables; - dht(&mut out, 0x00, dlb, dlv); - dht(&mut out, 0x10, alb, alv); - if !gray { - dht(&mut out, 0x01, dcb, dcv); - dht(&mut out, 0x11, acb, acv); - } - let interval = (rows_per_band * mx) as u16; - if coded.len() > 1 { - segment(&mut out, 0xDD, &interval.to_be_bytes()); - } - if gray { - segment(&mut out, 0xDA, &[1, 1, 0x00, 0, 63, 0]); - } else { - segment(&mut out, 0xDA, &[3, 1, 0x00, 2, 0x11, 3, 0x11, 0, 63, 0]); - } - let last = coded.len().saturating_sub(1); - for (i, c) in coded.iter().enumerate() { - out.extend_from_slice(c); - if i < last { - out.extend_from_slice(&[0xFF, 0xD0 + (i % 8) as u8]); - } - } - out.extend_from_slice(&[0xFF, 0xD9]); - out -} - -#[cfg(test)] -mod tests { - use super::*; - - #[test] - fn hostile_dimensions_give_no_output_instead_of_a_panic_or_allocation() { - for (w, h, c) in [(1usize << 40, 1usize << 40, 3usize), (0, 8, 3), (70_000, 2, 3), (8, 8, 7), (8, 8, 3)] { - assert!(encode(&[0u8; 16], w, h, c, 90, ChromaSubsampling::S444, &[]).is_empty(), "{w} x {h} x {c}"); - } - } - - fn test_rgb(w: usize, h: usize) -> Vec { - let mut v = Vec::with_capacity(w * h * 3); - for y in 0..h { - for x in 0..w { - let t = ((x as f32 / 13.0).sin() * 0.5 + 0.5) * 255.0; - v.extend_from_slice(&[(x * 255 / w) as u8, (y * 255 / h) as u8, t as u8]); - } - } - v - } - - fn psnr(a: &[u8], b: &[u8]) -> f64 { - let mse = a.iter().zip(b).map(|(x, y)| (*x as f64 - *y as f64).powi(2)).sum::() / a.len() as f64; - 10.0 * (255.0f64.powi(2) / mse.max(1e-9)).log10() - } - - /// The AAN path matches the direct DCT-II definition. - #[test] - fn aan_matches_reference_dct() { - let block: [f32; 64] = std::array::from_fn(|i| ((i * 37 % 255) as f32) - 128.0); - let q = [1u16; 64]; - let mut out = [0i16; 64]; - fdct_quant(&block, &recip_table(&q), &mut out); - for v in 0..8 { - for u in 0..8 { - let c = |k: usize| if k == 0 { std::f64::consts::FRAC_1_SQRT_2 } else { 1.0 }; - let mut s = 0.0; - for y in 0..8 { - for x in 0..8 { - s += block[y * 8 + x] as f64 - * (((2 * x + 1) * u) as f64 * std::f64::consts::PI / 16.0).cos() - * (((2 * y + 1) * v) as f64 * std::f64::consts::PI / 16.0).cos(); - } - } - let f = 0.25 * c(u) * c(v) * s; - assert!((out[v * 8 + u] as f64 - f).abs() <= 0.51, "({u},{v}): {} vs {f}", out[v * 8 + u]); - } - } - } - - #[test] - fn huffman_tables_are_consistent() { - for (bits, n) in [(&AC_LUMA_BITS, AC_LUMA_VALS.len()), (&AC_CHROMA_BITS, AC_CHROMA_VALS.len()), (&DC_LUMA_BITS, 12), (&DC_CHROMA_BITS, 12)] { - assert_eq!(bits.iter().map(|&b| b as usize).sum::(), n); - } - } - - #[test] - fn decodes_with_independent_decoders_at_odd_sizes() { - for (w, h, sub) in [ - (1, 1, ChromaSubsampling::S444), - (37, 23, ChromaSubsampling::S420), - (640, 1031, ChromaSubsampling::S420), - (803, 600, ChromaSubsampling::S444), - ] { - let src = test_rgb(w, h); - let jpg = encode(&src, w, h, 3, 92, sub, &[]); - let mut d = jpeg_decoder::Decoder::new(&jpg[..]); - let px = d.decode().expect("jpeg-decoder"); - let info = d.info().unwrap(); - assert_eq!((info.width as usize, info.height as usize), (w, h)); - if w * h > 64 { - assert!(psnr(&src, &px) > 30.0, "{w}x{h} {sub:?}: psnr {}", psnr(&src, &px)); - } - let z = zune_jpeg::JpegDecoder::new(zune_core::bytestream::ZCursor::new(&jpg[..])).decode().expect("zune-jpeg"); - assert_eq!(z.len(), px.len()); - } - } - - /// The code lengths of `(bits, vals)`, checked: every listed symbol once, at most 16 bits, - /// and room left in the code space (the all-ones code is never assigned, Kraft sum < 1). - fn check_table(bits: &[u8; 16], vals: &[u8]) { - assert_eq!(bits.iter().map(|&b| b as usize).sum::(), vals.len()); - let mut seen = [false; 256]; - for &v in vals { - assert!(!seen[v as usize], "symbol {v} listed twice"); - seen[v as usize] = true; - } - let kraft: f64 = bits.iter().enumerate().map(|(i, &n)| n as f64 / 2f64.powi(i as i32 + 1)).sum(); - assert!(kraft < 1.0, "code space full: {kraft}"); - let h = Huff::new(bits, vals); - for &v in vals { - let (c, l) = h.code[v as usize]; - assert!((1..=16).contains(&l)); - assert_ne!(c as u32, (1u32 << l) - 1, "symbol {v} has the all-ones code"); - } - } - - #[test] - fn optimal_tables_are_valid_and_bounded() { - // one symbol, two, a typical spread and every symbol - let mut one = [0u64; 256]; - one[7] = 5; - let mut two = [0u64; 256]; - two[0] = 1; - two[0xF0] = 1_000_000; - let typical: Freq = std::array::from_fn(|s| if s % 3 == 0 { (s as u64 * 7919) % 1000 + 1 } else { 0 }); - let all: Freq = std::array::from_fn(|s| s as u64 + 1); - // Fibonacci counts make an unbounded Huffman tree ~40 levels deep: the 16-bit limit applies - let mut fib = [0u64; 256]; - let (mut a, mut b) = (1u64, 1u64); - for f in fib.iter_mut().take(40) { - *f = a; - (a, b) = (b, a + b); - } - for (name, f) in [("one", one), ("two", two), ("typical", typical), ("all", all), ("fib", fib), ("none", [0; 256])] { - let (bits, vals) = optimal_table(&f); - check_table(&bits, &vals); - for s in 0..256 { - assert_eq!(vals.contains(&(s as u8)), f[s] > 0 || (name == "none" && s == 0), "{name}: symbol {s}"); - } - } - // more frequent symbols never get longer codes - let (bits, vals) = optimal_table(&typical); - let h = Huff::new(&bits, &vals); - for &x in &vals { - for &y in &vals { - if typical[x as usize] > typical[y as usize] { - assert!(h.code[x as usize].1 <= h.code[y as usize].1, "{x} vs {y}"); - } - } - } - // the Annex K example tables pass the same checks - check_table(&AC_LUMA_BITS, &AC_LUMA_VALS); - check_table(&DC_CHROMA_BITS, &DC_VALS); - } - - /// Issue #1373: tables made for the image give a smaller file with exactly the same pixels as - /// the Annex K example tables (the quantized coefficients are the same), at every quality and - /// subsampling, and both decoders read it. - #[test] - fn optimized_tables_shrink_files_without_changing_pixels() { - let (w, h) = (517, 333); - // gradients plus deterministic noise, like a photo's grain - let mut seed = 0x2545_f491_u32; - let src: Vec = test_rgb(w, h) - .into_iter() - .map(|v| { - seed ^= seed << 13; - seed ^= seed >> 17; - seed ^= seed << 5; - v.saturating_add((seed % 23) as u8) - }) - .collect(); - for (q, sub) in [(100, ChromaSubsampling::S444), (92, ChromaSubsampling::S444), (75, ChromaSubsampling::S420), (30, ChromaSubsampling::S420)] - { - let std = encode_with(&src, w, h, 3, q, sub, &[], false); - let opt = encode(&src, w, h, 3, q, sub, &[]); - assert!(opt.len() < std.len(), "q{q} {sub:?}: {} ≥ {}", opt.len(), std.len()); - let a = jpeg_decoder::Decoder::new(&std[..]).decode().expect("standard tables"); - let b = jpeg_decoder::Decoder::new(&opt[..]).decode().expect("optimized tables"); - assert_eq!(a, b, "q{q} {sub:?}: pixels differ"); - let z = zune_jpeg::JpegDecoder::new(zune_core::bytestream::ZCursor::new(&opt[..])).decode().expect("zune-jpeg"); - assert_eq!(z.len(), b.len()); - } - // grayscale too - let gray: Vec = src.iter().step_by(3).copied().collect(); - let std = encode_with(&gray, w, h, 1, 90, ChromaSubsampling::S444, &[], false); - let opt = encode(&gray, w, h, 1, 90, ChromaSubsampling::S444, &[]); - assert!(opt.len() < std.len()); - assert_eq!(jpeg_decoder::Decoder::new(&std[..]).decode().unwrap(), jpeg_decoder::Decoder::new(&opt[..]).decode().unwrap()); - } - - /// The bytes written for 4:4:4, 4:2:0, grayscale and RGBA input at a size cut into many bands, with partial MCUs - /// at the right and bottom edges, pinned: each band converts its own rows to YCbCr, which must not change a bit. - #[test] - fn encoded_bytes_are_pinned() { - let fnv = |b: &[u8]| b.iter().fold(0xcbf2_9ce4_8422_2325u64, |h, &x| (h ^ u64::from(x)).wrapping_mul(0x100_0000_01b3)); - let (w, h) = (1203, 1037); - let rgb = test_rgb(w, h); - let gray: Vec = rgb.as_chunks::<3>().0.iter().map(|p| p[1]).collect(); - let rgba: Vec = rgb.as_chunks::<3>().0.iter().flat_map(|p| [p[0], p[1], p[2], 255]).collect(); - let got = [ - fnv(&encode(&rgb, w, h, 3, 90, ChromaSubsampling::S444, &[])), - fnv(&encode(&rgb, w, h, 3, 75, ChromaSubsampling::S420, &[])), - fnv(&encode(&gray, w, h, 1, 90, ChromaSubsampling::S444, &[])), - fnv(&encode(&rgba, w, h, 4, 85, ChromaSubsampling::S444, &[])), - ]; - assert_eq!(got, PINNED, "{got:#x?}"); - } - /// [`round_i16`] against `f32::round` at the halves, the ends of `i16`, NaN and infinities, and a spread of every - /// magnitude (all 2^32 inputs were compared once, offline). - #[test] - fn round_i16_is_round_as_i16() { - let special = [0.5f32, -0.5, 1.5, -1.5, 2.5, -2.5, 0.499_999_97, -0.499_999_97, 32767.5, -32768.5, 32766.5, 1e9, -1e9]; - let all = special.into_iter().chain([f32::NAN, f32::INFINITY, f32::NEG_INFINITY]).chain((0..=u32::MAX).step_by(9973).map(f32::from_bits)); - for x in all { - assert_eq!(round_i16(x), x.round() as i16, "{x:e}"); - } - } - const PINNED: [u64; 4] = [0x52ba_772a_589c_1430, 0x013f_8364_821f_1dde, 0xb2a3_b5e5_aef3_7402, 0x08df_d6dc_aa2f_1c78]; - #[test] - fn grayscale_and_quality_monotone() { - let (w, h) = (300, 200); - let src: Vec = (0..w * h).map(|i| ((i % w) * 255 / w) as u8 ^ ((i / w) as u8 & 0x10)).collect(); - let lo = encode(&src, w, h, 1, 30, ChromaSubsampling::S444, &[]); - let hi = encode(&src, w, h, 1, 95, ChromaSubsampling::S444, &[]); - assert!(lo.len() < hi.len()); - let px = jpeg_decoder::Decoder::new(&hi[..]).decode().unwrap(); - assert!(psnr(&src, &px) > 35.0); - } -} diff --git a/crates/codecs/src/lib.rs b/crates/codecs/src/lib.rs index ad918ddd02..8fc0b3f4f5 100644 --- a/crates/codecs/src/lib.rs +++ b/crates/codecs/src/lib.rs @@ -26,7 +26,6 @@ pub mod gainmap; mod heif; pub mod icc; mod jpeg; -pub mod jpeg_par; #[cfg(feature = "jxl")] mod jxl; mod jxl_encode; diff --git a/crates/codecs/tests/it/bench.rs b/crates/codecs/tests/it/bench.rs index c66feeb77d..06e8ecb818 100644 --- a/crates/codecs/tests/it/bench.rs +++ b/crates/codecs/tests/it/bench.rs @@ -45,8 +45,7 @@ fn bench_24mp_jpeg() { let mp = (w * h) as f64 / 1e6; let px = synthetic(w, h); let img = EncodeImage::new(w as u32, h as u32, 3, Samples::U8(&px)); - let plain = - time("encode JPEG q90 4:2:0 (jpeg-encoder)", mp, 1, || encode_jpeg(&img, 90, ChromaSubsampling::S420, &EncodeMeta::default()).unwrap()); + let plain = time("encode JPEG q90 4:2:0 (craft-jpeg)", mp, 1, || encode_jpeg(&img, 90, ChromaSubsampling::S420, &EncodeMeta::default()).unwrap()); println!(" size {:.1} MB", plain.len() as f64 / 1e6); time("decode full → linear Rgb32f", mp, 3, || decode(&plain, DecodeOptions::default()).unwrap()); diff --git a/crates/codecs/tests/it/roundtrip.rs b/crates/codecs/tests/it/roundtrip.rs index 5541d99fbf..951e60c383 100644 --- a/crates/codecs/tests/it/roundtrip.rs +++ b/crates/codecs/tests/it/roundtrip.rs @@ -79,6 +79,59 @@ fn jpeg_gray_and_scaled_decode() { } } +#[test] +fn jpeg_gray_alpha_drops_alpha_and_ignores_surplus_samples() { + let (w, h) = (13u32, 9u32); + let mut gray_alpha: Vec = (0..w * h).flat_map(|i| [((i * 37 + 19) % 256) as u8, ((i * 83) % 256) as u8]).collect(); + // EncodeImage historically permits a surplus tail; the writer must ignore it. + gray_alpha.extend_from_slice(&[255, 0, 17]); + let bytes = encode_jpeg(&EncodeImage::new(w, h, 2, Samples::U8(&gray_alpha)), 100, ChromaSubsampling::S444, &EncodeMeta::default()).unwrap(); + let decoded = decode(&bytes, DecodeOptions::default()).unwrap(); + assert_eq!((decoded.width, decoded.height), (w, h)); + assert!(decoded.grayscale); + assert!(!decoded.has_alpha); + let output = decoded.to_srgb8(); + for (i, pixel) in output.data.iter().enumerate() { + let source = gray_alpha[i * 2]; + assert!(pixel[..3].iter().all(|&channel| channel.abs_diff(source) <= 2), "pixel {i}: source {source}, output {pixel:?}"); + assert_eq!(pixel[3], 255); + } +} + +#[test] +fn jpeg_422_matches_the_previous_encoder_within_rounding_tolerance() { + let img = smooth(97, 61); + let rgb: Vec = img.data.iter().flat_map(|p| p[..3].iter().copied()).collect(); + let mut reference = Vec::new(); + let mut encoder = jpeg_encoder::Encoder::new(&mut reference, 90); + encoder.set_sampling_factor(jpeg_encoder::SamplingFactor::R_4_2_2); + encoder.encode(&rgb, img.width as u16, img.height as u16, jpeg_encoder::ColorType::Rgb).unwrap(); + + let shared = encode_jpeg( + &EncodeImage::new(img.width as u32, img.height as u32, 3, Samples::U8(&rgb)), + 90, + ChromaSubsampling::S422, + &EncodeMeta::default(), + ) + .unwrap(); + let old = decode(&reference, DecodeOptions::default()).unwrap().to_srgb8(); + let new = decode(&shared, DecodeOptions::default()).unwrap().to_srgb8(); + let mut max_delta = 0u8; + let mut squared_error = 0u64; + for (a, b) in old.data.iter().zip(&new.data) { + for c in 0..3 { + let delta = a[c].abs_diff(b[c]); + max_delta = max_delta.max(delta); + squared_error += u64::from(delta) * u64::from(delta); + } + } + let mse = squared_error as f64 / (old.data.len() * 3) as f64; + // The shared writer changes DCT rounding relative to jpeg-encoder, but this deterministic + // 4:2:2 fixture stays within a six-code maximum and 2.0 mean-squared channel delta. + assert!(max_delta <= 6, "max per-channel delta from the prior 4:2:2 output was {max_delta}"); + assert!(mse <= 2.0, "mean squared channel delta from the prior 4:2:2 output was {mse}"); +} + #[test] fn jpeg_cmyk_converts() { // 0 = no ink: white, cyan, black. diff --git a/docs/parity-checklist.md b/docs/parity-checklist.md index 0d9f260e45..4985b03ed8 100644 --- a/docs/parity-checklist.md +++ b/docs/parity-checklist.md @@ -394,7 +394,7 @@ differences and missing bindings are in [ui-parity.md](ui-parity.md#shortcuts). | LR-EXP-DIALOG | Export dialog | P0 | ✅ | `cmd:dialog.export`, `cmd:app.export` (`preset`), `cmd:export.presets`, `cmd:export.savePreset`, `cmd:export.deletePreset`, `crates/ui-egui/src/dialogs.rs`, `crates/engine/src/export.rs` | batch export; built-in presets (JPEG Small 2048 px / Large full size, Original + Settings, DNG, Instagram Feed 1080 px, Instagram Story / Reel 1920 px long edge with no crop to 9:16, Web / Portfolio 2048 px copyright and creator metadata, Full Resolution Master full size P3) and saved user presets (library prefs) load into the dialog; deleting a user preset is command-only; on a short window the options scroll and Cancel / Export stay visible (LR-BEHAV-DIALOGS, issue #781) | | LR-EXP-TYPE | File types | P0 | ✅ | `cmd:app.export` (`format`), `crates/engine/src/export.rs` (`ExportFormat`), `crates/engine/src/tests/export.rs` | JPEG, PNG, TIFF, PSD (flat, 8/16-bit, no layers: `crates/codecs/src/psd.rs`), WebP, AVIF, JPEG XL (shared `craft-jxl`, native-only encoder; lossy with quality or lossless, 8/16-bit, effort fast/normal, progressive, EXIF/XMP boxes; lossy files in Adobe RGB / ProPhoto are written as Rec. 2020, lossless keep any space via ICC; app adapter is `crates/codecs/src/jxl_encode.rs`), DNG (raw photos: lossless re-encode with the edits in the embedded XMP; a raw without colour matrices of its own, as a NEF, gets the colour it opens with as `ColorMatrix1` / `ForwardMatrix1` / `AsShotNeutral`, also in Convert / Copy as DNG, so other raw converters open it, issue #1745), Original (+ XMP sidecar). Non-raw → DNG not supported; no JPEG XL export in the web build. Opaque 8-bit PNG/TIFF/WebP exports omit the redundant alpha channel; real transparency is retained (#1670). | | LR-EXP-DIM | Output size | P0 | ✅ | `cmd:app.export` (`longEdge`, `shortEdge`, `width`, `height`, `fit`, `megapixels`, `percent`, `dontEnlarge`, `ppi`), `crates/engine/src/export.rs` (`Resize`), `crates/ui-egui/src/dialogs.rs` | full size = the cropped native size (no longer upscaled); both of Lightroom's boxes: Dimensions (W × H fits either orientation) and Width & Height (`fit: widthHeight`, each edge bound to its own number, #1620); ppi written to JFIF / pHYs / TIFF tags; at most 65,535 px an edge, and an export enlarged past the photo's size stops at 512 megapixels (Lightroom's ceiling too) and is refused, with the size it would need, when it needs more memory than the computer has (it aborted the process before) | -| LR-EXP-QUALITY | JPEG quality | P0 | ✅ | `cmd:app.export` (`quality`, `limitKb`), `crates/codecs/src/jpeg_par.rs` | 4:4:4 chroma (4:2:0 when a file-size limit is set); Huffman tables made for each image from its own symbol counts (T.81 Annex K.2) instead of the example tables: the same pixels, 12–14 % smaller files at quality 80–100 on a 24 MP photo-like image, still interleaved baseline (issue #1373); ordinary and HDR gain map JPEGs search quality up to the requested maximum to fit `limitKb`, including gain map and metadata, or return an error. Tested by `size_limit_respected` and `hdr_jpeg_size_limit_respected`. | +| LR-EXP-QUALITY | JPEG quality | P0 | ✅ | `cmd:app.export` (`quality`, `limitKb`), `crates/codecs/src/encode.rs`, `crates/codecs/tests/it/roundtrip.rs`, `crates/engine/src/export/tests.rs` | 4:4:4 chroma (4:2:0 when a file-size limit is set); Huffman tables made for each image from its own symbol counts (T.81 Annex K.2) instead of the example tables: the same pixels, 12–14 % smaller files at quality 80–100 on a 24 MP photo-like image, still interleaved baseline (issue #1373); ordinary and HDR gain map JPEGs search quality up to the requested maximum to fit `limitKb`, including gain map and metadata, or return an error. Tested by `jpeg_422_matches_the_previous_encoder_within_rounding_tolerance`, `size_limit_respected`, and `hdr_jpeg_size_limit_respected`. | | LR-EXP-BITDEPTH | Bit depth | P1 | ✅ | `cmd:app.export` (`bitDepth`), `crates/pipeline/src/output.rs` (`OutputDepth`), `crates/engine/src/export.rs` | 16-bit PNG/TIFF/JPEG XL rendered at 16 bits (TIFF defaults to 16), 32-bit float linear TIFF with a linear profile, 10-bit AVIF; high-bit-depth renders run on the CPU | | LR-EXP-COMPRESSION | TIFF compression | P1 | ✅ | `cmd:app.export` (`tiffCompression`: none / lzw / zip) | ZIP is the default. LZW is usually larger and slower than ZIP, and at 16 bit often larger than none (#2882); the export dialog notes this when LZW is picked | | LR-EXP-COLORSPACE | Output colour space | P0 | ✅ | `cmd:app.export` (`colorSpace`), `crates/pipeline/src/output.rs`, `crates/engine/src/export.rs` | sRGB, Display P3, Adobe RGB (1998) compatible, ProPhoto RGB, Rec. 2020: rendered from the working space with gamut mapping into the target gamut (CPU + GPU), own ICC profile embedded; AVIF stays sRGB (muxer has no ICC); lossy JPEG XL declares sRGB / P3 / Rec. 2020 (Adobe RGB and ProPhoto written as Rec. 2020), lossless JPEG XL embeds the profile | From 106035f46b506d6b8d7c51861d207485a82cc71d Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 15 Nov 2026 00:04:45 +0000 Subject: [PATCH 08/18] codecs: retain parallel JPEG encoding --- Cargo.lock | 1 + crates/codecs/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index c59153e4c3..60b234fadb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1291,6 +1291,7 @@ name = "craft-jpeg" version = "0.1.0" source = "git+https://github.com/storytold/craft-libs?rev=94777dcf7f8962476e96b049d08d22e25b9330c2#94777dcf7f8962476e96b049d08d22e25b9330c2" dependencies = [ + "rayon", "thiserror 2.0.21", ] diff --git a/crates/codecs/Cargo.toml b/crates/codecs/Cargo.toml index ba3b29a536..e133715840 100644 --- a/crates/codecs/Cargo.toml +++ b/crates/codecs/Cargo.toml @@ -33,7 +33,7 @@ avif-serialize = { workspace = true, optional = true } [features] default = ["parallel", "jxl", "avif"] -parallel = ["dep:rayon", "lightcraft-raster/parallel"] +parallel = ["dep:rayon", "lightcraft-raster/parallel", "craft-jpeg/parallel"] ## JPEG XL decoding and encoding via the shared craft-jxl codec. jxl = ["dep:craft-jxl"] # HEIC/HEIF decode via the optional craft-heif crate (heic-rs, pure Rust). Off by default so From 3798bc52bea6649121a58dee75aea2623af1d716 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 15 Nov 2026 09:02:01 +0000 Subject: [PATCH 09/18] test(codecs): cover JPEG gain map encoder paths --- crates/codecs/src/gainmap.rs | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/crates/codecs/src/gainmap.rs b/crates/codecs/src/gainmap.rs index 3fc5fd0841..5ffad09dd5 100644 --- a/crates/codecs/src/gainmap.rs +++ b/crates/codecs/src/gainmap.rs @@ -199,6 +199,51 @@ mod tests { assert!(matches!(r, Err(Error::Encode(m)) if m.contains("65535"))); } + fn encode_fixture(base: &EncodeImage<'_>, gain: &GainImage, meta: &GainMapMeta, sub: ChromaSubsampling) -> Result> { + encode_jpeg(base, gain, meta, 90, sub, &EncodeMeta::default()) + } + + #[test] + fn gain_map_encoder_rejects_malformed_buffers_and_metadata() { + let base = [0u8; 3]; + let rgb = EncodeImage::new(1, 1, 3, Samples::U8(&base)); + let gain = GainImage { width: 1, height: 1, channels: 1, data: vec![128] }; + + let short_base = EncodeImage::new(1, 1, 4, Samples::U8(&base)); + assert!( + matches!(encode_fixture(&short_base, &gain, &GainMapMeta::default(), ChromaSubsampling::S444), Err(Error::Encode(m)) if m.contains("RGB base")) + ); + + let short_gain = GainImage { data: Vec::new(), ..gain.clone() }; + assert!( + matches!(encode_fixture(&rgb, &short_gain, &GainMapMeta::default(), ChromaSubsampling::S444), Err(Error::Encode(m)) if m.contains("malformed")) + ); + + let wrong_metadata = GainMapMeta { multichannel: true, ..GainMapMeta::default() }; + assert!(matches!(encode_fixture(&rgb, &gain, &wrong_metadata, ChromaSubsampling::S444), Err(Error::Encode(m)) if m.contains("metadata"))); + } + + #[test] + fn gain_map_jpeg_writer_preserves_supported_base_layouts_and_subsampling() { + let gain = GainImage { width: 1, height: 1, channels: 1, data: vec![128] }; + let meta = GainMapMeta::default(); + let rgb = [10u8, 20, 30]; + let rgba = [10u8, 20, 30, 255]; + + for (base, sub) in [ + (EncodeImage::new(1, 1, 3, Samples::U8(&rgb)), ChromaSubsampling::S444), + (EncodeImage::new(1, 1, 3, Samples::U8(&rgb)), ChromaSubsampling::S422), + (EncodeImage::new(1, 1, 3, Samples::U8(&rgb)), ChromaSubsampling::S420), + (EncodeImage::new(1, 1, 4, Samples::U8(&rgba)), ChromaSubsampling::S420), + ] { + let encoded = encode_fixture(&base, &gain, &meta, sub).unwrap(); + assert!(is_gain_map_jpeg(&encoded)); + let decoded = crate::decode(&encoded, crate::DecodeOptions::default()).unwrap(); + assert_eq!((decoded.width, decoded.height), (1, 1)); + assert!(read_jpeg(&encoded).is_some()); + } + } + #[test] fn jpeg_round_trip_and_container_structure() { let (w, h) = (96, 64); From f8deafaf616f7821107f2ef79ac4e2aa8b0519cd Mon Sep 17 00:00:00 2001 From: FredApps <153173854+FredApps@users.noreply.github.com> Date: Sun, 15 Nov 2026 15:21:32 +0100 Subject: [PATCH 10/18] codecs: correct jpeg-encoder licence note and stale jpeg_par path jpeg-encoder 0.6 still ships inside craft-image-codecs, so it isn't dev-only; docs/file-format-parity.md still cited the removed jpeg_par.rs. --- crates/codecs/README.md | 2 +- docs/file-format-parity.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/codecs/README.md b/crates/codecs/README.md index ac8fde403d..499aaae3b3 100644 --- a/crates/codecs/README.md +++ b/crates/codecs/README.md @@ -86,7 +86,7 @@ All pure Rust, verified with `cargo info` / `cargo tree`: | zune-jpeg, zune-core | MIT OR Apache-2.0 OR Zlib | JPEG decode | | jpeg-decoder | MIT OR Apache-2.0 | scaled / CMYK JPEG decode | | craft-jpeg | MIT OR Apache-2.0 | baseline JPEG encode (shared craft-libs) | -| jpeg-encoder (dev only) | (MIT OR Apache-2.0) AND IJG | reference CMYK fixture and JPEG benchmark | +| jpeg-encoder | (MIT OR Apache-2.0) AND IJG | 0.6 still ships inside `craft-image-codecs` (IJG: permissive, attribution in docs); 0.7 only in tests and the JPEG benchmark (reference CMYK fixture, prior 4:2:2 output) | | png | MIT OR Apache-2.0 | PNG | | tiff | MIT | TIFF | | image-webp | MIT OR Apache-2.0 | WebP | diff --git a/docs/file-format-parity.md b/docs/file-format-parity.md index 86df6c9549..e6f3b33d3f 100644 --- a/docs/file-format-parity.md +++ b/docs/file-format-parity.md @@ -15,7 +15,7 @@ import and export formats. Ours come from `crates/codecs/src/sniff.rs`, `crates/ | Format | Target reads | Target writes | LightCraft reads | LightCraft writes | Notes / tests | |---|---|---|---|---|---| -| JPEG | ✅ | ✅ | ✅ (parallel decoder, ICC, EXIF orientation) | ✅ quality, size limit, ICC, metadata; Huffman tables optimized per image (issue #1373) | `crates/codecs/src/jpeg.rs`, `crates/codecs/src/jpeg_par.rs`, export tests | +| JPEG | ✅ | ✅ | ✅ (parallel decoder, ICC, EXIF orientation) | ✅ quality, size limit, ICC, metadata; Huffman tables optimized per image (issue #1373) | `crates/codecs/src/jpeg.rs`, `crates/codecs/src/encode.rs` (shared `craft-jpeg` encoder), export tests | | TIFF | ✅ 8/16/32-bit | ✅ 8/16-bit, LZW/ZIP | ✅ 1–64-bit integer, 16–64-bit float, bilevel, CCITT fax, WhiteIsZero | ✅ 8/16-bit, 32-bit float linear, none / LZW / ZIP | `crates/tiff`, `crates/codecs/src/tiff_codec.rs` | | PNG | ✅ | ✅ | ✅ | ✅ | | | PSD / PSB | ✅ (maximized-compatibility composite) | ✅ (Classic: PSD export, edit-in round trip) | ✅ merged composite | ⬜ (external-editor round trip writes 16-bit TIFF) | `crates/codecs/src/psd.rs` | From 96c64cc16ea39739a721d058ce16cdd47e722b8d Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 15 Nov 2026 10:53:36 -0500 Subject: [PATCH 11/18] codecs: align shared JPEG and image pins with AVIF fixes Use merged craft-libs478c5056, matching #4270 and retaining #1448 EXIF/HLG/alpha repairs. JPEG subtree is unchanged from94777dcf. Leave independent RAW/metadata consumers unchanged rather than broadening this fix. --- Cargo.lock | 54 +++++++++++++++++++++++++++++++++++++++++++----------- Cargo.toml | 4 ++-- 2 files changed, 45 insertions(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 60b234fadb..e8e11137d7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1266,13 +1266,15 @@ dependencies = [ [[package]] name = "craft-image-codecs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=94777dcf7f8962476e96b049d08d22e25b9330c2#94777dcf7f8962476e96b049d08d22e25b9330c2" +source = "git+https://github.com/storytold/craft-libs?rev=478c50560d3c6fad3d613af2a30b35c3bc9f4c0f#478c50560d3c6fad3d613af2a30b35c3bc9f4c0f" dependencies = [ "craft-jpeg", - "craft-metadata", + "craft-metadata 0.1.0 (git+https://github.com/storytold/craft-libs?rev=478c50560d3c6fad3d613af2a30b35c3bc9f4c0f)", + "crc32fast", "exr", "flate2", "half", + "hayro-jpeg2000", "image", "image-webp", "jpeg-encoder 0.6.1", @@ -1289,7 +1291,7 @@ dependencies = [ [[package]] name = "craft-jpeg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=94777dcf7f8962476e96b049d08d22e25b9330c2#94777dcf7f8962476e96b049d08d22e25b9330c2" +source = "git+https://github.com/storytold/craft-libs?rev=478c50560d3c6fad3d613af2a30b35c3bc9f4c0f#478c50560d3c6fad3d613af2a30b35c3bc9f4c0f" dependencies = [ "rayon", "thiserror 2.0.21", @@ -1305,6 +1307,18 @@ dependencies = [ "thiserror 2.0.21", ] +[[package]] +name = "craft-metadata" +version = "0.1.0" +source = "git+https://github.com/storytold/craft-libs?rev=478c50560d3c6fad3d613af2a30b35c3bc9f4c0f#478c50560d3c6fad3d613af2a30b35c3bc9f4c0f" +dependencies = [ + "brotli-decompressor 6.0.1", + "chrono", + "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=478c50560d3c6fad3d613af2a30b35c3bc9f4c0f)", + "quick-xml 0.41.0", + "serde", +] + [[package]] name = "craft-metadata" version = "0.1.0" @@ -1312,7 +1326,7 @@ source = "git+https://github.com/storytold/craft-libs?rev=94777dcf7f8962476e96b0 dependencies = [ "brotli-decompressor 6.0.1", "chrono", - "craft-tiff", + "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=94777dcf7f8962476e96b049d08d22e25b9330c2)", "quick-xml 0.41.0", "serde", ] @@ -1335,8 +1349,8 @@ source = "git+https://github.com/storytold/craft-libs?rev=94777dcf7f8962476e96b0 dependencies = [ "chrono", "craft-crw", - "craft-metadata", - "craft-tiff", + "craft-metadata 0.1.0 (git+https://github.com/storytold/craft-libs?rev=94777dcf7f8962476e96b049d08d22e25b9330c2)", + "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=94777dcf7f8962476e96b049d08d22e25b9330c2)", "jxl-oxide", "miniz_oxide 0.9.1", "rayon", @@ -1346,6 +1360,15 @@ dependencies = [ "zune-jpeg", ] +[[package]] +name = "craft-tiff" +version = "0.1.0" +source = "git+https://github.com/storytold/craft-libs?rev=478c50560d3c6fad3d613af2a30b35c3bc9f4c0f#478c50560d3c6fad3d613af2a30b35c3bc9f4c0f" +dependencies = [ + "serde", + "thiserror 2.0.21", +] + [[package]] name = "craft-tiff" version = "0.1.0" @@ -3034,6 +3057,15 @@ dependencies = [ "foldhash 0.2.0", ] +[[package]] +name = "hayro-jpeg2000" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c75ab947623ef4ccaa7acf0579edf7cbb5a73838e3839a7be73335e522f433a1" +dependencies = [ + "fearless_simd", +] + [[package]] name = "heck" version = "0.5.0" @@ -3842,7 +3874,7 @@ dependencies = [ "craft-jpeg", "craft-jxl", "craft-psd", - "craft-tiff", + "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=94777dcf7f8962476e96b049d08d22e25b9330c2)", "dhat", "jpeg-encoder 0.7.1", "jxl-oxide", @@ -3920,7 +3952,7 @@ dependencies = [ "chrono", "craft-docpath", "craft-heif", - "craft-tiff", + "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=94777dcf7f8962476e96b049d08d22e25b9330c2)", "crc32fast", "fs4", "harfrust 0.13.3", @@ -4077,9 +4109,9 @@ version = "0.21.1" dependencies = [ "chrono", "craft-heif", - "craft-metadata", + "craft-metadata 0.1.0 (git+https://github.com/storytold/craft-libs?rev=94777dcf7f8962476e96b049d08d22e25b9330c2)", "craft-psd", - "craft-tiff", + "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=94777dcf7f8962476e96b049d08d22e25b9330c2)", "lightcraft-geom", "proptest", "serde", @@ -4134,7 +4166,7 @@ dependencies = [ "chrono", "craft-image-codecs", "craft-raw", - "craft-tiff", + "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=94777dcf7f8962476e96b049d08d22e25b9330c2)", "dhat", "lightcraft-color", "lightcraft-geom", diff --git a/Cargo.toml b/Cargo.toml index a5b32a85df..b4dfa6fddc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,8 +19,8 @@ craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "b77af389f3 craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "b77af389f30bb10de10d8436ca9b39fe94e3bb67", default-features = false, features = ["decode", "encode"] } # Photo metadata: EXIF, IPTC-IIM, XMP packets and GPX track logs (craft-libs#949) craft-metadata = { git = "https://github.com/storytold/craft-libs", rev = "94777dcf7f8962476e96b049d08d22e25b9330c2" } -craft-jpeg = { git = "https://github.com/storytold/craft-libs", rev = "94777dcf7f8962476e96b049d08d22e25b9330c2" } -craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "94777dcf7f8962476e96b049d08d22e25b9330c2" } +craft-jpeg = { git = "https://github.com/storytold/craft-libs", rev = "478c50560d3c6fad3d613af2a30b35c3bc9f4c0f" } +craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "478c50560d3c6fad3d613af2a30b35c3bc9f4c0f" } craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "f0f4758c01581d79577b9bf5046c06f4e77b1f18" } # craft-update: app-specific pretend versions apply to startup and manual checks. craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "6e03f65bf45181db77ba6229716e6624db9eb25b", features = ["egui"] } From 6b0e7c62e865c624368eb452a993a0c97ecff9cd Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 15 Nov 2026 16:15:50 +0000 Subject: [PATCH 12/18] Use shared TIFF header validation --- Cargo.lock | 55 +++++++++++--- Cargo.toml | 2 +- NOTICE | 124 ++++++++++++++++++++++++++++++++ crates/codecs/src/tiff_codec.rs | 31 ++------ 4 files changed, 174 insertions(+), 38 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 04c07b04f1..439286b284 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1266,13 +1266,16 @@ dependencies = [ [[package]] name = "craft-image-codecs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18#f0f4758c01581d79577b9bf5046c06f4e77b1f18" +source = "git+https://github.com/storytold/craft-libs?rev=fb6cb780061c6744ed6886e7dd1a80ccf449e655#fb6cb780061c6744ed6886e7dd1a80ccf449e655" dependencies = [ "craft-jpeg", - "craft-metadata", + "craft-metadata 0.1.0 (git+https://github.com/storytold/craft-libs?rev=fb6cb780061c6744ed6886e7dd1a80ccf449e655)", + "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=fb6cb780061c6744ed6886e7dd1a80ccf449e655)", + "crc32fast", "exr", "flate2", "half", + "hayro-jpeg2000", "image", "image-webp", "jpeg-encoder", @@ -1289,7 +1292,7 @@ dependencies = [ [[package]] name = "craft-jpeg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18#f0f4758c01581d79577b9bf5046c06f4e77b1f18" +source = "git+https://github.com/storytold/craft-libs?rev=fb6cb780061c6744ed6886e7dd1a80ccf449e655#fb6cb780061c6744ed6886e7dd1a80ccf449e655" dependencies = [ "thiserror 2.0.21", ] @@ -1311,7 +1314,19 @@ source = "git+https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9b dependencies = [ "brotli-decompressor 6.0.1", "chrono", - "craft-tiff", + "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18)", + "quick-xml 0.41.0", + "serde", +] + +[[package]] +name = "craft-metadata" +version = "0.1.0" +source = "git+https://github.com/storytold/craft-libs?rev=fb6cb780061c6744ed6886e7dd1a80ccf449e655#fb6cb780061c6744ed6886e7dd1a80ccf449e655" +dependencies = [ + "brotli-decompressor 6.0.1", + "chrono", + "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=fb6cb780061c6744ed6886e7dd1a80ccf449e655)", "quick-xml 0.41.0", "serde", ] @@ -1334,8 +1349,8 @@ source = "git+https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9b dependencies = [ "chrono", "craft-crw", - "craft-metadata", - "craft-tiff", + "craft-metadata 0.1.0 (git+https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18)", + "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18)", "jxl-oxide", "miniz_oxide 0.9.1", "rayon", @@ -1354,6 +1369,15 @@ dependencies = [ "thiserror 2.0.21", ] +[[package]] +name = "craft-tiff" +version = "0.1.0" +source = "git+https://github.com/storytold/craft-libs?rev=fb6cb780061c6744ed6886e7dd1a80ccf449e655#fb6cb780061c6744ed6886e7dd1a80ccf449e655" +dependencies = [ + "serde", + "thiserror 2.0.21", +] + [[package]] name = "craft-ui" version = "0.1.0" @@ -3033,6 +3057,15 @@ dependencies = [ "foldhash 0.2.0", ] +[[package]] +name = "hayro-jpeg2000" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c75ab947623ef4ccaa7acf0579edf7cbb5a73838e3839a7be73335e522f433a1" +dependencies = [ + "fearless_simd", +] + [[package]] name = "heck" version = "0.5.0" @@ -3834,7 +3867,7 @@ dependencies = [ "craft-image-codecs", "craft-jxl", "craft-psd", - "craft-tiff", + "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18)", "dhat", "jxl-oxide", "lightcraft-color", @@ -3911,7 +3944,7 @@ dependencies = [ "chrono", "craft-docpath", "craft-heif", - "craft-tiff", + "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18)", "crc32fast", "fs4", "harfrust 0.13.3", @@ -4068,9 +4101,9 @@ version = "0.21.1" dependencies = [ "chrono", "craft-heif", - "craft-metadata", + "craft-metadata 0.1.0 (git+https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18)", "craft-psd", - "craft-tiff", + "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18)", "lightcraft-geom", "proptest", "serde", @@ -4125,7 +4158,7 @@ dependencies = [ "chrono", "craft-image-codecs", "craft-raw", - "craft-tiff", + "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18)", "dhat", "lightcraft-color", "lightcraft-geom", diff --git a/Cargo.toml b/Cargo.toml index 2346d9cd48..8c48d8d6d6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "b77af389f3 craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "b77af389f30bb10de10d8436ca9b39fe94e3bb67", default-features = false, features = ["decode", "encode"] } # Photo metadata: EXIF, IPTC-IIM, XMP packets and GPX track logs (craft-libs#949) craft-metadata = { git = "https://github.com/storytold/craft-libs", rev = "f0f4758c01581d79577b9bf5046c06f4e77b1f18" } -craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "f0f4758c01581d79577b9bf5046c06f4e77b1f18" } +craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "fb6cb780061c6744ed6886e7dd1a80ccf449e655" } craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "f0f4758c01581d79577b9bf5046c06f4e77b1f18" } # craft-update: app-specific pretend versions apply to startup and manual checks. craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "6e03f65bf45181db77ba6229716e6624db9eb25b", features = ["egui"] } diff --git a/NOTICE b/NOTICE index 39eb49db2c..e8576d71ee 100644 --- a/NOTICE +++ b/NOTICE @@ -335,3 +335,127 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +JPEG encoding dependency: jpeg-encoder 0.6.1 + +Source: https://crates.io/crates/jpeg-encoder/0.6.1 +Declared license: (MIT OR Apache-2.0) AND IJG. +This software is based in part on the work of the Independent JPEG Group. + +The MIT license and unaltered upstream IJG and SIMD notices follow. The Apache-2.0 +alternative is also retained in licenses/jpeg-encoder-0.6.1 at the repository root +(https://github.com/storytold/craft-libs/tree/main/licenses/jpeg-encoder-0.6.1). +The dependency is used unmodified; no encoder implementation is vendored here. + +LICENSE-MIT + +Copyright (c) 2021 Volker Ströbel + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. +Original src/fdct.rs opening notice + +/* + * Ported from mozjpeg to rust + * + * This file was part of the Independent JPEG Group's software: + * Copyright (C) 1991-1996, Thomas G. Lane. + * libjpeg-turbo Modifications: + * Copyright (C) 2015, 2020, D. R. Commander. + * + * Conditions of distribution and use: + * In plain English: + * + * 1. We don't promise that this software works. (But if you find any bugs, + * please let us know!) + * 2. You can use this software for whatever you want. You don't have to pay us. + * 3. You may not pretend that you wrote this software. If you use it in a + * program, you must acknowledge somewhere in your documentation that + * you've used the IJG code. + * + * In legalese: + * + * The authors make NO WARRANTY or representation, either express or implied, + * with respect to this software, its quality, accuracy, merchantability, or + * fitness for a particular purpose. This software is provided "AS IS", and you, + * its user, assume the entire risk as to its quality and accuracy. + * + * This software is copyright (C) 1991-2020, Thomas G. Lane, Guido Vollbeding. + * All Rights Reserved except as specified below. + * + * Permission is hereby granted to use, copy, modify, and distribute this + * software (or portions thereof) for any purpose, without fee, subject to these + * conditions: + * (1) If any part of the source code for this software is distributed, then this + * README file must be included, with this copyright and no-warranty notice + * unaltered; and any additions, deletions, or changes to the original files + * must be clearly indicated in accompanying documentation. + * (2) If only executable code is distributed, then the accompanying + * documentation must state that "this software is based in part on the work of + * the Independent JPEG Group". + * (3) Permission for use of this software is granted only if the user accepts + * full responsibility for any undesirable consequences; the authors accept + * NO LIABILITY for damages of any kind. + * + * These conditions apply to any software derived from or based on the IJG code, + * not just to the unmodified library. If you use our work, you ought to + * acknowledge us. + * + * Permission is NOT granted for the use of any IJG author's name or company name + * in advertising or publicity relating to this software or products derived from + * it. This software may be referred to only as "the Independent JPEG Group's + * software". + * + * We specifically permit and encourage the use of this software as the basis of + * commercial products, provided that all warranty or liability claims are + * assumed by the product vendor. + * + * This file contains a slower but more accurate integer implementation of the + * forward DCT (Discrete Cosine Transform). + * + * A 2-D DCT can be done by 1-D DCT on each row followed by 1-D DCT + * on each column. Direct algorithms are also available, but they are + * much more complex and seem not to be any faster when reduced to code. + * + * This implementation is based on an algorithm described in + * C. Loeffler, A. Ligtenberg and G. Moschytz, "Practical Fast 1-D DCT + * Algorithms with 11 Multiplications", Proc. Int'l. Conf. on Acoustics, + * Speech, and Signal Processing 1989 (ICASSP '89), pp. 988-991. + * The primary algorithm described there uses 11 multiplies and 29 adds. + * We use their alternate method with 12 multiplies and 32 adds. + * The advantage of this method is that no data path contains more than one + * multiplication; this allows a very simple and accurate implementation in + * scaled fixed-point arithmetic, with a minimal number of shifts. + */ + +Original src/avx2/fdct.rs opening notice + +/* + * Ported from mozjpeg / jfdctint-avx2.asm to rust + * Copyright 2009 Pierre Ossman for Cendio AB + * Copyright (C) 2009, 2016, 2018, 2020, D. R. Commander. + * + * Based on the x86 SIMD extension for IJG JPEG library + * Copyright (C) 1999-2006, MIYASAKA Masaru. + */ diff --git a/crates/codecs/src/tiff_codec.rs b/crates/codecs/src/tiff_codec.rs index 1ad9c802f8..955756ca66 100644 --- a/crates/codecs/src/tiff_codec.rs +++ b/crates/codecs/src/tiff_codec.rs @@ -68,30 +68,9 @@ pub(crate) fn decode(bytes: &[u8], opts: &DecodeOptions) -> Result { /// as a decode would refuse it: a layout or compression we can't decode, or strips/tiles that /// start past the end of the file (truncated). The compressed data itself is not checked. pub(crate) fn header(bytes: &[u8]) -> Result<(u32, u32, u16)> { - let (tiff, complete) = craft_tiff::Tiff::parse_with_status(bytes, &Default::default()).map_err(err)?; - if !complete { - return Err(err("truncated TIFF")); - } - let ifd = tiff.ifds.first().ok_or_else(|| err("no IFD"))?; - let info = ifd.image().map_err(err)?; - check_size(F, info.width as u64, info.height as u64, &DecodeOptions::default())?; - let bits = info.bits_per_sample.first().copied().unwrap_or(1); - if bits < 8 && info.planar == 2 && info.samples_per_pixel > 1 { - return Err(Error::Unsupported(F, "planar TIFF with samples narrower than a byte")); - } - if !(matches!(info.photometric, 0 | 1 | 2 | 3 | 5) || info.photometric == 6 && info.compression == 7) { - return Err(Error::Unsupported(F, "colour type")); - } - // what `craft-image-codecs`'s TIFF decoder decompresses: none, CCITT G4, LZW, JPEG, Deflate, PackBits - if !matches!(info.compression, 1 | 4 | 5 | 7 | 8 | 32773 | 32946) { - return Err(Error::Unsupported(F, "compression method")); - } - let len = bytes.len() as u64; - if info.offsets.is_empty() - || info.offsets.iter().zip(&info.byte_counts).any(|(&o, &c)| c > 0 && (o >= len || (info.compression == 1 && o.saturating_add(c) > len))) - { - return Err(err("truncated: image data past the end of the file")); - } - let orientation = ifd.u16(craft_tiff::tags::ORIENTATION).filter(|o| (1..=8).contains(o)).unwrap_or(1); - Ok((info.width, info.height, orientation)) + craft_image_codecs::tiff_probe::header(bytes, DecodeOptions::default().max_pixels).map_err(|error| match error { + craft_image_codecs::tiff_probe::Error::TooLarge { width, height } => Error::TooLarge(u64::from(width), u64::from(height)), + craft_image_codecs::tiff_probe::Error::Unsupported(reason) => Error::Unsupported(F, reason), + craft_image_codecs::tiff_probe::Error::Malformed(message) => err(message), + }) } From 3d524ceef7140557f065c1352bde17a525f48116 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 15 Nov 2026 16:17:55 +0000 Subject: [PATCH 13/18] Share TIFF decode preflight inspection --- Cargo.lock | 20 ++++++++++---------- Cargo.toml | 2 +- crates/codecs/src/tiff_codec.rs | 22 ++++++++++------------ 3 files changed, 21 insertions(+), 23 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 439286b284..e7b49767c2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1266,11 +1266,11 @@ dependencies = [ [[package]] name = "craft-image-codecs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=fb6cb780061c6744ed6886e7dd1a80ccf449e655#fb6cb780061c6744ed6886e7dd1a80ccf449e655" +source = "git+https://github.com/storytold/craft-libs?rev=b16c5908ae777f81fa33a9e9ad0e22b09b37a383#b16c5908ae777f81fa33a9e9ad0e22b09b37a383" dependencies = [ "craft-jpeg", - "craft-metadata 0.1.0 (git+https://github.com/storytold/craft-libs?rev=fb6cb780061c6744ed6886e7dd1a80ccf449e655)", - "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=fb6cb780061c6744ed6886e7dd1a80ccf449e655)", + "craft-metadata 0.1.0 (git+https://github.com/storytold/craft-libs?rev=b16c5908ae777f81fa33a9e9ad0e22b09b37a383)", + "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=b16c5908ae777f81fa33a9e9ad0e22b09b37a383)", "crc32fast", "exr", "flate2", @@ -1292,7 +1292,7 @@ dependencies = [ [[package]] name = "craft-jpeg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=fb6cb780061c6744ed6886e7dd1a80ccf449e655#fb6cb780061c6744ed6886e7dd1a80ccf449e655" +source = "git+https://github.com/storytold/craft-libs?rev=b16c5908ae777f81fa33a9e9ad0e22b09b37a383#b16c5908ae777f81fa33a9e9ad0e22b09b37a383" dependencies = [ "thiserror 2.0.21", ] @@ -1310,11 +1310,11 @@ dependencies = [ [[package]] name = "craft-metadata" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18#f0f4758c01581d79577b9bf5046c06f4e77b1f18" +source = "git+https://github.com/storytold/craft-libs?rev=b16c5908ae777f81fa33a9e9ad0e22b09b37a383#b16c5908ae777f81fa33a9e9ad0e22b09b37a383" dependencies = [ "brotli-decompressor 6.0.1", "chrono", - "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18)", + "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=b16c5908ae777f81fa33a9e9ad0e22b09b37a383)", "quick-xml 0.41.0", "serde", ] @@ -1322,11 +1322,11 @@ dependencies = [ [[package]] name = "craft-metadata" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=fb6cb780061c6744ed6886e7dd1a80ccf449e655#fb6cb780061c6744ed6886e7dd1a80ccf449e655" +source = "git+https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18#f0f4758c01581d79577b9bf5046c06f4e77b1f18" dependencies = [ "brotli-decompressor 6.0.1", "chrono", - "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=fb6cb780061c6744ed6886e7dd1a80ccf449e655)", + "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18)", "quick-xml 0.41.0", "serde", ] @@ -1363,7 +1363,7 @@ dependencies = [ [[package]] name = "craft-tiff" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18#f0f4758c01581d79577b9bf5046c06f4e77b1f18" +source = "git+https://github.com/storytold/craft-libs?rev=b16c5908ae777f81fa33a9e9ad0e22b09b37a383#b16c5908ae777f81fa33a9e9ad0e22b09b37a383" dependencies = [ "serde", "thiserror 2.0.21", @@ -1372,7 +1372,7 @@ dependencies = [ [[package]] name = "craft-tiff" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=fb6cb780061c6744ed6886e7dd1a80ccf449e655#fb6cb780061c6744ed6886e7dd1a80ccf449e655" +source = "git+https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18#f0f4758c01581d79577b9bf5046c06f4e77b1f18" dependencies = [ "serde", "thiserror 2.0.21", diff --git a/Cargo.toml b/Cargo.toml index 8c48d8d6d6..086f45fcd6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "b77af389f3 craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "b77af389f30bb10de10d8436ca9b39fe94e3bb67", default-features = false, features = ["decode", "encode"] } # Photo metadata: EXIF, IPTC-IIM, XMP packets and GPX track logs (craft-libs#949) craft-metadata = { git = "https://github.com/storytold/craft-libs", rev = "f0f4758c01581d79577b9bf5046c06f4e77b1f18" } -craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "fb6cb780061c6744ed6886e7dd1a80ccf449e655" } +craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "b16c5908ae777f81fa33a9e9ad0e22b09b37a383" } craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "f0f4758c01581d79577b9bf5046c06f4e77b1f18" } # craft-update: app-specific pretend versions apply to startup and manual checks. craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "6e03f65bf45181db77ba6229716e6624db9eb25b", features = ["egui"] } diff --git a/crates/codecs/src/tiff_codec.rs b/crates/codecs/src/tiff_codec.rs index 955756ca66..02395472c9 100644 --- a/crates/codecs/src/tiff_codec.rs +++ b/crates/codecs/src/tiff_codec.rs @@ -1,4 +1,4 @@ -//! TIFF decode via `craft-image-codecs` and header/IFD inspection via `craft-tiff`. +//! TIFF decode and header inspection via `craft-image-codecs`. use crate::convert::{Buf, Meta, Model, Raw, check_size, finish}; use crate::{DecodeOptions, Decoded, Error, Format, Result}; @@ -10,15 +10,9 @@ fn err(e: impl std::fmt::Display) -> Error { } pub(crate) fn decode(bytes: &[u8], opts: &DecodeOptions) -> Result { - let (tiff, complete) = craft_tiff::Tiff::parse_with_status(bytes, &Default::default()).map_err(err)?; - if !complete { - return Err(err("truncated TIFF")); - } - let ifd = tiff.ifds.first().ok_or_else(|| err("no IFD"))?; - let info = ifd.image().map_err(err)?; - check_size(F, info.width as u64, info.height as u64, opts)?; - let orientation = ifd.u16(craft_tiff::tags::ORIENTATION); - let bit_depth = info.bits_per_sample.first().copied().unwrap_or(8) as u8; + let info = craft_image_codecs::tiff_probe::decode_info(bytes, opts.max_pixels).map_err(probe_error)?; + let orientation = info.orientation; + let bit_depth = info.bit_depth; let ic_opts = craft_image_codecs::DecodeOptions { limits: craft_image_codecs::Limits { @@ -68,9 +62,13 @@ pub(crate) fn decode(bytes: &[u8], opts: &DecodeOptions) -> Result { /// as a decode would refuse it: a layout or compression we can't decode, or strips/tiles that /// start past the end of the file (truncated). The compressed data itself is not checked. pub(crate) fn header(bytes: &[u8]) -> Result<(u32, u32, u16)> { - craft_image_codecs::tiff_probe::header(bytes, DecodeOptions::default().max_pixels).map_err(|error| match error { + craft_image_codecs::tiff_probe::header(bytes, DecodeOptions::default().max_pixels).map_err(probe_error) +} + +fn probe_error(error: craft_image_codecs::tiff_probe::Error) -> Error { + match error { craft_image_codecs::tiff_probe::Error::TooLarge { width, height } => Error::TooLarge(u64::from(width), u64::from(height)), craft_image_codecs::tiff_probe::Error::Unsupported(reason) => Error::Unsupported(F, reason), craft_image_codecs::tiff_probe::Error::Malformed(message) => err(message), - }) + } } From 47742598afbfca8f5c61c6b33ba5547de59b4835 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 15 Nov 2026 19:12:44 +0000 Subject: [PATCH 14/18] Use coverage settle budget for asynchronous UI checks --- crates/ui-egui/src/headless/tests.rs | 2 +- crates/ui-egui/src/tests/activity.rs | 2 +- crates/ui-egui/src/tests/preview_limit.rs | 6 +++--- crates/ui-egui/src/tests/slideshow.rs | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/ui-egui/src/headless/tests.rs b/crates/ui-egui/src/headless/tests.rs index eb05be0c4c..157f389334 100644 --- a/crates/ui-egui/src/headless/tests.rs +++ b/crates/ui-egui/src/headless/tests.rs @@ -2343,7 +2343,7 @@ fn preview_only_raw_shows_badge_and_notices() { // …which re-reads the file and says what came of it (a demo photo has none to re-read) let r = h.request("ui.clickWidget", json!({"id": "button:reloadPreviewOnly:info"}), t); assert_eq!(r["ok"], true, "{r}"); - h.settle(SETTLE); + // Read the timed toast before settling advances the simulated clock past its expiry. assert_eq!(h.app.ui.toast.clone().map(|x| x.0).as_deref(), Some("This raw variant still can't be decoded")); // a regular photo: no notice h.request("engine.execute", json!({"command": "library.select", "params": {"ids": [other.0]}}), t); diff --git a/crates/ui-egui/src/tests/activity.rs b/crates/ui-egui/src/tests/activity.rs index b353405ffc..f8f32607a2 100644 --- a/crates/ui-egui/src/tests/activity.rs +++ b/crates/ui-egui/src/tests/activity.rs @@ -509,7 +509,7 @@ fn batch_merge_runs_each_set_in_turn() { let rows = h.app.session.activity.list(); assert_eq!((rows.len(), rows.first().map(|r| r.kind)), (1, Some("merge"))); // the first merge finishes and the second starts by itself - assert!(h.step_until(T, |h| h.app.merge.batch.len() == 1 && h.app.merge.final_task.is_some())); + assert!(h.step_until(super::ui_settle_timeout(), |h| h.app.merge.batch.len() == 1 && h.app.merge.final_task.is_some())); assert_eq!(h.app.session.catalog.len(), 10); // cancelling the second drops the third let rows = h.app.session.activity.list(); diff --git a/crates/ui-egui/src/tests/preview_limit.rs b/crates/ui-egui/src/tests/preview_limit.rs index 5d1c1b7d0e..8d19a71734 100644 --- a/crates/ui-egui/src/tests/preview_limit.rs +++ b/crates/ui-egui/src/tests/preview_limit.rs @@ -162,7 +162,7 @@ mod in_the_loupe { let mut h = Headless::new(app, size, 1.0); let r = h.request("ui.set", json!({"view": "detail", "right": "none", "filmstrip": false}), T); assert_eq!(r["ok"], true, "{r}"); - h.settle(SETTLE); + h.settle(super::super::ui_settle_timeout()); let native = { let id = h.app.session.active().expect("a photo is open"); let p = h.app.session.catalog.photo(id).expect("it is in the catalog"); @@ -848,7 +848,7 @@ mod in_the_loupe { #[test] fn pinch_display_fit_does_not_follow_the_old_photo() { let (mut h, _) = demo_detail_in([1400.0, 900.0]); - assert!(h.settle(SETTLE)); + assert!(h.settle(super::super::ui_settle_timeout())); let old = h.app.session.active().unwrap(); let next = h.app.session.visible_cloned().into_iter().find(|id| *id != old).unwrap(); let initial_fit = drawn_fit(&h); @@ -874,7 +874,7 @@ mod in_the_loupe { fn pinch_display_fit_is_shared_with_a_hover_during_the_hold() { let (mut h, _) = demo_detail_in([1400.0, 900.0]); assert_eq!(h.request("engine.execute", json!({"command": "panel.profiles"}), T)["ok"], true); - assert!(h.settle(SETTLE)); + assert!(h.settle(super::super::ui_settle_timeout())); let initial_fit = drawn_fit(&h); let work = std::rc::Rc::new(std::cell::RefCell::new(PinchWork::default())); h.app.renderer.set_offload(Box::new(PinchOffload(work.clone()))); diff --git a/crates/ui-egui/src/tests/slideshow.rs b/crates/ui-egui/src/tests/slideshow.rs index 4e230fe7a5..1659005ab7 100644 --- a/crates/ui-egui/src/tests/slideshow.rs +++ b/crates/ui-egui/src/tests/slideshow.rs @@ -457,7 +457,7 @@ fn a_photo_deleted_while_it_plays_does_not_stall_the_slideshow() { run(&mut h, "photo.delete", json!({"ids": [next.0]})); run(&mut h, "photo.deletePermanently", json!({"ids": [next.0]})); assert!(h.app.session.catalog.photo(next).is_none()); - assert!(h.step_until(SETTLE, |h| h.app.ui.slideshow.as_ref().is_some_and(|r| r.play.position().0 >= 3)), "it plays on"); + assert!(h.step_until(super::ui_settle_timeout(), |h| h.app.ui.slideshow.as_ref().is_some_and(|r| r.play.position().0 >= 3)), "it plays on"); assert!(photos.len() > 3); h.settle(SETTLE); } @@ -630,7 +630,7 @@ fn settings_shows_the_slide_layout_and_a_live_preview() { assert!(has(&h, w), "{w}"); } // the preview is the composed slide, rendered off the UI thread - assert!(h.step_until(SETTLE, |h| h.app.renderer.textures.get(&Slot::SlidePreview).is_some_and(|t| t.photo == first))); + assert!(h.step_until(super::ui_settle_timeout(), |h| h.app.renderer.textures.get(&Slot::SlidePreview).is_some_and(|t| t.photo == first))); // a checkbox goes through slideshow.layout, and its controls appear (scrolled into view) reveal(&mut h, "check:settings.slideshowShadow"); let r = h.request("ui.clickWidget", json!({"id": "check:settings.slideshowShadow"}), T); @@ -641,7 +641,7 @@ fn settings_shows_the_slide_layout_and_a_live_preview() { // a changed layout renders the preview again (once it has settled) let before = h.app.renderer.textures.get(&Slot::SlidePreview).map(|t| t.key); run(&mut h, "slideshow.layout", json!({"margins": 0.2, "backdropColor": "#00ff00"})); - assert!(h.step_until(SETTLE, |h| h.app.renderer.textures.get(&Slot::SlidePreview).map(|t| t.key) != before)); + assert!(h.step_until(super::ui_settle_timeout(), |h| h.app.renderer.textures.get(&Slot::SlidePreview).map(|t| t.key) != before)); h.step(); // (the preview is pinned above the page: in view already) reveal(&mut h, "slideshow:preview"); From 829ed6f69a50ff9b0070c1bff87897a24f484532 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 15 Nov 2026 17:53:24 -0500 Subject: [PATCH 15/18] Delegate print PDF serialization to shared bounded raster writer --- Cargo.lock | 19 ++ Cargo.toml | 1 + crates/engine/Cargo.toml | 1 + crates/engine/src/print_pdf.rs | 341 ++------------------------------- 4 files changed, 34 insertions(+), 328 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b322552f35..f2d6118f8d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1346,6 +1346,15 @@ dependencies = [ "encoding_rs", ] +[[package]] +name = "craft-pdf" +version = "0.1.0" +source = "git+https://github.com/storytold/craft-libs?rev=2651dbeb2b13f621db23f65347380e7f26e316f0#2651dbeb2b13f621db23f65347380e7f26e316f0" +dependencies = [ + "flate2", + "roxmltree", +] + [[package]] name = "craft-psd" version = "0.1.0" @@ -3969,6 +3978,7 @@ dependencies = [ "craft-docpath", "craft-heif", "craft-mime", + "craft-pdf", "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=94777dcf7f8962476e96b049d08d22e25b9330c2)", "crc32fast", "fs4", @@ -6095,6 +6105,15 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "roxmltree" +version = "0.21.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9da7f59328b09405b181fee1018925fad50f157afb43c0c0f5c522c256dd5907" +dependencies = [ + "memchr", +] + [[package]] name = "rsa" version = "0.9.10" diff --git a/Cargo.toml b/Cargo.toml index ec2701598a..c0ca9ebea3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,7 @@ rust-version = "1.95" repository = "https://github.com/storytold/lightcraft" [workspace.dependencies] +craft-pdf-print = { package = "craft-pdf", git = "https://github.com/storytold/craft-libs", rev = "2651dbeb2b13f621db23f65347380e7f26e316f0", default-features = false, features = ["write-raster"] } craft-ui = { git = "https://github.com/storytold/craft-libs", rev = "c5a1cbfb5f9049f9270955caffb5bee5997aebf7", features = ["serde"] } craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "c5a1cbfb5f9049f9270955caffb5bee5997aebf7" } # Canon CRW decoder shared with the other Craft apps diff --git a/crates/engine/Cargo.toml b/crates/engine/Cargo.toml index dd8a582d92..0715ce4dc3 100644 --- a/crates/engine/Cargo.toml +++ b/crates/engine/Cargo.toml @@ -9,6 +9,7 @@ description = "LightCraft engine: session, command registry, history, render job workspace = true [dependencies] +craft-pdf-print.workspace = true craft-mime = { workspace = true } # Paths stored in a Lightroom catalog are followed only to local files or the catalog's share. craft-docpath = { workspace = true } diff --git a/crates/engine/src/print_pdf.rs b/crates/engine/src/print_pdf.rs index abce4061e3..43db29910d 100644 --- a/crates/engine/src/print_pdf.rs +++ b/crates/engine/src/print_pdf.rs @@ -1,334 +1,30 @@ -//! A small PDF writer for print output: pages of a given size in points, each with raster images -//! placed on it, tagged with their ICC profile (`ICCBased`) so the numbers mean the same colour in -//! every reader and RIP, Flate-compressed (lossless) at 8 or 16 bits per component, or carried as -//! JPEG (`DCTDecode`) where small files matter more than exact samples. Optionally an output intent: -//! the printing condition (the printer / paper profile) the file was made for, as PDF/X readers -//! expect it in the catalog. Profiles shared by several images are written once. -//! -//! The file is PDF 1.6 (16-bit images need 1.5): classic cross-reference table, no object streams, -//! deterministic (no dates or IDs), so the same pages always give the same bytes. -//! -//! Sources: ISO 32000-1:2008 (§7.3 objects, §7.5 file structure, §8.6.5.5 ICCBased colour spaces, -//! §8.9 images, §14.11.5 output intents). Own design. - -use std::collections::HashMap; +//! Print-page policy and adaptation to shared PDF raster serialization. +//! Layout, rendering, profile choice and job limits stay in the app. +pub use craft_pdf_print::write_raster::print::{ImageData, OutputIntent, PdfImage, PdfPage, Placement}; +#[cfg(test)] use std::sync::Arc; -/// Pages per document: a print job beyond this is a mistake, not a book. -pub const MAX_PAGES: usize = 1000; -/// Images per page. -pub const MAX_IMAGES_PER_PAGE: usize = 256; -/// Largest page side in points (200 inches): more than any printer's roll. -pub const MAX_PAGE_POINTS: f64 = 14_400.0; -/// Largest image, in pixels per side. -pub const MAX_IMAGE_SIDE: u32 = 65_535; - -/// How an image's samples are stored. -#[derive(Clone, Debug, PartialEq)] -pub enum ImageData { - /// Interleaved samples, `bits` (8 or 16) per component, 16-bit values big-endian: compressed - /// losslessly in the file. - Raw { bits: u8, samples: Vec }, - /// A baseline JPEG stream, copied into the file as it is. - Jpeg(Vec), - /// Samples already compressed with zlib (see [`PdfImage::deflated`]), `bits` per component. - Flate { bits: u8, data: Vec }, -} - -/// A raster image and the colour space its samples are in. -#[derive(Clone, Debug, PartialEq)] -pub struct PdfImage { - pub width: u32, - pub height: u32, - /// Components per pixel: 1 (grey), 3 (RGB) or 4 (CMYK). - pub channels: u8, - pub data: ImageData, - /// The ICC profile the samples are in; without one the image is device colour. - pub icc: Option>>, -} - -impl PdfImage { - /// An image from interleaved 16-bit samples. - pub fn from_u16(width: u32, height: u32, channels: u8, samples: &[u16], icc: Option>>) -> PdfImage { - let bytes = samples.iter().flat_map(|v| v.to_be_bytes()).collect(); - PdfImage { width, height, channels, data: ImageData::Raw { bits: 16, samples: bytes }, icc } - } - - /// The same image with its samples compressed now (checked first), so a long print doesn't - /// hold every page's uncompressed samples until the file is written. - pub fn deflated(self) -> Result { - self.check()?; - let data = match self.data { - ImageData::Raw { bits, samples } => ImageData::Flate { bits, data: deflate(&samples) }, - other => other, - }; - Ok(PdfImage { data, ..self }) - } - - fn check(&self) -> Result<(), String> { - if self.width == 0 || self.height == 0 || self.width > MAX_IMAGE_SIDE || self.height > MAX_IMAGE_SIDE { - return Err(format!("an image of {} × {} pixels can't be written", self.width, self.height)); - } - if !matches!(self.channels, 1 | 3 | 4) { - return Err(format!("images have 1, 3 or 4 components, not {}", self.channels)); - } - match &self.data { - ImageData::Raw { bits, samples } => { - if !matches!(bits, 8 | 16) { - return Err(format!("images have 8 or 16 bits per component, not {bits}")); - } - let want = u64::from(self.width) * u64::from(self.height) * u64::from(self.channels) * u64::from(bits / 8); - if samples.len() as u64 != want { - return Err(format!("the image needs {want} bytes of samples, not {}", samples.len())); - } - } - ImageData::Jpeg(data) => { - if !data.starts_with(&[0xFF, 0xD8]) { - return Err("the image isn't a JPEG stream".into()); - } - } - ImageData::Flate { bits, data } => { - if !matches!(bits, 8 | 16) || data.is_empty() { - return Err("a compressed image has 8 or 16 bits per component and some data".into()); - } - } - } - Ok(()) - } -} - -/// Where an image goes on its page, in points from the page's bottom-left corner. -#[derive(Clone, Copy, Debug, PartialEq)] -pub struct Placement { - pub x: f64, - pub y: f64, - pub width: f64, - pub height: f64, -} - -/// One page: its size in points and the images on it, drawn in order (later ones on top). -#[derive(Clone, Debug, PartialEq)] -pub struct PdfPage { - pub width: f64, - pub height: f64, - pub images: Vec<(PdfImage, Placement)>, -} - -/// The printing condition the document is made for (PDF/X-style output intent). -#[derive(Clone, Debug, PartialEq)] -pub struct OutputIntent { - /// The printer / paper profile. - pub icc: Arc>, - /// Its components: 1, 3 or 4. - pub channels: u8, - /// A name for the condition (the profile's description). - pub condition: String, -} - -/// Document-level settings. #[derive(Clone, Debug, Default, PartialEq)] pub struct PdfInfo { pub title: Option, pub output_intent: Option, } -fn finite(v: f64) -> bool { - v.is_finite() -} - -/// A number as PDF writes it: up to four decimals, no exponent, no trailing zeros. -fn num(v: f64) -> String { - let s = format!("{:.4}", if finite(v) { v } else { 0.0 }); - let s = s.trim_end_matches('0').trim_end_matches('.'); - if s == "-0" || s.is_empty() { "0".into() } else { s.into() } -} - -/// A text string: plain ASCII as a literal string, anything else as UTF-16BE with a byte order mark. -fn text(s: &str) -> String { - if s.bytes().all(|b| (0x20..0x7f).contains(&b)) { - let mut out = String::with_capacity(s.len() + 2); - out.push('('); - for c in s.chars() { - if matches!(c, '(' | ')' | '\\') { - out.push('\\'); - } - out.push(c); - } - out.push(')'); - out - } else { - let mut out = String::from("'); - out - } -} - -struct Writer { - out: Vec, - offsets: Vec, -} - -impl Writer { - /// Reserve an object number (filled later by [`Writer::object`]). - fn reserve(&mut self) -> usize { - self.offsets.push(0); - self.offsets.len() - } - - fn object(&mut self, id: usize, dict: &str, stream: Option<&[u8]>) { - if let Some(slot) = self.offsets.get_mut(id.wrapping_sub(1)) { - *slot = self.out.len(); - } - self.out.extend_from_slice(format!("{id} 0 obj\n{dict}").as_bytes()); - if let Some(data) = stream { - self.out.extend_from_slice(b"\nstream\n"); - self.out.extend_from_slice(data); - self.out.extend_from_slice(b"\nendstream"); - } - self.out.extend_from_slice(b"\nendobj\n"); - } -} - -fn deflate(data: &[u8]) -> Vec { - miniz_oxide::deflate::compress_to_vec_zlib(data, 6) -} - -/// Write a document. Errors name the first page or image that can't be written. pub fn write(pages: &[PdfPage], info: &PdfInfo) -> Result, String> { - if pages.is_empty() { - return Err("there are no pages to write".into()); - } - if pages.len() > MAX_PAGES { - return Err(format!("a document holds at most {MAX_PAGES} pages")); - } - for (n, page) in pages.iter().enumerate() { - let n = n + 1; - if !(finite(page.width) && finite(page.height)) - || page.width <= 0.0 - || page.height <= 0.0 - || page.width > MAX_PAGE_POINTS - || page.height > MAX_PAGE_POINTS - { - return Err(format!("page {n} has no usable size")); - } - if page.images.len() > MAX_IMAGES_PER_PAGE { - return Err(format!("page {n} has more than {MAX_IMAGES_PER_PAGE} images")); - } - for (image, at) in &page.images { - image.check().map_err(|e| format!("page {n}: {e}"))?; - if ![at.x, at.y, at.width, at.height].into_iter().all(finite) || at.width <= 0.0 || at.height <= 0.0 { - return Err(format!("page {n}: an image has no usable placement")); - } - } - } - if let Some(intent) = &info.output_intent - && !matches!(intent.channels, 1 | 3 | 4) - { - return Err("the output intent's profile has 1, 3 or 4 components".into()); - } - - let mut w = Writer { out: Vec::new(), offsets: Vec::new() }; - w.out.extend_from_slice(b"%PDF-1.6\n%\xE2\xE3\xCF\xD3\n"); - let catalog = w.reserve(); - let pages_id = w.reserve(); - let info_id = w.reserve(); - - // ICC profiles, each written once (keyed by content) with its component count - let mut profiles: HashMap, usize> = HashMap::new(); - let mut profile = |w: &mut Writer, icc: &Arc>, n: u8| -> usize { - if let Some(&id) = profiles.get(icc.as_slice()) { - return id; - } - let id = w.reserve(); - let data = deflate(icc); - let alternate = match n { - 1 => "/DeviceGray", - 4 => "/DeviceCMYK", - _ => "/DeviceRGB", - }; - w.object(id, &format!("<< /N {n} /Alternate {alternate} /Filter /FlateDecode /Length {} >>", data.len()), Some(&data)); - profiles.insert(icc.to_vec(), id); - id - }; - - let intent_id = info.output_intent.as_ref().map(|intent| profile(&mut w, &intent.icc, intent.channels)); - - let mut kids = Vec::with_capacity(pages.len()); - for page in pages { - let page_id = w.reserve(); - let mut xobjects = String::new(); - let mut content = String::new(); - for (k, (image, at)) in page.images.iter().enumerate() { - let space = match &image.icc { - Some(icc) => format!("[/ICCBased {} 0 R]", profile(&mut w, icc, image.channels)), - None => match image.channels { - 1 => "/DeviceGray".into(), - 4 => "/DeviceCMYK".into(), - _ => "/DeviceRGB".into(), - }, - }; - let id = w.reserve(); - let (bits, filter, data): (u8, &str, std::borrow::Cow<[u8]>) = match &image.data { - ImageData::Raw { bits, samples } => (*bits, "/FlateDecode", deflate(samples).into()), - ImageData::Flate { bits, data } => (*bits, "/FlateDecode", data.as_slice().into()), - ImageData::Jpeg(jpeg) => (8, "/DCTDecode", jpeg.as_slice().into()), - }; - w.object( - id, - &format!( - "<< /Type /XObject /Subtype /Image /Width {} /Height {} /ColorSpace {space} /BitsPerComponent {bits} /Filter {filter} /Length {} >>", - image.width, - image.height, - data.len() - ), - Some(&data), - ); - xobjects.push_str(&format!("/Im{k} {id} 0 R ")); - content.push_str(&format!("q {} 0 0 {} {} {} cm /Im{k} Do Q\n", num(at.width), num(at.height), num(at.x), num(at.y))); - } - let content_id = w.reserve(); - let stream = deflate(content.as_bytes()); - w.object(content_id, &format!("<< /Filter /FlateDecode /Length {} >>", stream.len()), Some(&stream)); - w.object( - page_id, - &format!( - "<< /Type /Page /Parent {pages_id} 0 R /MediaBox [0 0 {} {}] /Resources << /XObject << {xobjects}>> >> /Contents {content_id} 0 R >>", - num(page.width), - num(page.height) - ), - None, - ); - kids.push(format!("{page_id} 0 R")); - } - w.object(pages_id, &format!("<< /Type /Pages /Count {} /Kids [{}] >>", kids.len(), kids.join(" ")), None); - - let intents = match (&info.output_intent, intent_id) { - (Some(intent), Some(id)) => format!( - " /OutputIntents [<< /Type /OutputIntent /S /GTS_PDFX /OutputConditionIdentifier (Custom) /Info {} /DestOutputProfile {id} 0 R >>]", - text(&intent.condition) - ), - _ => String::new(), - }; - w.object(catalog, &format!("<< /Type /Catalog /Pages {pages_id} 0 R{intents} >>"), None); - let title = info.title.as_deref().map(|t| format!(" /Title {}", text(t))).unwrap_or_default(); - w.object(info_id, &format!("<< /Producer (LightCraft){title} >>"), None); - - let xref = w.out.len(); - let mut table = format!("xref\n0 {}\n0000000000 65535 f \n", w.offsets.len() + 1); - for offset in &w.offsets { - table.push_str(&format!("{offset:010} 00000 n \n")); - } - table.push_str(&format!("trailer\n<< /Size {} /Root {catalog} 0 R /Info {info_id} 0 R >>\nstartxref\n{xref}\n%%EOF\n", w.offsets.len() + 1)); - w.out.extend_from_slice(table.as_bytes()); - Ok(w.out) + craft_pdf_print::write_raster::print::write( + pages, + &craft_pdf_print::write_raster::print::PdfInfo { + title: info.title.clone(), + output_intent: info.output_intent.clone(), + producer: "LightCraft".into(), + }, + ) } #[cfg(test)] mod tests { use super::*; + use craft_pdf_print::write_raster::print::MAX_PAGES; use lightcraft_codecs::NamedSpace; /// The body of object `id` (dictionary and raw stream bytes), found through the xref table. @@ -506,15 +202,4 @@ mod tests { let info = PdfInfo { title: None, output_intent: Some(OutputIntent { icc: srgb(), channels: 2, condition: String::new() }) }; assert!(write(&[page(vec![])], &info).is_err()); } - - #[test] - fn numbers_and_strings() { - assert_eq!(num(612.0), "612"); - assert_eq!(num(72.5), "72.5"); - assert_eq!(num(-0.00001), "0"); - assert_eq!(num(f64::NAN), "0"); - assert_eq!(num(1.0 / 3.0), "0.3333"); - assert_eq!(text("a(b)c\\"), "(a\\(b\\)c\\\\)"); - assert_eq!(text("é"), ""); - } } From cac5358baa2a2d2f39395947b631213c47b05ce5 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 15 Nov 2026 18:25:13 -0500 Subject: [PATCH 16/18] Regenerate Flatpak sources for shared print PDF dependency --- packaging/linux/flatpak/cargo-sources.json | 1985 +++++++++++++++++--- 1 file changed, 1735 insertions(+), 250 deletions(-) diff --git a/packaging/linux/flatpak/cargo-sources.json b/packaging/linux/flatpak/cargo-sources.json index 8d723f2f41..47d8e3021f 100644 --- a/packaging/linux/flatpak/cargo-sources.json +++ b/packaging/linux/flatpak/cargo-sources.json @@ -2,14 +2,50 @@ { "type": "git", "url": "https://github.com/storytold/craft-libs", - "commit": "82a24b006eefa036b43c09a67fb9a3fbd17ffe63", - "dest": "flatpak-cargo/git/craft-libs-82a24b0" + "commit": "94777dcf7f8962476e96b049d08d22e25b9330c2", + "dest": "flatpak-cargo/git/craft-libs-94777dc" }, { "type": "git", "url": "https://github.com/storytold/craft-libs", - "commit": "25da1314d443171b4adeaad2cd9454b273f35c6f", - "dest": "flatpak-cargo/git/craft-libs-25da131" + "commit": "f0f4758c01581d79577b9bf5046c06f4e77b1f18", + "dest": "flatpak-cargo/git/craft-libs-f0f4758" + }, + { + "type": "git", + "url": "https://github.com/storytold/craft-libs", + "commit": "c5a1cbfb5f9049f9270955caffb5bee5997aebf7", + "dest": "flatpak-cargo/git/craft-libs-c5a1cbf" + }, + { + "type": "git", + "url": "https://github.com/storytold/craft-libs", + "commit": "9dcbd90c7d16e1a668b3afa057e940e2db328b93", + "dest": "flatpak-cargo/git/craft-libs-9dcbd90" + }, + { + "type": "git", + "url": "https://github.com/storytold/craft-libs", + "commit": "b77af389f30bb10de10d8436ca9b39fe94e3bb67", + "dest": "flatpak-cargo/git/craft-libs-b77af38" + }, + { + "type": "git", + "url": "https://github.com/storytold/craft-libs", + "commit": "478c50560d3c6fad3d613af2a30b35c3bc9f4c0f", + "dest": "flatpak-cargo/git/craft-libs-478c505" + }, + { + "type": "git", + "url": "https://github.com/storytold/craft-libs", + "commit": "2651dbeb2b13f621db23f65347380e7f26e316f0", + "dest": "flatpak-cargo/git/craft-libs-2651dbe" + }, + { + "type": "git", + "url": "https://github.com/storytold/craft-libs", + "commit": "6e03f65bf45181db77ba6229716e6624db9eb25b", + "dest": "flatpak-cargo/git/craft-libs-6e03f65" }, { "type": "git", @@ -270,6 +306,19 @@ "dest": "cargo/vendor/alloc-no-stdlib-2.0.4", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/alloc-no-stdlib/alloc-no-stdlib-3.0.0.crate", + "sha256": "c2fb6cfd47bf496ff64095c20eaba0c201404ee38714d4142fcfa1dc334fcc7a", + "dest": "cargo/vendor/alloc-no-stdlib-3.0.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"c2fb6cfd47bf496ff64095c20eaba0c201404ee38714d4142fcfa1dc334fcc7a\", \"files\": {}}", + "dest": "cargo/vendor/alloc-no-stdlib-3.0.0", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -283,6 +332,19 @@ "dest": "cargo/vendor/alloc-stdlib-0.2.4", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/alloc-stdlib/alloc-stdlib-0.3.0.crate", + "sha256": "0b5c1865780388bfa186411ab5f247819487fc4864c6e9c3106611fa347586e1", + "dest": "cargo/vendor/alloc-stdlib-0.3.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"0b5c1865780388bfa186411ab5f247819487fc4864c6e9c3106611fa347586e1\", \"files\": {}}", + "dest": "cargo/vendor/alloc-stdlib-0.3.0", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -699,6 +761,19 @@ "dest": "cargo/vendor/base16ct-0.2.0", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/base64/base64-0.23.1.crate", + "sha256": "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5", + "dest": "cargo/vendor/base64-0.23.1" + }, + { + "type": "inline", + "contents": "{\"package\": \"ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5\", \"files\": {}}", + "dest": "cargo/vendor/base64-0.23.1", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -712,19 +787,6 @@ "dest": "cargo/vendor/base64ct-1.8.3", "dest-filename": ".cargo-checksum.json" }, - { - "type": "archive", - "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/bit-set/bit-set-0.8.0.crate", - "sha256": "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3", - "dest": "cargo/vendor/bit-set-0.8.0" - }, - { - "type": "inline", - "contents": "{\"package\": \"08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3\", \"files\": {}}", - "dest": "cargo/vendor/bit-set-0.8.0", - "dest-filename": ".cargo-checksum.json" - }, { "type": "archive", "archive-type": "tar-gzip", @@ -741,14 +803,14 @@ { "type": "archive", "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/bit-vec/bit-vec-0.8.0.crate", - "sha256": "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7", - "dest": "cargo/vendor/bit-vec-0.8.0" + "url": "https://static.crates.io/crates/bit-set/bit-set-0.11.1.crate", + "sha256": "56d87354e4229f54a44f7bf2435906a4656dba36026ab6eaca629a2c436a691c", + "dest": "cargo/vendor/bit-set-0.11.1" }, { "type": "inline", - "contents": "{\"package\": \"5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7\", \"files\": {}}", - "dest": "cargo/vendor/bit-vec-0.8.0", + "contents": "{\"package\": \"56d87354e4229f54a44f7bf2435906a4656dba36026ab6eaca629a2c436a691c\", \"files\": {}}", + "dest": "cargo/vendor/bit-set-0.11.1", "dest-filename": ".cargo-checksum.json" }, { @@ -764,6 +826,32 @@ "dest": "cargo/vendor/bit-vec-0.9.1", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/bit-vec/bit-vec-0.10.1.crate", + "sha256": "5727b15fa97d4f4fee0a3b7c3d550ed0269f54329207b86388de918604e31269", + "dest": "cargo/vendor/bit-vec-0.10.1" + }, + { + "type": "inline", + "contents": "{\"package\": \"5727b15fa97d4f4fee0a3b7c3d550ed0269f54329207b86388de918604e31269\", \"files\": {}}", + "dest": "cargo/vendor/bit-vec-0.10.1", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/bit_field/bit_field-0.10.4.crate", + "sha256": "cb2907cc03d08cdb1c6724ad0670ce67c4a71e1c45a6d7635224011714cfc4b1", + "dest": "cargo/vendor/bit_field-0.10.4" + }, + { + "type": "inline", + "contents": "{\"package\": \"cb2907cc03d08cdb1c6724ad0670ce67c4a71e1c45a6d7635224011714cfc4b1\", \"files\": {}}", + "dest": "cargo/vendor/bit_field-0.10.4", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -871,14 +959,40 @@ { "type": "archive", "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/brotli/brotli-8.0.4.crate", - "sha256": "5cc91aac060a7a1e25823bdccbfb6af1875b88f17c6daac97894eed8207166b3", - "dest": "cargo/vendor/brotli-8.0.4" + "url": "https://static.crates.io/crates/borsh/borsh-1.8.1.crate", + "sha256": "553c5d846a6ba5150c65e3b1b8ec073bcf1abc20f9b7220de384a4443ea4e20a", + "dest": "cargo/vendor/borsh-1.8.1" }, { "type": "inline", - "contents": "{\"package\": \"5cc91aac060a7a1e25823bdccbfb6af1875b88f17c6daac97894eed8207166b3\", \"files\": {}}", - "dest": "cargo/vendor/brotli-8.0.4", + "contents": "{\"package\": \"553c5d846a6ba5150c65e3b1b8ec073bcf1abc20f9b7220de384a4443ea4e20a\", \"files\": {}}", + "dest": "cargo/vendor/borsh-1.8.1", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/borsh-derive/borsh-derive-1.8.1.crate", + "sha256": "12cdfe656708a01f89b451a7d36466e6fe6c414de0aa18fc54f864f6f9ca9f56", + "dest": "cargo/vendor/borsh-derive-1.8.1" + }, + { + "type": "inline", + "contents": "{\"package\": \"12cdfe656708a01f89b451a7d36466e6fe6c414de0aa18fc54f864f6f9ca9f56\", \"files\": {}}", + "dest": "cargo/vendor/borsh-derive-1.8.1", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/brotli/brotli-9.0.0.crate", + "sha256": "f8b851b75c23ca7873623d612fe49bd1989aeb03d08fb9432187eb253d3d4c6b", + "dest": "cargo/vendor/brotli-9.0.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"f8b851b75c23ca7873623d612fe49bd1989aeb03d08fb9432187eb253d3d4c6b\", \"files\": {}}", + "dest": "cargo/vendor/brotli-9.0.0", "dest-filename": ".cargo-checksum.json" }, { @@ -894,6 +1008,19 @@ "dest": "cargo/vendor/brotli-decompressor-5.0.3", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/brotli-decompressor/brotli-decompressor-6.0.1.crate", + "sha256": "941cd9bd4ddab83cb46fa5a2d428f1c857b24ac78cb876cf7beb710840934bd7", + "dest": "cargo/vendor/brotli-decompressor-6.0.1" + }, + { + "type": "inline", + "contents": "{\"package\": \"941cd9bd4ddab83cb46fa5a2d428f1c857b24ac78cb876cf7beb710840934bd7\", \"files\": {}}", + "dest": "cargo/vendor/brotli-decompressor-6.0.1", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -1154,6 +1281,19 @@ "dest": "cargo/vendor/chacha20-0.9.1", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/chacha20/chacha20-0.10.2.crate", + "sha256": "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06", + "dest": "cargo/vendor/chacha20-0.10.2" + }, + { + "type": "inline", + "contents": "{\"package\": \"65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06\", \"files\": {}}", + "dest": "cargo/vendor/chacha20-0.10.2", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -1206,6 +1346,19 @@ "dest": "cargo/vendor/clipboard-win-5.4.1", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/cobs/cobs-0.3.0.crate", + "sha256": "0fa961b519f0b462e3a3b4a34b64d119eeaca1d59af726fe450bbba07a9fc0a1", + "dest": "cargo/vendor/cobs-0.3.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"0fa961b519f0b462e3a3b4a34b64d119eeaca1d59af726fe450bbba07a9fc0a1\", \"files\": {}}", + "dest": "cargo/vendor/cobs-0.3.0", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -1323,6 +1476,19 @@ "dest": "cargo/vendor/core-foundation-0.9.4", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/core-foundation/core-foundation-0.10.1.crate", + "sha256": "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6", + "dest": "cargo/vendor/core-foundation-0.10.1" + }, + { + "type": "inline", + "contents": "{\"package\": \"b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6\", \"files\": {}}", + "dest": "cargo/vendor/core-foundation-0.10.1", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -1362,6 +1528,19 @@ "dest": "cargo/vendor/core-graphics-types-0.1.3", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/core_detect/core_detect-1.0.0.crate", + "sha256": "7f8f80099a98041a3d1622845c271458a2d73e688351bf3cb999266764b81d48", + "dest": "cargo/vendor/core_detect-1.0.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"7f8f80099a98041a3d1622845c271458a2d73e688351bf3cb999266764b81d48\", \"files\": {}}", + "dest": "cargo/vendor/core_detect-1.0.0", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -1375,15 +1554,82 @@ "dest": "cargo/vendor/cpufeatures-0.2.17", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/cpufeatures/cpufeatures-0.3.1.crate", + "sha256": "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566", + "dest": "cargo/vendor/cpufeatures-0.3.1" + }, + { + "type": "inline", + "contents": "{\"package\": \"5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566\", \"files\": {}}", + "dest": "cargo/vendor/cpufeatures-0.3.1", + "dest-filename": ".cargo-checksum.json" + }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-82a24b0/crates/docpath\" \"cargo/vendor/craft-docpath\"" + "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-94777dc/crates/cms\" \"cargo/vendor/craft-cms\"" ] }, { "type": "inline", - "contents": "[package]\nname = \"craft-docpath\"\ndescription = \"Decide whether a file path or file URL stored in a document refers to a local file.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ndbg_macro = \"warn\"\ntodo = \"warn\"\n", + "contents": "[package]\nname = \"craft-cms\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\ndescription = \"Pure-Rust ICC v2/v4 colour management: profile parsing and writing, transforms, rendering intents, black point compensation\"\nexclude = [\"tests/data\", \"tests/fogra39.rs\"]\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[dependencies.md5]\npackage = \"md-5\"\nversion = \"0.10\"\ndefault-features = false\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies]\nrayon = \"1\"\n\n[dev-dependencies]\nmoxcms = \"0.8\"\n", + "dest": "cargo/vendor/craft-cms", + "dest-filename": "Cargo.toml" + }, + { + "type": "inline", + "contents": "{\"package\": null, \"files\": {}}", + "dest": "cargo/vendor/craft-cms", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "shell", + "commands": [ + "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-f0f4758/crates/codepage\" \"cargo/vendor/craft-codepage\"" + ] + }, + { + "type": "inline", + "contents": "[package]\nname = \"craft-codepage\"\ndescription = \"Legacy 8-bit code pages, one table each: the single-byte Windows pages, Mac OS Roman and the DOS (OEM) pages, keyed by Windows code page number, with the RTF/Word font charsets.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[dev-dependencies]\nencoding_rs = \"0.8\"\n", + "dest": "cargo/vendor/craft-codepage", + "dest-filename": "Cargo.toml" + }, + { + "type": "inline", + "contents": "{\"package\": null, \"files\": {}}", + "dest": "cargo/vendor/craft-codepage", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "shell", + "commands": [ + "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-94777dc/crates/crw\" \"cargo/vendor/craft-crw\"" + ] + }, + { + "type": "inline", + "contents": "[package]\nname = \"craft-crw\"\ndescription = \"Clean-room Canon CRW (CIFF) raw decoder: the heap container, the derived entropy coding, sensor levels and as-shot white balance.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[dependencies]\nthiserror = \"2\"\n\n[dev-dependencies]\nproptest = \"1\"\nserde_json = \"1\"\n\n[dev-dependencies.serde]\nversion = \"1\"\nfeatures = [\"derive\"]\n\n[dev-dependencies.sha2]\nversion = \"0.10\"\ndefault-features = false\nfeatures = [\"std\"]\n", + "dest": "cargo/vendor/craft-crw", + "dest-filename": "Cargo.toml" + }, + { + "type": "inline", + "contents": "{\"package\": null, \"files\": {}}", + "dest": "cargo/vendor/craft-crw", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "shell", + "commands": [ + "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-c5a1cbf/crates/docpath\" \"cargo/vendor/craft-docpath\"" + ] + }, + { + "type": "inline", + "contents": "[package]\nname = \"craft-docpath\"\ndescription = \"Decide whether a file path or file URL stored in a document refers to a local file.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n", "dest": "cargo/vendor/craft-docpath", "dest-filename": "Cargo.toml" }, @@ -1396,12 +1642,300 @@ { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-25da131/crates/ui\" \"cargo/vendor/craft-ui\"" + "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-c5a1cbf/crates/fonts-build\" \"cargo/vendor/craft-fonts-build\"" ] }, { "type": "inline", - "contents": "[package]\nname = \"craft-ui\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrepository = \"https://github.com/storytold/craft-libs\"\nrust-version = \"1.95\"\ndescription = \"Reusable egui controls and icon catalogs for Craft frontends\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[dependencies.egui]\nversion = \"0.37\"\ndefault-features = false\n\n[dependencies.serde]\nversion = \"1\"\nfeatures = [\"derive\"]\noptional = true\n\n[features]\nserde = [\"dep:serde\"]\n\n[dev-dependencies]\nserde_json = \"1\"\n\n[dev-dependencies.egui]\nfeatures = [\"default_fonts\"]\nversion = \"0.37\"\ndefault-features = false\n\n[dev-dependencies.egui_extras]\nversion = \"0.37\"\ndefault-features = false\nfeatures = [\"svg\"]\n\n[dev-dependencies.egui_kittest]\nversion = \"0.37\"\nfeatures = [\"wgpu\"]\n\n[dev-dependencies.image]\nversion = \"0.25\"\ndefault-features = false\nfeatures = [\"png\"]\n", + "contents": "[package]\nname = \"craft-fonts-build\"\ndescription = \"Embeds the optional craft-fonts faces from an app's build.rs, plus the EmbeddedFace type the generated table uses.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[features]\nsubset = [\"dep:skera\", \"dep:skrifa\"]\n\n[dependencies.skera]\nversion = \"0.8\"\noptional = true\n\n[dependencies.skrifa]\nversion = \"0.48\"\ndefault-features = false\nfeatures = [\"std\"]\noptional = true\n\n[dev-dependencies.craft-fonts-build-consumer]\npath = \"tests/consumer\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n", + "dest": "cargo/vendor/craft-fonts-build", + "dest-filename": "Cargo.toml" + }, + { + "type": "inline", + "contents": "{\"package\": null, \"files\": {}}", + "dest": "cargo/vendor/craft-fonts-build", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "shell", + "commands": [ + "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-9dcbd90/crates/gainmap\" \"cargo/vendor/craft-gainmap\"" + ] + }, + { + "type": "inline", + "contents": "[package]\nname = \"craft-gainmap\"\ndescription = \"HDR gain maps (ISO 21496-1, Adobe hdrgm, Apple): metadata reader and writer, and the arithmetic that measures and applies a gain map.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[dependencies]\nthiserror = \"2\"\n", + "dest": "cargo/vendor/craft-gainmap", + "dest-filename": "Cargo.toml" + }, + { + "type": "inline", + "contents": "{\"package\": null, \"files\": {}}", + "dest": "cargo/vendor/craft-gainmap", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "shell", + "commands": [ + "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-b77af38/crates/gif\" \"cargo/vendor/craft-gif\"" + ] + }, + { + "type": "inline", + "contents": "[package]\nname = \"craft-gif\"\ndescription = \"GIF block reader, bounded frame decoder and animation writer.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[features]\nframes = [\"dep:image\"]\n\n[dependencies]\ngif = \"0.14\"\n\n[dependencies.image]\nversion = \"0.25\"\ndefault-features = false\nfeatures = [\"gif\"]\noptional = true\n\n[dev-dependencies.image]\nversion = \"0.25\"\ndefault-features = false\nfeatures = [\"gif\"]\n", + "dest": "cargo/vendor/craft-gif", + "dest-filename": "Cargo.toml" + }, + { + "type": "inline", + "contents": "{\"package\": null, \"files\": {}}", + "dest": "cargo/vendor/craft-gif", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "shell", + "commands": [ + "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-9dcbd90/crates/heif\" \"cargo/vendor/craft-heif\"" + ] + }, + { + "type": "inline", + "contents": "[package]\nname = \"craft-heif\"\ndescription = \"Optional HEIF/HEIC still-image decoder: heic-rs for the container and HEVC, libheif-matching colour conversion, panic-guarded.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[dependencies.heic-rs]\nversion = \"=0.1.4\"\ndefault-features = false\nfeatures = [\"std\"]\noptional = true\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies.heic-rs]\nversion = \"=0.1.4\"\ndefault-features = false\nfeatures = [\"std\", \"parallel\"]\noptional = true\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies.rayon]\noptional = true\nversion = \"1\"\n\n[features]\ndefault = [\"decode\"]\ndecode = [\"dep:heic-rs\", \"dep:rayon\"]\nmetadata = []\ntestdata = []\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n", + "dest": "cargo/vendor/craft-heif", + "dest-filename": "Cargo.toml" + }, + { + "type": "inline", + "contents": "{\"package\": null, \"files\": {}}", + "dest": "cargo/vendor/craft-heif", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "shell", + "commands": [ + "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-c5a1cbf/crates/i18n\" \"cargo/vendor/craft-i18n\"" + ] + }, + { + "type": "inline", + "contents": "[package]\nname = \"craft-i18n\"\ndescription = \"Translations for the Craft apps: the embedded craft-i18n catalogs, lookup with fallback, plurals, numbers for a region, language names, the system locale, search folding and locale sorting.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[dependencies]\nwriteable = \"0.6\"\nlog = \"0.4\"\nsys-locale = \"0.3\"\nicu_normalizer = \"~2.3\"\nicu_properties = \"~2.3\"\nunicode-bidi = \"0.3\"\n\n[dependencies.fixed_decimal]\nversion = \"0.7.2\"\ndefault-features = false\n\n[dependencies.icu_decimal]\nversion = \"~2.3\"\ndefault-features = false\nfeatures = [\"serde\"]\n\n[dependencies.icu_locale_core]\nversion = \"~2.3\"\ndefault-features = false\n\n[dependencies.icu_locale_fallback]\nversion = \"~2.3\"\ndefault-features = false\nfeatures = [\"compiled_data\"]\n\n[dependencies.icu_plurals]\nversion = \"~2.3\"\ndefault-features = false\nfeatures = [\"serde\"]\n\n[dependencies.icu_provider]\nversion = \"~2.3\"\ndefault-features = false\nfeatures = [\"sync\"]\n\n[dependencies.icu_provider_adapters]\nversion = \"~2.3\"\ndefault-features = false\n\n[dependencies.icu_provider_blob]\nversion = \"~2.3\"\ndefault-features = false\n\n[dependencies.icu_collator]\nversion = \"~2.3.1\"\ndefault-features = false\nfeatures = [\"serde\"]\noptional = true\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dependencies.sys-locale]\nversion = \"0.3\"\nfeatures = [\"js\"]\n\n[target.\"cfg(windows)\".dependencies]\nwindows-registry = \"0.6\"\n\n[target.\"cfg(target_vendor = \\\"apple\\\")\".dependencies.objc2-foundation]\nversion = \"0.3.2\"\ndefault-features = false\nfeatures = [\"std\", \"NSDateFormatter\", \"NSFormatter\", \"NSLocale\", \"NSString\"]\n\n[features]\ncollate = [\"dep:icu_collator\", \"icu_provider/serde\", \"icu_provider_blob/alloc\"]\n\n[lints.rust]\nunsafe_code = \"forbid\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n", + "dest": "cargo/vendor/craft-i18n", + "dest-filename": "Cargo.toml" + }, + { + "type": "inline", + "contents": "{\"package\": null, \"files\": {}}", + "dest": "cargo/vendor/craft-i18n", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "shell", + "commands": [ + "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-478c505/crates/image-codecs\" \"cargo/vendor/craft-image-codecs\"" + ] + }, + { + "type": "inline", + "contents": "[package]\nname = \"craft-image-codecs\"\ndescription = \"Bounded, depth- and metadata-preserving codecs for flat raster image formats\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[features]\ncorpus = []\ndefault = []\navif = [\"image/avif\", \"dep:ravif\", \"dep:rav1e\", \"dep:avif-serialize\"]\nheif = [\"dep:craft-heif\"]\n\n[dependencies]\ncrc32fast = \"1.5\"\nthiserror = \"2\"\npng = \"0.18\"\nhalf = \"2\"\nserde_json = \"1\"\nimage-webp = \"0.2\"\nzune-jpeg = \"0.5\"\nzune-core = \"0.5\"\njpeg-encoder = \"0.6\"\n\n[dependencies.image]\nversion = \"0.25\"\ndefault-features = false\nfeatures = [\"png\", \"jpeg\", \"tiff\", \"gif\", \"bmp\", \"tga\", \"ico\", \"qoi\", \"hdr\"]\n\n[dependencies.tiff]\nversion = \"0.11\"\ndefault-features = false\nfeatures = [\"deflate\", \"fax\", \"jpeg\", \"lzw\"]\n\n[dependencies.exr]\nversion = \"1.73\"\ndefault-features = false\n\n[dependencies.flate2]\nversion = \"1.1.10\"\ndefault-features = false\nfeatures = [\"zlib-rs\", \"runtime_detection\"]\n\n[dependencies.craft-jpeg]\npath = \"crates/jpeg\"\n\n[dependencies.craft-metadata]\npath = \"crates/metadata\"\n\n[dependencies.zune-jpegxl]\nversion = \"=0.5.2\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dependencies.craft-heif]\noptional = true\npath = \"crates/heif\"\n\n[dependencies.ravif]\nversion = \"0.13\"\ndefault-features = false\noptional = true\n\n[dependencies.rav1e]\nversion = \"0.8\"\ndefault-features = false\noptional = true\n\n[dependencies.avif-serialize]\nversion = \"0.8\"\noptional = true\n\n[dependencies.hayro-jpeg2000]\nversion = \"=0.3.5\"\ndefault-features = false\nfeatures = [\"std\", \"simd\"]\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies]\nrayon = \"1\"\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies.exr]\nversion = \"1.73\"\ndefault-features = false\nfeatures = [\"rayon\"]\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dev-dependencies.craft-video]\nfeatures = [\"av1-decode\"]\npath = \"crates/video\"\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dev-dependencies.jxl-oxide]\nversion = \"=0.12.6\"\ndefault-features = false\nfeatures = [\"rayon\"]\n\n[dev-dependencies]\nproptest = \"1\"\n\n[dev-dependencies.image]\nversion = \"0.25\"\ndefault-features = false\nfeatures = [\"png\", \"jpeg\", \"tiff\"]\n\n[dev-dependencies.sha2]\nversion = \"0.10\"\ndefault-features = false\nfeatures = [\"std\"]\n", + "dest": "cargo/vendor/craft-image-codecs", + "dest-filename": "Cargo.toml" + }, + { + "type": "inline", + "contents": "{\"package\": null, \"files\": {}}", + "dest": "cargo/vendor/craft-image-codecs", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "shell", + "commands": [ + "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-478c505/crates/jpeg\" \"cargo/vendor/craft-jpeg\"" + ] + }, + { + "type": "inline", + "contents": "[package]\nname = \"craft-jpeg\"\ndescription = \"Clean-room JPEG decoder and 8-bit optimized baseline encoder (ITU-T T.81).\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[dependencies]\nthiserror = \"2\"\n\n[dependencies.rayon]\noptional = true\nversion = \"1\"\n\n[dev-dependencies]\njpeg-encoder = \"0.6\"\nzune-jpeg = \"0.5\"\njpeg-decoder = \"0.3\"\n\n[features]\ndefault = []\nparallel = [\"dep:rayon\"]\n", + "dest": "cargo/vendor/craft-jpeg", + "dest-filename": "Cargo.toml" + }, + { + "type": "inline", + "contents": "{\"package\": null, \"files\": {}}", + "dest": "cargo/vendor/craft-jpeg", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "shell", + "commands": [ + "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-b77af38/crates/jxl\" \"cargo/vendor/craft-jxl\"" + ] + }, + { + "type": "inline", + "contents": "[package]\nname = \"craft-jxl\"\ndescription = \"JPEG XL image decoding and encoding with bounded input and allocation tracking.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[features]\ndefault = [\"decode\", \"encode\"]\ndecode = [\"dep:jxl-oxide\"]\nencode = [\"dep:jixel\"]\n\n[dependencies]\nthiserror = \"2\"\n\n[dependencies.jxl-oxide]\noptional = true\nversion = \"0.12\"\ndefault-features = false\n\n[dev-dependencies.craft-cms]\npath = \"crates/cms\"\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies.jixel]\noptional = true\nversion = \"=0.3.4\"\n", + "dest": "cargo/vendor/craft-jxl", + "dest-filename": "Cargo.toml" + }, + { + "type": "inline", + "contents": "{\"package\": null, \"files\": {}}", + "dest": "cargo/vendor/craft-jxl", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "shell", + "commands": [ + "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-478c505/crates/metadata\" \"cargo/vendor/craft-metadata\"" + ] + }, + { + "type": "inline", + "contents": "[package]\nname = \"craft-metadata\"\ndescription = \"Photo metadata: EXIF, IPTC-IIM, XMP packets (read, write, merge) and GPX track logs, the blocks that carry them in JPEG, PNG, WebP, TIFF and CR3 files, and one model they all read into.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[dependencies]\nquick-xml = \"0.41\"\n\n[dependencies.craft-tiff]\npath = \"crates/tiff\"\n\n[dependencies.serde]\nversion = \"1\"\nfeatures = [\"derive\"]\n\n[dependencies.chrono]\nversion = \"0.4.45\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dependencies.brotli-decompressor]\nversion = \"6\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dev-dependencies]\nproptest = \"1\"\nserde_json = \"1\"\n\n[dev-dependencies.brotli]\nversion = \"9\"\ndefault-features = false\nfeatures = [\"std\"]\n", + "dest": "cargo/vendor/craft-metadata", + "dest-filename": "Cargo.toml" + }, + { + "type": "inline", + "contents": "{\"package\": null, \"files\": {}}", + "dest": "cargo/vendor/craft-metadata", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "shell", + "commands": [ + "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-94777dc/crates/metadata\" \"cargo/vendor/craft-metadata\"" + ] + }, + { + "type": "inline", + "contents": "[package]\nname = \"craft-metadata\"\ndescription = \"Photo metadata: EXIF, IPTC-IIM, XMP packets (read, write, merge) and GPX track logs, the blocks that carry them in JPEG, PNG, WebP, TIFF and CR3 files, and one model they all read into.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[dependencies]\nquick-xml = \"0.41\"\n\n[dependencies.craft-tiff]\npath = \"crates/tiff\"\n\n[dependencies.serde]\nversion = \"1\"\nfeatures = [\"derive\"]\n\n[dependencies.chrono]\nversion = \"0.4.45\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dependencies.brotli-decompressor]\nversion = \"6\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dev-dependencies]\nproptest = \"1\"\nserde_json = \"1\"\n\n[dev-dependencies.brotli]\nversion = \"9\"\ndefault-features = false\nfeatures = [\"std\"]\n", + "dest": "cargo/vendor/craft-metadata", + "dest-filename": "Cargo.toml" + }, + { + "type": "inline", + "contents": "{\"package\": null, \"files\": {}}", + "dest": "cargo/vendor/craft-metadata", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "shell", + "commands": [ + "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-f0f4758/crates/mime\" \"cargo/vendor/craft-mime\"" + ] + }, + { + "type": "inline", + "contents": "[package]\nname = \"craft-mime\"\ndescription = \"Internet messages and MIME: RFC 5322 headers, RFC 2045-2049 parts, encoded words, RFC 2231 parameters, transfer encodings, mbox and multipart/related lookups, read and written.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[dependencies]\nencoding_rs = \"0.8\"\n\n[dependencies.craft-codepage]\npath = \"crates/codepage\"\n\n[dependencies.chrono]\nversion = \"0.4.45\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dependencies.chardetng]\nversion = \"1\"\noptional = true\n\n[features]\ndetect = [\"dep:chardetng\"]\n\n[dev-dependencies]\nproptest = \"1\"\n", + "dest": "cargo/vendor/craft-mime", + "dest-filename": "Cargo.toml" + }, + { + "type": "inline", + "contents": "{\"package\": null, \"files\": {}}", + "dest": "cargo/vendor/craft-mime", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "shell", + "commands": [ + "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-2651dbe/crates/pdf\" \"cargo/vendor/craft-pdf\"" + ] + }, + { + "type": "inline", + "contents": "[package]\nname = \"craft-pdf\"\ndescription = \"Shared PDF reading, rendering and optional writing for Craft apps\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrepository = \"https://github.com/storytold/craft-libs\"\nrust-version = \"1.95\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[features]\ndefault = []\nread = [\"dep:hayro-syntax\", \"dep:thiserror\"]\ninterpret = [\"read\", \"dep:hayro-interpret\"]\npaths = [\"interpret\", \"dep:kurbo\"]\nraster = [\"interpret\", \"dep:hayro\", \"dep:bytemuck\"]\nwrite = [\"dep:krilla\", \"dep:thiserror\"]\nwrite-svg = [\"write\", \"dep:craft-svg\", \"dep:krilla-svg\", \"dep:usvg\", \"craft-svg/tree-text\"]\nwrite-pdf = [\"write\", \"krilla/pdf\"]\nwrite-raster = [\"dep:flate2\", \"dep:roxmltree\"]\nwrite-simple-text = [\"write\", \"krilla/simple-text\"]\nfilters = [\"dep:craft-stream-codecs\", \"dep:flate2\", \"dep:thiserror\"]\ncos = [\"crypt\", \"filters\", \"dep:chrono\", \"dep:js-sys\", \"dep:wasm-bindgen\"]\ncrypt = [\"dep:aes\", \"dep:md-5\", \"dep:sha2\", \"dep:stringprep\", \"dep:zeroize\", \"dep:thiserror\"]\n\n[dependencies.hayro-syntax]\noptional = true\nversion = \"=0.7.2\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dependencies.hayro-interpret]\noptional = true\nversion = \"=0.7.0\"\ndefault-features = false\nfeatures = [\"embed-fonts\", \"embed-cmaps\"]\n\n[dependencies.hayro]\noptional = true\nversion = \"=0.7.1\"\ndefault-features = false\n\n[dependencies.bytemuck]\noptional = true\nversion = \"1\"\n\n[dependencies.krilla]\noptional = true\nversion = \"=0.8.2\"\ndefault-features = false\nfeatures = [\"raster-images\"]\n\n[dependencies.craft-svg]\noptional = true\npath = \"crates/svg\"\n\n[dependencies.krilla-svg]\nversion = \"=0.8.1\"\noptional = true\n\n[dependencies.usvg]\nversion = \"=0.47.0\"\nfeatures = [\"text\"]\noptional = true\n\n[dependencies.thiserror]\noptional = true\nversion = \"2\"\n\n[dependencies.flate2]\nversion = \"1.1\"\ndefault-features = false\nfeatures = [\"zlib-rs\"]\noptional = true\n\n[dependencies.roxmltree]\nversion = \"0.21\"\noptional = true\n\n[dependencies.craft-stream-codecs]\noptional = true\npath = \"crates/stream-codecs\"\n\n[dependencies.aes]\nversion = \"0.9\"\noptional = true\n\n[dependencies.md-5]\nversion = \"0.11\"\noptional = true\n\n[dependencies.sha2]\nversion = \"0.11\"\noptional = true\n\n[dependencies.stringprep]\nversion = \"0.1\"\noptional = true\n\n[dependencies.zeroize]\nversion = \"1\"\noptional = true\n\n[dependencies.chrono]\noptional = true\nversion = \"0.4.45\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dependencies.kurbo]\noptional = true\nversion = \"0.13\"\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dependencies.js-sys]\nversion = \"0.3\"\noptional = true\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dependencies.wasm-bindgen]\nversion = \"0.2\"\noptional = true\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dev-dependencies]\nwasm-bindgen-test = \"0.3\"\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dev-dependencies]\nproptest = \"1\"\n\n[dev-dependencies]\nserde_json = \"1\"\nhayro-syntax = \"=0.7.2\"\nhayro-cmap = \"=0.1.0\"\nkurbo = \"0.13\"\nttf-parser = \"=0.25.1\"\n\n[dev-dependencies.hayro-interpret]\nversion = \"=0.7.0\"\ndefault-features = false\n\n[[example]]\nname = \"cos_info\"\nrequired-features = [\"cos\"]\n\n[[example]]\nname = \"cos_protect\"\nrequired-features = [\"cos\"]\n", + "dest": "cargo/vendor/craft-pdf", + "dest-filename": "Cargo.toml" + }, + { + "type": "inline", + "contents": "{\"package\": null, \"files\": {}}", + "dest": "cargo/vendor/craft-pdf", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "shell", + "commands": [ + "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-9dcbd90/crates/psd\" \"cargo/vendor/craft-psd\"" + ] + }, + { + "type": "inline", + "contents": "[package]\nname = \"craft-psd\"\ndescription = \"Faithful, lossless reader and writer for Adobe Photoshop PSD and PSB files, and for the Photoshop resource files that share their primitives (ABR, ASL, ACO, ACT, ASE, GRD, PAT, ATN, CSH, SHC)\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[features]\ncorpus = []\ndefault = []\nserde = [\"dep:serde\"]\ntestgen = []\n\n[dependencies]\nthiserror = \"2\"\nencoding_rs = \"0.8\"\n\n[dependencies.flate2]\nversion = \"1.1.10\"\ndefault-features = false\nfeatures = [\"zlib-rs\", \"runtime_detection\"]\n\n[dependencies.serde]\noptional = true\nversion = \"1\"\nfeatures = [\"derive\"]\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies]\nrayon = \"1\"\n\n[dev-dependencies]\nproptest = \"1\"\n\n[dev-dependencies.craft-psd]\npath = \".\"\nfeatures = [\"testgen\"]\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n", + "dest": "cargo/vendor/craft-psd", + "dest-filename": "Cargo.toml" + }, + { + "type": "inline", + "contents": "{\"package\": null, \"files\": {}}", + "dest": "cargo/vendor/craft-psd", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "shell", + "commands": [ + "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-94777dc/crates/raw\" \"cargo/vendor/craft-raw\"" + ] + }, + { + "type": "inline", + "contents": "[package]\nname = \"craft-raw\"\ndescription = \"Camera raw files, the file-format layer: container parsing, decompression and the sensor data out as a neutral raw image with its levels, crop, orientation, colour tags and embedded previews. DNG (read and write), Hasselblad 3FR/FFF, MRW, ERF, MEF, Kodak DCS, Pentax PEF, Samsung SRW, Canon CR2, Nikon NEF/NRW, Panasonic RW2, Fujifilm RAF, Olympus ORF (uncompressed), Sony ARW, Canon CR3 and Canon CRW so far.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[features]\ndefault = [\"dng\", \"jxl\", \"crw\", \"hasselblad\", \"mrw\", \"erf\", \"mef\", \"kodak\", \"pef\", \"srw\", \"cr2\", \"nef\", \"rw2\", \"raf\", \"orf\", \"arw\", \"cr3\"]\ndng = [\"dep:miniz_oxide\", \"dep:zune-jpeg\", \"dep:zune-core\"]\njxl = [\"dng\", \"dep:jxl-oxide\"]\nhasselblad = [\"dng\"]\nmrw = []\nerf = []\nmef = []\nkodak = []\npef = []\nsrw = []\ncr2 = []\nnef = []\nrw2 = []\nraf = []\norf = []\narw = []\ncr3 = [\"dep:craft-metadata\"]\ncrw = [\"dep:craft-crw\", \"dep:chrono\"]\n\n[dependencies]\nthiserror = \"2\"\nrayon = \"1\"\n\n[dependencies.craft-tiff]\npath = \"crates/tiff\"\n\n[dependencies.craft-crw]\noptional = true\npath = \"crates/crw\"\n\n[dependencies.craft-metadata]\noptional = true\npath = \"crates/metadata\"\n\n[dependencies.serde]\nversion = \"1\"\nfeatures = [\"derive\"]\n\n[dependencies.chrono]\noptional = true\nversion = \"0.4.45\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dependencies.miniz_oxide]\nversion = \"0.9\"\noptional = true\n\n[dependencies.zune-jpeg]\nversion = \"0.5\"\ndefault-features = false\nfeatures = [\"std\", \"x86\", \"neon\"]\noptional = true\n\n[dependencies.zune-core]\nversion = \"0.5\"\ndefault-features = false\nfeatures = [\"std\"]\noptional = true\n\n[dependencies.jxl-oxide]\nversion = \"0.12\"\ndefault-features = false\noptional = true\n\n[dev-dependencies]\nproptest = \"1\"\n\n[dev-dependencies.sha2]\nversion = \"0.10\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dev-dependencies.jpeg-encoder]\nversion = \"0.7\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dev-dependencies.zune-jpegxl]\nversion = \"0.5\"\ndefault-features = false\nfeatures = [\"std\"]\n", + "dest": "cargo/vendor/craft-raw", + "dest-filename": "Cargo.toml" + }, + { + "type": "inline", + "contents": "{\"package\": null, \"files\": {}}", + "dest": "cargo/vendor/craft-raw", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "shell", + "commands": [ + "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-478c505/crates/tiff\" \"cargo/vendor/craft-tiff\"" + ] + }, + { + "type": "inline", + "contents": "[package]\nname = \"craft-tiff\"\ndescription = \"TIFF and BigTIFF IFD reader and writer: every field type, the Exif/GPS/Interop pointer IFDs, maker-note IFDs, strip and tile layout.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[dependencies]\nthiserror = \"2\"\n\n[dependencies.serde]\nversion = \"1\"\nfeatures = [\"derive\"]\n\n[dev-dependencies]\nproptest = \"1\"\n", + "dest": "cargo/vendor/craft-tiff", + "dest-filename": "Cargo.toml" + }, + { + "type": "inline", + "contents": "{\"package\": null, \"files\": {}}", + "dest": "cargo/vendor/craft-tiff", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "shell", + "commands": [ + "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-94777dc/crates/tiff\" \"cargo/vendor/craft-tiff\"" + ] + }, + { + "type": "inline", + "contents": "[package]\nname = \"craft-tiff\"\ndescription = \"TIFF and BigTIFF IFD reader and writer: every field type, the Exif/GPS/Interop pointer IFDs, maker-note IFDs, strip and tile layout.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[dependencies]\nthiserror = \"2\"\n\n[dependencies.serde]\nversion = \"1\"\nfeatures = [\"derive\"]\n\n[dev-dependencies]\nproptest = \"1\"\n", + "dest": "cargo/vendor/craft-tiff", + "dest-filename": "Cargo.toml" + }, + { + "type": "inline", + "contents": "{\"package\": null, \"files\": {}}", + "dest": "cargo/vendor/craft-tiff", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "shell", + "commands": [ + "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-c5a1cbf/crates/ui\" \"cargo/vendor/craft-ui\"" + ] + }, + { + "type": "inline", + "contents": "[package]\nname = \"craft-ui\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrepository = \"https://github.com/storytold/craft-libs\"\nrust-version = \"1.95\"\ndescription = \"Reusable egui controls and icon catalogs for Craft frontends\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[dependencies]\nlog = \"0.4\"\n\n[dependencies.craft-fonts-build]\npath = \"crates/fonts-build\"\n\n[dependencies.craft-i18n]\npath = \"crates/i18n\"\n\n[dependencies.egui]\nversion = \"0.37\"\ndefault-features = false\n\n[dependencies.epaint]\nversion = \"0.37\"\ndefault-features = false\n\n[dependencies.serde]\nversion = \"1\"\nfeatures = [\"derive\"]\noptional = true\n\n[dependencies.skrifa]\nversion = \"0.44\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies.egui_kittest]\nversion = \"0.37\"\nfeatures = [\"snapshot\", \"wgpu\"]\noptional = true\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies.fontique]\nversion = \"0.11.1\"\ndefault-features = false\nfeatures = [\"system\", \"fontconfig-dlopen\"]\noptional = true\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies.unicode-script]\nversion = \"0.5.8\"\noptional = true\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dev-dependencies.egui_kittest]\nversion = \"0.37\"\nfeatures = [\"wgpu\"]\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dev-dependencies.eframe]\nversion = \"0.37\"\ndefault-features = false\nfeatures = [\"wgpu\", \"x11\", \"default_fonts\"]\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dependencies]\njs-sys = \"0.3\"\nwasm-bindgen = \"0.2\"\nwasm-bindgen-futures = \"0.4\"\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dependencies.web-sys]\nversion = \"0.3\"\nfeatures = [\"Window\", \"RequestInit\", \"Response\", \"console\"]\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dev-dependencies]\njs-sys = \"0.3\"\nwasm-bindgen = \"0.2\"\nwasm-bindgen-futures = \"0.4\"\nwasm-bindgen-test = \"0.3\"\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dev-dependencies.web-sys]\nversion = \"0.3\"\nfeatures = [\"Window\", \"Response\"]\n\n[target.\"cfg(target_os = \\\"macos\\\")\".dependencies]\nobjc2 = \"0.6\"\n\n[target.\"cfg(target_os = \\\"macos\\\")\".dependencies.objc2-app-kit]\nversion = \"0.3\"\ndefault-features = false\nfeatures = [\"std\", \"objc2-core-foundation\", \"NSApplication\", \"NSEvent\", \"NSResponder\", \"NSScreen\", \"NSWindow\"]\n\n[target.\"cfg(target_os = \\\"macos\\\")\".dependencies.objc2-foundation]\nversion = \"0.3\"\ndefault-features = false\nfeatures = [\"std\", \"NSArray\", \"NSEnumerator\", \"NSString\"]\n\n[features]\ndefault = []\nserde = [\"dep:serde\"]\nnative-windows = []\ncolor_fonts = [\"epaint/color_fonts\"]\nsystem_fonts = [\"dep:fontique\", \"dep:unicode-script\"]\ntesting = []\nscreen-testing = [\"dep:egui_kittest\"]\n\n[dev-dependencies]\nserde_json = \"1\"\n\n[dev-dependencies.egui]\nfeatures = [\"default_fonts\", \"serde\"]\nversion = \"0.37\"\ndefault-features = false\n\n[dev-dependencies.egui_extras]\nversion = \"0.37\"\ndefault-features = false\nfeatures = [\"svg\"]\n\n[dev-dependencies.image]\nversion = \"0.25\"\ndefault-features = false\nfeatures = [\"png\"]\n\n[[example]]\nname = \"docking_native\"\nrequired-features = [\"native-windows\"]\n\n[[test]]\nname = \"screens\"\nrequired-features = [\"screen-testing\"]\n", "dest": "cargo/vendor/craft-ui", "dest-filename": "Cargo.toml" }, @@ -1411,17 +1945,71 @@ "dest": "cargo/vendor/craft-ui", "dest-filename": ".cargo-checksum.json" }, + { + "type": "shell", + "commands": [ + "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-6e03f65/crates/update\" \"cargo/vendor/craft-update\"" + ] + }, + { + "type": "inline", + "contents": "[package]\nname = \"craft-update\"\ndescription = \"Release checking, downloading, installing and self-updating for the Craft App Suite and ArtCraft Launcher\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[features]\ndefault = []\negui = [\"dep:egui\", \"dep:image\"]\nlocal-mirror = []\nsnapshot = [\"egui\", \"egui_kittest/wgpu\"]\n\n[dependencies]\nserde_json = \"1\"\nlog = \"0.4\"\ngetrandom = \"0.3\"\ntempfile = \"3\"\nsha2 = \"0.10\"\n\n[dependencies.egui]\noptional = true\nversion = \"0.37\"\ndefault-features = false\n\n[dependencies.image]\nversion = \"0.25\"\ndefault-features = false\nfeatures = [\"png\"]\noptional = true\n\n[dependencies.serde]\nversion = \"1\"\nfeatures = [\"derive\"]\n\n[dependencies.ureq]\nversion = \"3.4\"\ndefault-features = false\nfeatures = [\"rustls-no-provider\", \"_ring\", \"gzip\", \"platform-verifier\"]\n\n[dependencies.chrono]\nversion = \"0.4.45\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dependencies.semver]\nversion = \"1\"\nfeatures = [\"serde\"]\n\n[dev-dependencies]\nflate2 = \"1\"\negui_kittest = \"0.37\"\nepaint_default_fonts = \"0.37\"\n\n[target.\"cfg(unix)\".dependencies]\nflate2 = \"1\"\n\n[target.\"cfg(unix)\".dependencies.tar]\nversion = \"0.4\"\ndefault-features = false\n\n[target.\"cfg(target_os = \\\"macos\\\")\".dependencies]\nplist = \"1\"\n\n[target.\"cfg(any(target_os = \\\"macos\\\", target_os = \\\"linux\\\"))\".dependencies.rustix]\nversion = \"1.1\"\ndefault-features = false\nfeatures = [\"std\", \"fs\", \"process\"]\n\n[target.\"cfg(target_os = \\\"windows\\\")\".dependencies]\nwinreg = \"0.55\"\ndunce = \"1\"\nflate2 = \"1\"\nverifysign = \"1\"\n\n[target.\"cfg(target_os = \\\"windows\\\")\".dependencies.zip]\nversion = \"9\"\ndefault-features = false\nfeatures = [\"deflate-flate2\"]\n\n[target.\"cfg(target_os = \\\"windows\\\")\".dependencies.winsafe]\nversion = \"0.0.29\"\nfeatures = [\"advapi\", \"kernel\", \"shell\", \"version\"]\n", + "dest": "cargo/vendor/craft-update", + "dest-filename": "Cargo.toml" + }, + { + "type": "inline", + "contents": "{\"package\": null, \"files\": {}}", + "dest": "cargo/vendor/craft-update", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "shell", + "commands": [ + "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-c5a1cbf/crates/window\" \"cargo/vendor/craft-window\"" + ] + }, + { + "type": "inline", + "contents": "[package]\nname = \"craft-window\"\ndescription = \"Decide who draws the window frame (the desktop or the app) so every Craft app gets the same titlebar and borders per desktop, make an app-drawn strip act as the title bar, and keep the window list, cascade placement and Window menu for apps with one window per document.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[features]\negui = [\"dep:egui\", \"dep:objc2\", \"dep:objc2-app-kit\"]\n\n[dependencies.egui]\noptional = true\nversion = \"0.37\"\ndefault-features = false\n\n[target.\"cfg(any(target_os = \\\"linux\\\", target_os = \\\"freebsd\\\", target_os = \\\"openbsd\\\", target_os = \\\"netbsd\\\"))\".dependencies]\nwayland-client = \"0.31\"\n\n[target.\"cfg(target_os = \\\"macos\\\")\".dependencies.objc2]\nversion = \"0.6.4\"\ndefault-features = false\nfeatures = [\"std\"]\noptional = true\n\n[target.\"cfg(target_os = \\\"macos\\\")\".dependencies.objc2-app-kit]\nversion = \"0.3.2\"\ndefault-features = false\nfeatures = [\"std\", \"NSApplication\", \"NSButton\", \"NSControl\", \"NSResponder\", \"NSView\", \"NSWindow\"]\noptional = true\n\n[lints.rust]\nunsafe_code = \"forbid\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n", + "dest": "cargo/vendor/craft-window", + "dest-filename": "Cargo.toml" + }, + { + "type": "inline", + "contents": "{\"package\": null, \"files\": {}}", + "dest": "cargo/vendor/craft-window", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "shell", + "commands": [ + "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-f0f4758/crates/xml\" \"cargo/vendor/craft-xml\"" + ] + }, + { + "type": "inline", + "contents": "[package]\nname = \"craft-xml\"\ndescription = \"Bounded XML for hostile input: an owned element tree, streaming of repeated elements, a pull reader, escaping and a writer. No DTDs, no entity expansion.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[dependencies]\nthiserror = \"2\"\n\n[dependencies.quick-xml]\nversion = \"0.41\"\ndefault-features = false\n", + "dest": "cargo/vendor/craft-xml", + "dest-filename": "Cargo.toml" + }, + { + "type": "inline", + "contents": "{\"package\": null, \"files\": {}}", + "dest": "cargo/vendor/craft-xml", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/crc32fast/crc32fast-1.5.2.crate", - "sha256": "01a7799fd6b852db0e61728dde9a204c423b44d689dbd432522543614b490e78", - "dest": "cargo/vendor/crc32fast-1.5.2" + "url": "https://static.crates.io/crates/crc32fast/crc32fast-1.5.3.crate", + "sha256": "0ba106e844045ddc02c20768ac4b0b7cb45f2cc2ecbd833ac9f5dacb183c2055", + "dest": "cargo/vendor/crc32fast-1.5.3" }, { "type": "inline", - "contents": "{\"package\": \"01a7799fd6b852db0e61728dde9a204c423b44d689dbd432522543614b490e78\", \"files\": {}}", - "dest": "cargo/vendor/crc32fast-1.5.2", + "contents": "{\"package\": \"0ba106e844045ddc02c20768ac4b0b7cb45f2cc2ecbd833ac9f5dacb183c2055\", \"files\": {}}", + "dest": "cargo/vendor/crc32fast-1.5.3", "dest-filename": ".cargo-checksum.json" }, { @@ -1580,6 +2168,19 @@ "dest": "cargo/vendor/der-0.7.10", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/deranged/deranged-0.5.9.crate", + "sha256": "9e9de72ce2ad1f90dc62fa25f0f430ef85eb4b0d8fa0be4f30373bc40a21d28e", + "dest": "cargo/vendor/deranged-0.5.9" + }, + { + "type": "inline", + "contents": "{\"package\": \"9e9de72ce2ad1f90dc62fa25f0f430ef85eb4b0d8fa0be4f30373bc40a21d28e\", \"files\": {}}", + "dest": "cargo/vendor/deranged-0.5.9", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -1645,6 +2246,19 @@ "dest": "cargo/vendor/dispatch2-0.3.1", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/displaydoc/displaydoc-0.2.7.crate", + "sha256": "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8", + "dest": "cargo/vendor/displaydoc-0.2.7" + }, + { + "type": "inline", + "contents": "{\"package\": \"c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8\", \"files\": {}}", + "dest": "cargo/vendor/displaydoc-0.2.7", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -1697,6 +2311,19 @@ "dest": "cargo/vendor/dpi-0.1.2", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/dunce/dunce-1.0.5.crate", + "sha256": "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813", + "dest": "cargo/vendor/dunce-1.0.5" + }, + { + "type": "inline", + "contents": "{\"package\": \"92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813\", \"files\": {}}", + "dest": "cargo/vendor/dunce-1.0.5", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -1865,6 +2492,24 @@ "dest": "cargo/vendor/egui-winit", "dest-filename": ".cargo-checksum.json" }, + { + "type": "shell", + "commands": [ + "cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/egui_extras\" \"cargo/vendor/egui_extras\"" + ] + }, + { + "type": "inline", + "contents": "[package]\nname = \"egui_extras\"\nversion = \"0.37.0\"\nauthors = [\"Dominik R\u00f6ssler \", \"Emil Ernerfeldt \", \"Ren\u00e9 R\u00f6ssler \"]\ndescription = \"Extra functionality and widgets for the egui GUI library\"\nedition = \"2024\"\nrust-version = \"1.95\"\nhomepage = \"https://github.com/emilk/egui\"\nlicense = \"MIT OR Apache-2.0\"\nreadme = \"README.md\"\nrepository = \"https://github.com/emilk/egui\"\ncategories = [\"gui\", \"game-development\"]\nkeywords = [\"gui\", \"imgui\", \"immediate\", \"portable\", \"gamedev\"]\ninclude = [\"../../LICENSE-APACHE\", \"../../LICENSE-MIT\", \"**/*.rs\", \"Cargo.toml\"]\n\n[package.metadata.docs.rs]\nall-features = true\nrustdoc-args = [\"--generate-link-to-definition\"]\n\n[lints.rust]\nunsafe_code = \"deny\"\ntrivial_numeric_casts = \"warn\"\nunused_import_braces = \"warn\"\nunused_lifetimes = \"warn\"\ntrivial_casts = \"allow\"\nunused_qualifications = \"allow\"\n\n[lints.rust.future_incompatible]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.nonstandard_style]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.rust_2018_idioms]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(web_sys_unstable_apis)\"]\n\n[lints.rustdoc]\nall = \"warn\"\n\n[lints.clippy]\nallow_attributes = \"warn\"\nas_ptr_cast_mut = \"warn\"\nbranches_sharing_code = \"warn\"\nclear_with_drain = \"warn\"\nclone_on_ref_ptr = \"warn\"\ncoerce_container_to_any = \"warn\"\ndbg_macro = \"warn\"\ndebug_assert_with_mut_call = \"warn\"\ndefault_union_representation = \"warn\"\nderive_partial_eq_without_eq = \"warn\"\ndisallowed_script_idents = \"warn\"\ndoc_include_without_cfg = \"warn\"\nempty_enum_variants_with_brackets = \"warn\"\nequatable_if_let = \"warn\"\nexit = \"warn\"\nfallible_impl_from = \"warn\"\nfloat_cmp_const = \"warn\"\nfn_to_numeric_cast_any = \"warn\"\nget_unwrap = \"warn\"\nimprecise_flops = \"warn\"\ninfinite_loop = \"warn\"\niter_on_empty_collections = \"warn\"\niter_on_single_items = \"warn\"\niter_over_hash_type = \"warn\"\nlarge_include_file = \"warn\"\nlarge_stack_frames = \"warn\"\nliteral_string_with_formatting_args = \"warn\"\nlossy_float_literal = \"warn\"\nmap_err_ignore = \"warn\"\nmem_forget = \"warn\"\nmissing_assert_message = \"warn\"\nmutex_integer = \"warn\"\nneedless_pass_by_ref_mut = \"warn\"\nneedless_type_cast = \"warn\"\nnon_zero_suggestions = \"warn\"\nnonstandard_macro_braces = \"warn\"\nor_fun_call = \"warn\"\npath_buf_push_overwrite = \"warn\"\npathbuf_init_then_push = \"warn\"\nprecedence_bits = \"warn\"\nprint_stderr = \"warn\"\nprint_stdout = \"warn\"\npub_without_shorthand = \"warn\"\nrc_mutex = \"warn\"\nredundant_type_annotations = \"warn\"\nref_patterns = \"warn\"\nrest_pat_in_fully_bound_structs = \"warn\"\nreturn_and_then = \"warn\"\nset_contains_or_insert = \"warn\"\nsingle_option_map = \"warn\"\nstd_instead_of_core = \"warn\"\nstr_to_string = \"warn\"\nstring_add = \"warn\"\nstring_lit_as_bytes = \"warn\"\nstring_lit_chars_any = \"warn\"\nsuspicious_xor_used_as_pow = \"warn\"\ntodo = \"warn\"\ntoo_long_first_doc_paragraph = \"warn\"\ntrailing_empty_array = \"warn\"\ntrait_duplication_in_bounds = \"warn\"\ntuple_array_conversions = \"warn\"\nundocumented_unsafe_blocks = \"warn\"\nunimplemented = \"warn\"\nuninhabited_references = \"warn\"\nunnecessary_safety_comment = \"warn\"\nunnecessary_safety_doc = \"warn\"\nunnecessary_self_imports = \"warn\"\nunnecessary_struct_initialization = \"warn\"\nunused_peekable = \"warn\"\nunused_rounding = \"warn\"\nunused_trait_names = \"warn\"\nunwrap_used = \"warn\"\nuse_self = \"warn\"\nuseless_let_if_seq = \"warn\"\nverbose_file_reads = \"warn\"\ncast_lossless = \"allow\"\ncast_possible_truncation = \"allow\"\ncast_possible_wrap = \"allow\"\ncast_precision_loss = \"allow\"\ncast_sign_loss = \"allow\"\ncomparison_chain = \"allow\"\ndefault_trait_access = \"allow\"\nfloat_cmp = \"allow\"\ninline_always = \"allow\"\nitems_after_statements = \"allow\"\nmany_single_char_names = \"allow\"\nmissing_panics_doc = \"allow\"\nmust_use_candidate = \"allow\"\nredundant_closure_for_method_calls = \"allow\"\nreturn_self_not_must_use = \"allow\"\nshould_panic_without_expect = \"allow\"\nsimilar_names = \"allow\"\nstruct_excessive_bools = \"allow\"\nstruct_field_names = \"allow\"\ntoo_many_lines = \"allow\"\ntrivially_copy_pass_by_ref = \"allow\"\nunreadable_literal = \"allow\"\nused_underscore_binding = \"allow\"\nassigning_clones = \"allow\"\nmanual_range_contains = \"allow\"\nmap_unwrap_or = \"allow\"\nmultiple_crate_versions = \"allow\"\nwildcard_imports = \"allow\"\nlet_underscore_must_use = \"allow\"\nlet_underscore_untyped = \"allow\"\nself_named_module_files = \"allow\"\nsignificant_drop_tightening = \"allow\"\n\n[lints.clippy.all]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.cargo]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.pedantic]\nlevel = \"warn\"\npriority = -1\n\n[lib]\n\n[features]\ndefault = [\"dep:mime_guess2\"]\nall_loaders = [\"file\", \"http\", \"image\", \"svg\", \"gif\", \"webp\"]\ndatepicker = [\"jiff\"]\nfile = [\"dep:mime_guess2\"]\ngif = [\"image\", \"image/gif\"]\nwebp = [\"image\", \"image/webp\"]\nhttp = [\"dep:ehttp\"]\nimage = [\"dep:image\"]\nserde = [\"egui/serde\", \"enum-map/serde\", \"dep:serde\"]\nsvg = [\"resvg\"]\nsvg_text = [\"svg\", \"resvg/text\", \"resvg/system-fonts\"]\nsvg_images = [\"svg\", \"resvg/raster-images\"]\nsyntect = [\"dep:syntect\"]\n\n[dependencies]\nenum-map = \"3.1\"\nitertools = \"0.15.0\"\n\n[dependencies.egui]\ndefault-features = false\nversion = \"0.37.0\"\npath = \"crates/egui\"\n\n[dependencies.ahash]\nversion = \"0.8.12\"\ndefault-features = false\nfeatures = [\"no-rng\", \"std\"]\n\n[dependencies.log]\nversion = \"0.4.34\"\nfeatures = [\"std\"]\n\n[dependencies.profiling]\nversion = \"1.0\"\ndefault-features = false\n\n[dependencies.serde]\noptional = true\nversion = \"1.0\"\nfeatures = [\"derive\"]\n\n[dependencies.jiff]\noptional = true\nfeatures = [\"std\", \"tz-system\", \"js\"]\nversion = \"0.2.35\"\ndefault-features = false\n\n[dependencies.document-features]\noptional = true\nversion = \"0.2.12\"\n\n[dependencies.image]\noptional = true\nversion = \"0.25.10\"\ndefault-features = false\n\n[dependencies.mime_guess2]\noptional = true\nversion = \"2.3\"\ndefault-features = false\n\n[dependencies.syntect]\noptional = true\nfeatures = [\"default-fancy\"]\nversion = \"5.3\"\ndefault-features = false\n\n[dependencies.resvg]\noptional = true\nversion = \"0.45.1\"\ndefault-features = false\n\n[dependencies.ehttp]\noptional = true\nversion = \"0.7.1\"\ndefault-features = false\n\n[dev-dependencies]\ntempfile = \"3.27\"\n\n[dev-dependencies.egui]\nfeatures = [\"default_fonts\"]\nversion = \"0.37.0\"\npath = \"crates/egui\"\ndefault-features = false\n\n[dev-dependencies.egui_kittest]\npath = \"../egui_kittest\"\nfeatures = [\"snapshot\", \"wgpu\"]\n", + "dest": "cargo/vendor/egui_extras", + "dest-filename": "Cargo.toml" + }, + { + "type": "inline", + "contents": "{\"package\": null, \"files\": {}}", + "dest": "cargo/vendor/egui_extras", + "dest-filename": ".cargo-checksum.json" + }, { "type": "shell", "commands": [ @@ -1945,6 +2590,19 @@ "dest": "cargo/vendor/emath", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/encoding_rs/encoding_rs-0.8.44.crate", + "sha256": "89253175e704ab869b04f9db224d38630e0211a53841a79181deae0889e169f5", + "dest": "cargo/vendor/encoding_rs-0.8.44" + }, + { + "type": "inline", + "contents": "{\"package\": \"89253175e704ab869b04f9db224d38630e0211a53841a79181deae0889e169f5\", \"files\": {}}", + "dest": "cargo/vendor/encoding_rs-0.8.44", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -1971,6 +2629,32 @@ "dest": "cargo/vendor/enum-as-inner-0.6.1", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/enum-map/enum-map-3.1.0.crate", + "sha256": "d4532960034c15ba2f55e9eee631040ecc473c32e6c4b200828c759840f13a06", + "dest": "cargo/vendor/enum-map-3.1.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"d4532960034c15ba2f55e9eee631040ecc473c32e6c4b200828c759840f13a06\", \"files\": {}}", + "dest": "cargo/vendor/enum-map-3.1.0", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/enum-map-derive/enum-map-derive-1.0.1.crate", + "sha256": "7127272f64b3e098f7d81f350d672081b879bff896d219c42370dc858b1af9ff", + "dest": "cargo/vendor/enum-map-derive-1.0.1" + }, + { + "type": "inline", + "contents": "{\"package\": \"7127272f64b3e098f7d81f350d672081b879bff896d219c42370dc858b1af9ff\", \"files\": {}}", + "dest": "cargo/vendor/enum-map-derive-1.0.1", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -2163,6 +2847,19 @@ "dest": "cargo/vendor/event-listener-strategy-0.5.4", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/exr/exr-1.74.3.crate", + "sha256": "cb29d0be702adf92c645d9b2f93472906ba83d400e59f98adb3770ce5c18c2f6", + "dest": "cargo/vendor/exr-1.74.3" + }, + { + "type": "inline", + "contents": "{\"package\": \"cb29d0be702adf92c645d9b2f93472906ba83d400e59f98adb3770ce5c18c2f6\", \"files\": {}}", + "dest": "cargo/vendor/exr-1.74.3", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -2267,6 +2964,19 @@ "dest": "cargo/vendor/fiat-crypto-0.2.9", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/filetime/filetime-0.2.29.crate", + "sha256": "5c287a33c7f0a620c38e641e7f60827713987b3c0f26e8ddc9462cc69cf75759", + "dest": "cargo/vendor/filetime-0.2.29" + }, + { + "type": "inline", + "contents": "{\"package\": \"5c287a33c7f0a620c38e641e7f60827713987b3c0f26e8ddc9462cc69cf75759\", \"files\": {}}", + "dest": "cargo/vendor/filetime-0.2.29", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -2280,6 +2990,19 @@ "dest": "cargo/vendor/find-msvc-tools-0.1.14", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/fixed_decimal/fixed_decimal-0.7.3.crate", + "sha256": "2214fb00f669ee96bee5bb29dfb1ddabe058b2bc426817efc79afa03c9bc55ae", + "dest": "cargo/vendor/fixed_decimal-0.7.3" + }, + { + "type": "inline", + "contents": "{\"package\": \"2214fb00f669ee96bee5bb29dfb1ddabe058b2bc426817efc79afa03c9bc55ae\", \"files\": {}}", + "dest": "cargo/vendor/fixed_decimal-0.7.3", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -2410,6 +3133,19 @@ "dest": "cargo/vendor/foreign-types-shared-0.3.1", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/fs4/fs4-1.1.0.crate", + "sha256": "7e72ed92b67c146290f88e9c89d60ca163ea417a446f61ffd7b72df3e7f1dfd5", + "dest": "cargo/vendor/fs4-1.1.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"7e72ed92b67c146290f88e9c89d60ca163ea417a446f61ffd7b72df3e7f1dfd5\", \"files\": {}}", + "dest": "cargo/vendor/fs4-1.1.0", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -3047,6 +3783,19 @@ "dest": "cargo/vendor/harfrust-0.12.0", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/harfrust/harfrust-0.13.3.crate", + "sha256": "948d0741125ba89cd3e1c23e5642415b6ade7e1d29d67ba25fb925b533e989d6", + "dest": "cargo/vendor/harfrust-0.13.3" + }, + { + "type": "inline", + "contents": "{\"package\": \"948d0741125ba89cd3e1c23e5642415b6ade7e1d29d67ba25fb925b533e989d6\", \"files\": {}}", + "dest": "cargo/vendor/harfrust-0.13.3", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -3086,6 +3835,19 @@ "dest": "cargo/vendor/hashbrown-0.17.1", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/hayro-jpeg2000/hayro-jpeg2000-0.3.5.crate", + "sha256": "c75ab947623ef4ccaa7acf0579edf7cbb5a73838e3839a7be73335e522f433a1", + "dest": "cargo/vendor/hayro-jpeg2000-0.3.5" + }, + { + "type": "inline", + "contents": "{\"package\": \"c75ab947623ef4ccaa7acf0579edf7cbb5a73838e3839a7be73335e522f433a1\", \"files\": {}}", + "dest": "cargo/vendor/hayro-jpeg2000-0.3.5", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -3164,6 +3926,214 @@ "dest": "cargo/vendor/hmac-0.12.1", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/http/http-1.5.0.crate", + "sha256": "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0", + "dest": "cargo/vendor/http-1.5.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0\", \"files\": {}}", + "dest": "cargo/vendor/http-1.5.0", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/httparse/httparse-1.10.1.crate", + "sha256": "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87", + "dest": "cargo/vendor/httparse-1.10.1" + }, + { + "type": "inline", + "contents": "{\"package\": \"6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87\", \"files\": {}}", + "dest": "cargo/vendor/httparse-1.10.1", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/icu_collections/icu_collections-2.3.0.crate", + "sha256": "fa68d21081c4a05d5a901a1c62add574c77048b6a1c67be3b50ce0b60d4ca513", + "dest": "cargo/vendor/icu_collections-2.3.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"fa68d21081c4a05d5a901a1c62add574c77048b6a1c67be3b50ce0b60d4ca513\", \"files\": {}}", + "dest": "cargo/vendor/icu_collections-2.3.0", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/icu_decimal/icu_decimal-2.3.0.crate", + "sha256": "9eb8f655bba2d0c0459e43a5b0e6cd3cd388109898fb3d85d048165e8b0abd08", + "dest": "cargo/vendor/icu_decimal-2.3.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"9eb8f655bba2d0c0459e43a5b0e6cd3cd388109898fb3d85d048165e8b0abd08\", \"files\": {}}", + "dest": "cargo/vendor/icu_decimal-2.3.0", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/icu_locale_core/icu_locale_core-2.3.0.crate", + "sha256": "d56e28588da92eee5c3201a6eff33fabdd49b62269c8938d4ff050ce4d900deb", + "dest": "cargo/vendor/icu_locale_core-2.3.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"d56e28588da92eee5c3201a6eff33fabdd49b62269c8938d4ff050ce4d900deb\", \"files\": {}}", + "dest": "cargo/vendor/icu_locale_core-2.3.0", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/icu_locale_fallback/icu_locale_fallback-2.3.0.crate", + "sha256": "251af8e57c9400e3eb58242fe5b8b1152b2a64fdf4cf632f923c38ccee6f2fa9", + "dest": "cargo/vendor/icu_locale_fallback-2.3.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"251af8e57c9400e3eb58242fe5b8b1152b2a64fdf4cf632f923c38ccee6f2fa9\", \"files\": {}}", + "dest": "cargo/vendor/icu_locale_fallback-2.3.0", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/icu_locale_fallback_data/icu_locale_fallback_data-2.3.0.crate", + "sha256": "decf2a22ec8fa68f1a0c1129a3f8583f8f8bc24e8b9ccbe98ead99f62a4dc3a8", + "dest": "cargo/vendor/icu_locale_fallback_data-2.3.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"decf2a22ec8fa68f1a0c1129a3f8583f8f8bc24e8b9ccbe98ead99f62a4dc3a8\", \"files\": {}}", + "dest": "cargo/vendor/icu_locale_fallback_data-2.3.0", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/icu_normalizer/icu_normalizer-2.3.0.crate", + "sha256": "12f9cf5f235641ed274641dd81c3f28d870e276763d0797aeeab72317b1c646f", + "dest": "cargo/vendor/icu_normalizer-2.3.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"12f9cf5f235641ed274641dd81c3f28d870e276763d0797aeeab72317b1c646f\", \"files\": {}}", + "dest": "cargo/vendor/icu_normalizer-2.3.0", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/icu_normalizer_data/icu_normalizer_data-2.3.0.crate", + "sha256": "1563da1ed3e0b3bf3d74c9b85917ac9c56464d2f57242270c09c9e752f8021a0", + "dest": "cargo/vendor/icu_normalizer_data-2.3.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"1563da1ed3e0b3bf3d74c9b85917ac9c56464d2f57242270c09c9e752f8021a0\", \"files\": {}}", + "dest": "cargo/vendor/icu_normalizer_data-2.3.0", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/icu_pattern/icu_pattern-0.5.0.crate", + "sha256": "2b3db611446bd92c246b03e4aa0bafa71ddb194af431ddbb42b9d70e4bfce1a0", + "dest": "cargo/vendor/icu_pattern-0.5.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"2b3db611446bd92c246b03e4aa0bafa71ddb194af431ddbb42b9d70e4bfce1a0\", \"files\": {}}", + "dest": "cargo/vendor/icu_pattern-0.5.0", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/icu_plurals/icu_plurals-2.3.0.crate", + "sha256": "e475e6766ef87b1d3c1f97be6363995b0bfaeddbc789671615df598a97ff0593", + "dest": "cargo/vendor/icu_plurals-2.3.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"e475e6766ef87b1d3c1f97be6363995b0bfaeddbc789671615df598a97ff0593\", \"files\": {}}", + "dest": "cargo/vendor/icu_plurals-2.3.0", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/icu_properties/icu_properties-2.3.0.crate", + "sha256": "7e7ca276ad3145661a65914e6daf131ca5120cd3dcee8f8f3214b8875184a148", + "dest": "cargo/vendor/icu_properties-2.3.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"7e7ca276ad3145661a65914e6daf131ca5120cd3dcee8f8f3214b8875184a148\", \"files\": {}}", + "dest": "cargo/vendor/icu_properties-2.3.0", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/icu_properties_data/icu_properties_data-2.3.0.crate", + "sha256": "e590f038c1464a96894fd6d10127e90a8be4509f56ff7ecef851b15cee0b7caa", + "dest": "cargo/vendor/icu_properties_data-2.3.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"e590f038c1464a96894fd6d10127e90a8be4509f56ff7ecef851b15cee0b7caa\", \"files\": {}}", + "dest": "cargo/vendor/icu_properties_data-2.3.0", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/icu_provider/icu_provider-2.3.1.crate", + "sha256": "d27bbb9d3abbefac45d55f647c9de1d44aafcd1186eb91879afef17c396c3e73", + "dest": "cargo/vendor/icu_provider-2.3.1" + }, + { + "type": "inline", + "contents": "{\"package\": \"d27bbb9d3abbefac45d55f647c9de1d44aafcd1186eb91879afef17c396c3e73\", \"files\": {}}", + "dest": "cargo/vendor/icu_provider-2.3.1", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/icu_provider_adapters/icu_provider_adapters-2.3.0.crate", + "sha256": "df887bc4f55dbc773c7c45a0c7dfa75be886f7b7812830a71ab7271cc1801820", + "dest": "cargo/vendor/icu_provider_adapters-2.3.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"df887bc4f55dbc773c7c45a0c7dfa75be886f7b7812830a71ab7271cc1801820\", \"files\": {}}", + "dest": "cargo/vendor/icu_provider_adapters-2.3.0", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/icu_provider_blob/icu_provider_blob-2.3.0.crate", + "sha256": "5916b44fac319d3f58e4d8d805a627df19e27937b582cd99fcde3bb6b7ce1b0e", + "dest": "cargo/vendor/icu_provider_blob-2.3.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"5916b44fac319d3f58e4d8d805a627df19e27937b582cd99fcde3bb6b7ce1b0e\", \"files\": {}}", + "dest": "cargo/vendor/icu_provider_blob-2.3.0", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -3401,14 +4371,14 @@ { "type": "archive", "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/jpeg-decoder/jpeg-decoder-0.3.2.crate", - "sha256": "00810f1d8b74be64b13dbf3db89ac67740615d6c891f0e7b6179326533011a07", - "dest": "cargo/vendor/jpeg-decoder-0.3.2" + "url": "https://static.crates.io/crates/jpeg-encoder/jpeg-encoder-0.6.1.crate", + "sha256": "b454d911ac55068f53495488d8ccd0646eaa540c033a28ee15b07838afafb01f", + "dest": "cargo/vendor/jpeg-encoder-0.6.1" }, { "type": "inline", - "contents": "{\"package\": \"00810f1d8b74be64b13dbf3db89ac67740615d6c891f0e7b6179326533011a07\", \"files\": {}}", - "dest": "cargo/vendor/jpeg-decoder-0.3.2", + "contents": "{\"package\": \"b454d911ac55068f53495488d8ccd0646eaa540c033a28ee15b07838afafb01f\", \"files\": {}}", + "dest": "cargo/vendor/jpeg-encoder-0.6.1", "dest-filename": ".cargo-checksum.json" }, { @@ -3687,14 +4657,27 @@ { "type": "archive", "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/libc/libc-0.2.189.crate", - "sha256": "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2", - "dest": "cargo/vendor/libc-0.2.189" + "url": "https://static.crates.io/crates/lebe/lebe-0.5.3.crate", + "sha256": "7a79a3332a6609480d7d0c9eab957bca6b455b91bb84e66d19f5ff66294b85b8", + "dest": "cargo/vendor/lebe-0.5.3" }, { "type": "inline", - "contents": "{\"package\": \"3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2\", \"files\": {}}", - "dest": "cargo/vendor/libc-0.2.189", + "contents": "{\"package\": \"7a79a3332a6609480d7d0c9eab957bca6b455b91bb84e66d19f5ff66294b85b8\", \"files\": {}}", + "dest": "cargo/vendor/lebe-0.5.3", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/libc/libc-0.2.191.crate", + "sha256": "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a", + "dest": "cargo/vendor/libc-0.2.191" + }, + { + "type": "inline", + "contents": "{\"package\": \"65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a\", \"files\": {}}", + "dest": "cargo/vendor/libc-0.2.191", "dest-filename": ".cargo-checksum.json" }, { @@ -3788,6 +4771,19 @@ "dest": "cargo/vendor/linux-raw-sys-0.12.1", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/litemap/litemap-0.8.3.crate", + "sha256": "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae", + "dest": "cargo/vendor/litemap-0.8.3" + }, + { + "type": "inline", + "contents": "{\"package\": \"47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae\", \"files\": {}}", + "dest": "cargo/vendor/litemap-0.8.3", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -3892,6 +4888,19 @@ "dest": "cargo/vendor/maybe-rayon-0.1.1", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/md-5/md-5-0.10.6.crate", + "sha256": "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf", + "dest": "cargo/vendor/md-5-0.10.6" + }, + { + "type": "inline", + "contents": "{\"package\": \"d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf\", \"files\": {}}", + "dest": "cargo/vendor/md-5-0.10.6", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -3999,27 +5008,53 @@ { "type": "archive", "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/moxcms/moxcms-0.9.1.crate", - "sha256": "396077b717181ce3f9a6b66739b269b82d756be5ec0f76be0bc40a7c51775830", - "dest": "cargo/vendor/moxcms-0.9.1" + "url": "https://static.crates.io/crates/muda/muda-0.21.2.crate", + "sha256": "4340e89c178916e62879c5c36b7f699019369be413e496178a6983ce91b8bc03", + "dest": "cargo/vendor/muda-0.21.2" }, { "type": "inline", - "contents": "{\"package\": \"396077b717181ce3f9a6b66739b269b82d756be5ec0f76be0bc40a7c51775830\", \"files\": {}}", - "dest": "cargo/vendor/moxcms-0.9.1", + "contents": "{\"package\": \"4340e89c178916e62879c5c36b7f699019369be413e496178a6983ce91b8bc03\", \"files\": {}}", + "dest": "cargo/vendor/muda-0.21.2", "dest-filename": ".cargo-checksum.json" }, { "type": "archive", "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/muda/muda-0.21.0.crate", - "sha256": "c6744ab645ebe79f9c428455c7cb9dfa4275fa3b50a25408e08f927da8dc618c", - "dest": "cargo/vendor/muda-0.21.0" + "url": "https://static.crates.io/crates/multiversion/multiversion-0.8.1.crate", + "sha256": "eb8a68be21d0755f83bfe47e79b896cc732687cf1903f0e50585e8d6ecc53076", + "dest": "cargo/vendor/multiversion-0.8.1" }, { "type": "inline", - "contents": "{\"package\": \"c6744ab645ebe79f9c428455c7cb9dfa4275fa3b50a25408e08f927da8dc618c\", \"files\": {}}", - "dest": "cargo/vendor/muda-0.21.0", + "contents": "{\"package\": \"eb8a68be21d0755f83bfe47e79b896cc732687cf1903f0e50585e8d6ecc53076\", \"files\": {}}", + "dest": "cargo/vendor/multiversion-0.8.1", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/multiversion-macros/multiversion-macros-0.8.1.crate", + "sha256": "a05e0c3c3e4edaa21d87c645852ed0b0c3663752bcc6ec43353bd6189dce35e1", + "dest": "cargo/vendor/multiversion-macros-0.8.1" + }, + { + "type": "inline", + "contents": "{\"package\": \"a05e0c3c3e4edaa21d87c645852ed0b0c3663752bcc6ec43353bd6189dce35e1\", \"files\": {}}", + "dest": "cargo/vendor/multiversion-macros-0.8.1", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/multiversion_no_op/multiversion_no_op-1.0.0.crate", + "sha256": "743fb55ba31b18fb1ecef6bdc9aa2743314978ac084044301a7eee33fb99a20d", + "dest": "cargo/vendor/multiversion_no_op-1.0.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"743fb55ba31b18fb1ecef6bdc9aa2743314978ac084044301a7eee33fb99a20d\", \"files\": {}}", + "dest": "cargo/vendor/multiversion_no_op-1.0.0", "dest-filename": ".cargo-checksum.json" }, { @@ -4113,6 +5148,19 @@ "dest": "cargo/vendor/new_debug_unreachable-1.0.6", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/nix/nix-0.31.3.crate", + "sha256": "cf20d2fde8ff38632c426f1165ed7436270b44f199fc55284c38276f9db47c3d", + "dest": "cargo/vendor/nix-0.31.3" + }, + { + "type": "inline", + "contents": "{\"package\": \"cf20d2fde8ff38632c426f1165ed7436270b44f199fc55284c38276f9db47c3d\", \"files\": {}}", + "dest": "cargo/vendor/nix-0.31.3", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -4217,6 +5265,19 @@ "dest": "cargo/vendor/num-complex-0.4.6", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/num-conv/num-conv-0.2.2.crate", + "sha256": "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441", + "dest": "cargo/vendor/num-conv-0.2.2" + }, + { + "type": "inline", + "contents": "{\"package\": \"521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441\", \"files\": {}}", + "dest": "cargo/vendor/num-conv-0.2.2", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -4363,14 +5424,14 @@ { "type": "archive", "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/objc2/objc2-0.6.4.crate", - "sha256": "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f", - "dest": "cargo/vendor/objc2-0.6.4" + "url": "https://static.crates.io/crates/objc2/objc2-0.6.5.crate", + "sha256": "08849bbd4767dfae9457696856ae1c84fe4e0281bbe4a7abff2d0e06fb7981f8", + "dest": "cargo/vendor/objc2-0.6.5" }, { "type": "inline", - "contents": "{\"package\": \"3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f\", \"files\": {}}", - "dest": "cargo/vendor/objc2-0.6.4", + "contents": "{\"package\": \"08849bbd4767dfae9457696856ae1c84fe4e0281bbe4a7abff2d0e06fb7981f8\", \"files\": {}}", + "dest": "cargo/vendor/objc2-0.6.5", "dest-filename": ".cargo-checksum.json" }, { @@ -4724,6 +5785,19 @@ "dest": "cargo/vendor/open-5.4.4", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/openssl-probe/openssl-probe-0.2.1.crate", + "sha256": "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe", + "dest": "cargo/vendor/openssl-probe-0.2.1" + }, + { + "type": "inline", + "contents": "{\"package\": \"7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe\", \"files\": {}}", + "dest": "cargo/vendor/openssl-probe-0.2.1", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -5101,6 +6175,19 @@ "dest": "cargo/vendor/plain-0.2.3", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/plist/plist-1.10.3.crate", + "sha256": "327a4cb2ad49dc48adfdc9da89e22c64d488b508c67a044d71ba729e4521a285", + "dest": "cargo/vendor/plist-1.10.3" + }, + { + "type": "inline", + "contents": "{\"package\": \"327a4cb2ad49dc48adfdc9da89e22c64d488b508c67a044d71ba729e4521a285\", \"files\": {}}", + "dest": "cargo/vendor/plist-1.10.3", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -5218,6 +6305,45 @@ "dest": "cargo/vendor/portable-atomic-util-0.2.8", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/postcard/postcard-1.1.3.crate", + "sha256": "6764c3b5dd454e283a30e6dfe78e9b31096d9e32036b5d1eaac7a6119ccb9a24", + "dest": "cargo/vendor/postcard-1.1.3" + }, + { + "type": "inline", + "contents": "{\"package\": \"6764c3b5dd454e283a30e6dfe78e9b31096d9e32036b5d1eaac7a6119ccb9a24\", \"files\": {}}", + "dest": "cargo/vendor/postcard-1.1.3", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/potential_utf/potential_utf-0.1.6.crate", + "sha256": "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661", + "dest": "cargo/vendor/potential_utf-0.1.6" + }, + { + "type": "inline", + "contents": "{\"package\": \"d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661\", \"files\": {}}", + "dest": "cargo/vendor/potential_utf-0.1.6", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/powerfmt/powerfmt-0.2.1.crate", + "sha256": "4a6394b9e965e73d0a289ee54f589087e2c676aedf60885baf52c76b771e4958", + "dest": "cargo/vendor/powerfmt-0.2.1" + }, + { + "type": "inline", + "contents": "{\"package\": \"4a6394b9e965e73d0a289ee54f589087e2c676aedf60885baf52c76b771e4958\", \"files\": {}}", + "dest": "cargo/vendor/powerfmt-0.2.1", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -5312,14 +6438,14 @@ { "type": "archive", "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/proptest/proptest-1.11.0.crate", - "sha256": "4b45fcc2344c680f5025fe57779faef368840d0bd1f42f216291f0dc4ace4744", - "dest": "cargo/vendor/proptest-1.11.0" + "url": "https://static.crates.io/crates/proptest/proptest-1.12.0.crate", + "sha256": "b8530004ccb15eae51c7e40009fbe317f341f804db54dc033eec1c50be28cfa0", + "dest": "cargo/vendor/proptest-1.12.0" }, { "type": "inline", - "contents": "{\"package\": \"4b45fcc2344c680f5025fe57779faef368840d0bd1f42f216291f0dc4ace4744\", \"files\": {}}", - "dest": "cargo/vendor/proptest-1.11.0", + "contents": "{\"package\": \"b8530004ccb15eae51c7e40009fbe317f341f804db54dc033eec1c50be28cfa0\", \"files\": {}}", + "dest": "cargo/vendor/proptest-1.12.0", "dest-filename": ".cargo-checksum.json" }, { @@ -5387,6 +6513,19 @@ "dest": "cargo/vendor/pxfm-0.1.30", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/qoi/qoi-0.4.1.crate", + "sha256": "7f6d64c71eb498fe9eae14ce4ec935c555749aef511cca85b5568910d6e48001", + "dest": "cargo/vendor/qoi-0.4.1" + }, + { + "type": "inline", + "contents": "{\"package\": \"7f6d64c71eb498fe9eae14ce4ec935c555749aef511cca85b5568910d6e48001\", \"files\": {}}", + "dest": "cargo/vendor/qoi-0.4.1", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -5426,6 +6565,19 @@ "dest": "cargo/vendor/quick-xml-0.41.0", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/quick-xml/quick-xml-0.42.0.crate", + "sha256": "41b1177fdf999d2321d3fb46ff47159d9c1fb9ad66a4879f8c50a0b504615e9b", + "dest": "cargo/vendor/quick-xml-0.42.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"41b1177fdf999d2321d3fb46ff47159d9c1fb9ad66a4879f8c50a0b504615e9b\", \"files\": {}}", + "dest": "cargo/vendor/quick-xml-0.42.0", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -5491,6 +6643,19 @@ "dest": "cargo/vendor/rand-0.9.5", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/rand/rand-0.10.3.crate", + "sha256": "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af", + "dest": "cargo/vendor/rand-0.10.3" + }, + { + "type": "inline", + "contents": "{\"package\": \"65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af\", \"files\": {}}", + "dest": "cargo/vendor/rand-0.10.3", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -5543,6 +6708,19 @@ "dest": "cargo/vendor/rand_core-0.9.5", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/rand_core/rand_core-0.10.1.crate", + "sha256": "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69", + "dest": "cargo/vendor/rand_core-0.10.1" + }, + { + "type": "inline", + "contents": "{\"package\": \"63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69\", \"files\": {}}", + "dest": "cargo/vendor/rand_core-0.10.1", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -5559,14 +6737,14 @@ { "type": "archive", "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/rand_xorshift/rand_xorshift-0.4.0.crate", - "sha256": "513962919efc330f829edb2535844d1b912b0fbe2ca165d613e4e8788bb05a5a", - "dest": "cargo/vendor/rand_xorshift-0.4.0" + "url": "https://static.crates.io/crates/rand_xorshift/rand_xorshift-0.5.0.crate", + "sha256": "60aa6af80be32871323012e02e6e65f8a7cc7890931ae421d217ad8fe0df2ccf", + "dest": "cargo/vendor/rand_xorshift-0.5.0" }, { "type": "inline", - "contents": "{\"package\": \"513962919efc330f829edb2535844d1b912b0fbe2ca165d613e4e8788bb05a5a\", \"files\": {}}", - "dest": "cargo/vendor/rand_xorshift-0.4.0", + "contents": "{\"package\": \"60aa6af80be32871323012e02e6e65f8a7cc7890931ae421d217ad8fe0df2ccf\", \"files\": {}}", + "dest": "cargo/vendor/rand_xorshift-0.5.0", "dest-filename": ".cargo-checksum.json" }, { @@ -5712,6 +6890,19 @@ "dest": "cargo/vendor/read-fonts-0.41.0", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/read-fonts/read-fonts-0.43.3.crate", + "sha256": "005c8acf251756c478b0bf402885bfd88a1476020c4c7e6060edc1aa68da38ea", + "dest": "cargo/vendor/read-fonts-0.43.3" + }, + { + "type": "inline", + "contents": "{\"package\": \"005c8acf251756c478b0bf402885bfd88a1476020c4c7e6060edc1aa68da38ea\", \"files\": {}}", + "dest": "cargo/vendor/read-fonts-0.43.3", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -5842,6 +7033,19 @@ "dest": "cargo/vendor/ring-0.17.14", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/roxmltree/roxmltree-0.21.2.crate", + "sha256": "9da7f59328b09405b181fee1018925fad50f157afb43c0c0f5c522c256dd5907", + "dest": "cargo/vendor/roxmltree-0.21.2" + }, + { + "type": "inline", + "contents": "{\"package\": \"9da7f59328b09405b181fee1018925fad50f157afb43c0c0f5c522c256dd5907\", \"files\": {}}", + "dest": "cargo/vendor/roxmltree-0.21.2", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -5936,14 +7140,27 @@ { "type": "archive", "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/rustls/rustls-0.23.45.crate", - "sha256": "0d41d731c7d2f962d1ccc364cec258de3c0e93b38c2fb3ba97ac74513048d634", - "dest": "cargo/vendor/rustls-0.23.45" + "url": "https://static.crates.io/crates/rustls/rustls-0.23.46.crate", + "sha256": "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf", + "dest": "cargo/vendor/rustls-0.23.46" }, { "type": "inline", - "contents": "{\"package\": \"0d41d731c7d2f962d1ccc364cec258de3c0e93b38c2fb3ba97ac74513048d634\", \"files\": {}}", - "dest": "cargo/vendor/rustls-0.23.45", + "contents": "{\"package\": \"48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf\", \"files\": {}}", + "dest": "cargo/vendor/rustls-0.23.46", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/rustls-native-certs/rustls-native-certs-0.8.5.crate", + "sha256": "4a073f5dc7469f984c52ad2752b63b0807745133b6de880b7b64c1ac4c48aec4", + "dest": "cargo/vendor/rustls-native-certs-0.8.5" + }, + { + "type": "inline", + "contents": "{\"package\": \"4a073f5dc7469f984c52ad2752b63b0807745133b6de880b7b64c1ac4c48aec4\", \"files\": {}}", + "dest": "cargo/vendor/rustls-native-certs-0.8.5", "dest-filename": ".cargo-checksum.json" }, { @@ -5959,6 +7176,32 @@ "dest": "cargo/vendor/rustls-pki-types-1.15.1", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/rustls-platform-verifier/rustls-platform-verifier-0.7.1.crate", + "sha256": "1167586491e2b18b8bfbb293e8180ec17c201c4f076d7cb3070ca964e7598f98", + "dest": "cargo/vendor/rustls-platform-verifier-0.7.1" + }, + { + "type": "inline", + "contents": "{\"package\": \"1167586491e2b18b8bfbb293e8180ec17c201c4f076d7cb3070ca964e7598f98\", \"files\": {}}", + "dest": "cargo/vendor/rustls-platform-verifier-0.7.1", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/rustls-platform-verifier-android/rustls-platform-verifier-android-0.2.0.crate", + "sha256": "eec689c0bc40ff2458a5977b6619cb718087084a18e02a131c599b62d05e1a5f", + "dest": "cargo/vendor/rustls-platform-verifier-android-0.2.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"eec689c0bc40ff2458a5977b6619cb718087084a18e02a131c599b62d05e1a5f\", \"files\": {}}", + "dest": "cargo/vendor/rustls-platform-verifier-android-0.2.0", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -5988,14 +7231,14 @@ { "type": "archive", "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/rustls-webpki/rustls-webpki-0.103.15.crate", - "sha256": "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2", - "dest": "cargo/vendor/rustls-webpki-0.103.15" + "url": "https://static.crates.io/crates/rustls-webpki/rustls-webpki-0.103.16.crate", + "sha256": "4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281", + "dest": "cargo/vendor/rustls-webpki-0.103.16" }, { "type": "inline", - "contents": "{\"package\": \"f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2\", \"files\": {}}", - "dest": "cargo/vendor/rustls-webpki-0.103.15", + "contents": "{\"package\": \"4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281\", \"files\": {}}", + "dest": "cargo/vendor/rustls-webpki-0.103.16", "dest-filename": ".cargo-checksum.json" }, { @@ -6063,6 +7306,19 @@ "dest": "cargo/vendor/same-file-1.0.6", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/schannel/schannel-0.1.30.crate", + "sha256": "9cb23c424d8ee841bb4d813677ca237e2a610067d594fec130f87d6093495ab5", + "dest": "cargo/vendor/schannel-0.1.30" + }, + { + "type": "inline", + "contents": "{\"package\": \"9cb23c424d8ee841bb4d813677ca237e2a610067d594fec130f87d6093495ab5\", \"files\": {}}", + "dest": "cargo/vendor/schannel-0.1.30", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -6102,6 +7358,32 @@ "dest": "cargo/vendor/sec1-0.7.3", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/security-framework/security-framework-3.7.0.crate", + "sha256": "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d", + "dest": "cargo/vendor/security-framework-3.7.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d\", \"files\": {}}", + "dest": "cargo/vendor/security-framework-3.7.0", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/security-framework-sys/security-framework-sys-2.17.0.crate", + "sha256": "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3", + "dest": "cargo/vendor/security-framework-sys-2.17.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3\", \"files\": {}}", + "dest": "cargo/vendor/security-framework-sys-2.17.0", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -6196,14 +7478,14 @@ { "type": "archive", "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/serde_json/serde_json-1.0.151.crate", - "sha256": "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14", - "dest": "cargo/vendor/serde_json-1.0.151" + "url": "https://static.crates.io/crates/serde_json/serde_json-1.0.154.crate", + "sha256": "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6", + "dest": "cargo/vendor/serde_json-1.0.154" }, { "type": "inline", - "contents": "{\"package\": \"c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14\", \"files\": {}}", - "dest": "cargo/vendor/serde_json-1.0.151", + "contents": "{\"package\": \"e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6\", \"files\": {}}", + "dest": "cargo/vendor/serde_json-1.0.154", "dest-filename": ".cargo-checksum.json" }, { @@ -6583,6 +7865,19 @@ "dest": "cargo/vendor/synstructure-0.14.0", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/sys-locale/sys-locale-0.3.2.crate", + "sha256": "8eab9a99a024a169fe8a903cf9d4a3b3601109bcc13bd9e3c6fff259138626c4", + "dest": "cargo/vendor/sys-locale-0.3.2" + }, + { + "type": "inline", + "contents": "{\"package\": \"8eab9a99a024a169fe8a903cf9d4a3b3601109bcc13bd9e3c6fff259138626c4\", \"files\": {}}", + "dest": "cargo/vendor/sys-locale-0.3.2", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -6609,6 +7904,32 @@ "dest": "cargo/vendor/sysctl-0.6.0", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/tar/tar-0.4.46.crate", + "sha256": "3f6221d9a6003c78398e3b239969f352578258df48c8eb051caadae0015bc840", + "dest": "cargo/vendor/tar-0.4.46" + }, + { + "type": "inline", + "contents": "{\"package\": \"3f6221d9a6003c78398e3b239969f352578258df48c8eb051caadae0015bc840\", \"files\": {}}", + "dest": "cargo/vendor/tar-0.4.46", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/target-features/target-features-0.1.6.crate", + "sha256": "c1bbb9f3c5c463a01705937a24fdabc5047929ac764b2d5b9cf681c1f5041ed5", + "dest": "cargo/vendor/target-features-0.1.6" + }, + { + "type": "inline", + "contents": "{\"package\": \"c1bbb9f3c5c463a01705937a24fdabc5047929ac764b2d5b9cf681c1f5041ed5\", \"files\": {}}", + "dest": "cargo/vendor/target-features-0.1.6", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -6713,6 +8034,71 @@ "dest": "cargo/vendor/tiff-0.11.3", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/time/time-0.3.55.crate", + "sha256": "cdb87b95ec50ddfa440816d227a17b2ccbdda963a316a727fda0fc4334f7d134", + "dest": "cargo/vendor/time-0.3.55" + }, + { + "type": "inline", + "contents": "{\"package\": \"cdb87b95ec50ddfa440816d227a17b2ccbdda963a316a727fda0fc4334f7d134\", \"files\": {}}", + "dest": "cargo/vendor/time-0.3.55", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/time-core/time-core-0.1.9.crate", + "sha256": "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109", + "dest": "cargo/vendor/time-core-0.1.9" + }, + { + "type": "inline", + "contents": "{\"package\": \"9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109\", \"files\": {}}", + "dest": "cargo/vendor/time-core-0.1.9", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/time-macros/time-macros-0.2.32.crate", + "sha256": "7e689342a48d2ea927c87ea50cabf8594854bf940e9310208848d680d668ed85", + "dest": "cargo/vendor/time-macros-0.2.32" + }, + { + "type": "inline", + "contents": "{\"package\": \"7e689342a48d2ea927c87ea50cabf8594854bf940e9310208848d680d668ed85\", \"files\": {}}", + "dest": "cargo/vendor/time-macros-0.2.32", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/tinystr/tinystr-0.8.4.crate", + "sha256": "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643", + "dest": "cargo/vendor/tinystr-0.8.4" + }, + { + "type": "inline", + "contents": "{\"package\": \"b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643\", \"files\": {}}", + "dest": "cargo/vendor/tinystr-0.8.4", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/tinyvec/tinyvec-1.13.3.crate", + "sha256": "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee", + "dest": "cargo/vendor/tinyvec-1.13.3" + }, + { + "type": "inline", + "contents": "{\"package\": \"fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee\", \"files\": {}}", + "dest": "cargo/vendor/tinyvec-1.13.3", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -6882,6 +8268,19 @@ "dest": "cargo/vendor/typed-path-0.12.3", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/typed-path/typed-path-0.13.0.crate", + "sha256": "9ce898823d8cd0f028662d2f349694b1af0a5cc9be83f1d213a00d3147445e1e", + "dest": "cargo/vendor/typed-path-0.13.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"9ce898823d8cd0f028662d2f349694b1af0a5cc9be83f1d213a00d3147445e1e\", \"files\": {}}", + "dest": "cargo/vendor/typed-path-0.13.0", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -6986,6 +8385,19 @@ "dest": "cargo/vendor/unicode-ident-1.0.26", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/unicode-normalization/unicode-normalization-0.1.26.crate", + "sha256": "75cd3fb03d5288b3ba9a1ee103ac7e9cbb59f0b03d64f8ddfcc04dd42758a85d", + "dest": "cargo/vendor/unicode-normalization-0.1.26" + }, + { + "type": "inline", + "contents": "{\"package\": \"75cd3fb03d5288b3ba9a1ee103ac7e9cbb59f0b03d64f8ddfcc04dd42758a85d\", \"files\": {}}", + "dest": "cargo/vendor/unicode-normalization-0.1.26", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -7051,6 +8463,71 @@ "dest": "cargo/vendor/untrusted-0.9.0", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/ureq/ureq-3.4.2.crate", + "sha256": "9a7ac20be9b7726e0bbdbf974c059676d9acb1cd414961f570a4e8231cacd7fc", + "dest": "cargo/vendor/ureq-3.4.2" + }, + { + "type": "inline", + "contents": "{\"package\": \"9a7ac20be9b7726e0bbdbf974c059676d9acb1cd414961f570a4e8231cacd7fc\", \"files\": {}}", + "dest": "cargo/vendor/ureq-3.4.2", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/ureq-proto/ureq-proto-0.6.5.crate", + "sha256": "841583fc36089d7d59419568ae157f43a5a03a2e5a81ba87c77d1596ef46e922", + "dest": "cargo/vendor/ureq-proto-0.6.5" + }, + { + "type": "inline", + "contents": "{\"package\": \"841583fc36089d7d59419568ae157f43a5a03a2e5a81ba87c77d1596ef46e922\", \"files\": {}}", + "dest": "cargo/vendor/ureq-proto-0.6.5", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/utf16_iter/utf16_iter-1.0.5.crate", + "sha256": "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246", + "dest": "cargo/vendor/utf16_iter-1.0.5" + }, + { + "type": "inline", + "contents": "{\"package\": \"c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246\", \"files\": {}}", + "dest": "cargo/vendor/utf16_iter-1.0.5", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/utf8-zero/utf8-zero-0.8.1.crate", + "sha256": "b8c0a043c9540bae7c578c88f91dda8bd82e59ae27c21baca69c8b191aaf5a6e", + "dest": "cargo/vendor/utf8-zero-0.8.1" + }, + { + "type": "inline", + "contents": "{\"package\": \"b8c0a043c9540bae7c578c88f91dda8bd82e59ae27c21baca69c8b191aaf5a6e\", \"files\": {}}", + "dest": "cargo/vendor/utf8-zero-0.8.1", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/utf8_iter/utf8_iter-1.0.4.crate", + "sha256": "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be", + "dest": "cargo/vendor/utf8_iter-1.0.4" + }, + { + "type": "inline", + "contents": "{\"package\": \"b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be\", \"files\": {}}", + "dest": "cargo/vendor/utf8_iter-1.0.4", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -7103,6 +8580,19 @@ "dest": "cargo/vendor/vello_cpu-0.2.0", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/verifysign/verifysign-1.0.1.crate", + "sha256": "6acfcc42a8d44f340d001193d97ef56bf33210b51ad760ae8308c97d5241ca51", + "dest": "cargo/vendor/verifysign-1.0.1" + }, + { + "type": "inline", + "contents": "{\"package\": \"6acfcc42a8d44f340d001193d97ef56bf33210b51ad760ae8308c97d5241ca51\", \"files\": {}}", + "dest": "cargo/vendor/verifysign-1.0.1", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -7405,14 +8895,27 @@ { "type": "archive", "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/webpki-roots/webpki-roots-1.0.9.crate", - "sha256": "7dcd9d09a39985f5344844e66b0c530a33843579125f23e21e9f0f220850f22a", - "dest": "cargo/vendor/webpki-roots-1.0.9" + "url": "https://static.crates.io/crates/webpki-root-certs/webpki-root-certs-1.0.11.crate", + "sha256": "e49d0e65abc00c142e8f9428da991da9f1a250c39be97459901eb12b9b49f62a", + "dest": "cargo/vendor/webpki-root-certs-1.0.11" }, { "type": "inline", - "contents": "{\"package\": \"7dcd9d09a39985f5344844e66b0c530a33843579125f23e21e9f0f220850f22a\", \"files\": {}}", - "dest": "cargo/vendor/webpki-roots-1.0.9", + "contents": "{\"package\": \"e49d0e65abc00c142e8f9428da991da9f1a250c39be97459901eb12b9b49f62a\", \"files\": {}}", + "dest": "cargo/vendor/webpki-root-certs-1.0.11", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/webpki-roots/webpki-roots-1.0.10.crate", + "sha256": "1c1c8e20c8a38fc7d65abfe74eb7280e4aa667e8eec8bc84996d2874810748d9", + "dest": "cargo/vendor/webpki-roots-1.0.10" + }, + { + "type": "inline", + "contents": "{\"package\": \"1c1c8e20c8a38fc7d65abfe74eb7280e4aa667e8eec8bc84996d2874810748d9\", \"files\": {}}", + "dest": "cargo/vendor/webpki-roots-1.0.10", "dest-filename": ".cargo-checksum.json" }, { @@ -7662,6 +9165,19 @@ "dest": "cargo/vendor/windows-numerics-0.3.1", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/windows-registry/windows-registry-0.6.1.crate", + "sha256": "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720", + "dest": "cargo/vendor/windows-registry-0.6.1" + }, + { + "type": "inline", + "contents": "{\"package\": \"02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720\", \"files\": {}}", + "dest": "cargo/vendor/windows-registry-0.6.1", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -7714,19 +9230,6 @@ "dest": "cargo/vendor/windows-sys-0.59.0", "dest-filename": ".cargo-checksum.json" }, - { - "type": "archive", - "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/windows-sys/windows-sys-0.60.2.crate", - "sha256": "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb", - "dest": "cargo/vendor/windows-sys-0.60.2" - }, - { - "type": "inline", - "contents": "{\"package\": \"f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb\", \"files\": {}}", - "dest": "cargo/vendor/windows-sys-0.60.2", - "dest-filename": ".cargo-checksum.json" - }, { "type": "archive", "archive-type": "tar-gzip", @@ -7753,19 +9256,6 @@ "dest": "cargo/vendor/windows-targets-0.52.6", "dest-filename": ".cargo-checksum.json" }, - { - "type": "archive", - "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/windows-targets/windows-targets-0.53.5.crate", - "sha256": "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3", - "dest": "cargo/vendor/windows-targets-0.53.5" - }, - { - "type": "inline", - "contents": "{\"package\": \"4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3\", \"files\": {}}", - "dest": "cargo/vendor/windows-targets-0.53.5", - "dest-filename": ".cargo-checksum.json" - }, { "type": "archive", "archive-type": "tar-gzip", @@ -7792,19 +9282,6 @@ "dest": "cargo/vendor/windows_aarch64_gnullvm-0.52.6", "dest-filename": ".cargo-checksum.json" }, - { - "type": "archive", - "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/windows_aarch64_gnullvm/windows_aarch64_gnullvm-0.53.1.crate", - "sha256": "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53", - "dest": "cargo/vendor/windows_aarch64_gnullvm-0.53.1" - }, - { - "type": "inline", - "contents": "{\"package\": \"a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53\", \"files\": {}}", - "dest": "cargo/vendor/windows_aarch64_gnullvm-0.53.1", - "dest-filename": ".cargo-checksum.json" - }, { "type": "archive", "archive-type": "tar-gzip", @@ -7818,19 +9295,6 @@ "dest": "cargo/vendor/windows_aarch64_msvc-0.52.6", "dest-filename": ".cargo-checksum.json" }, - { - "type": "archive", - "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/windows_aarch64_msvc/windows_aarch64_msvc-0.53.1.crate", - "sha256": "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006", - "dest": "cargo/vendor/windows_aarch64_msvc-0.53.1" - }, - { - "type": "inline", - "contents": "{\"package\": \"b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006\", \"files\": {}}", - "dest": "cargo/vendor/windows_aarch64_msvc-0.53.1", - "dest-filename": ".cargo-checksum.json" - }, { "type": "archive", "archive-type": "tar-gzip", @@ -7844,19 +9308,6 @@ "dest": "cargo/vendor/windows_i686_gnu-0.52.6", "dest-filename": ".cargo-checksum.json" }, - { - "type": "archive", - "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/windows_i686_gnu/windows_i686_gnu-0.53.1.crate", - "sha256": "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3", - "dest": "cargo/vendor/windows_i686_gnu-0.53.1" - }, - { - "type": "inline", - "contents": "{\"package\": \"960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3\", \"files\": {}}", - "dest": "cargo/vendor/windows_i686_gnu-0.53.1", - "dest-filename": ".cargo-checksum.json" - }, { "type": "archive", "archive-type": "tar-gzip", @@ -7870,19 +9321,6 @@ "dest": "cargo/vendor/windows_i686_gnullvm-0.52.6", "dest-filename": ".cargo-checksum.json" }, - { - "type": "archive", - "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/windows_i686_gnullvm/windows_i686_gnullvm-0.53.1.crate", - "sha256": "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c", - "dest": "cargo/vendor/windows_i686_gnullvm-0.53.1" - }, - { - "type": "inline", - "contents": "{\"package\": \"fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c\", \"files\": {}}", - "dest": "cargo/vendor/windows_i686_gnullvm-0.53.1", - "dest-filename": ".cargo-checksum.json" - }, { "type": "archive", "archive-type": "tar-gzip", @@ -7896,19 +9334,6 @@ "dest": "cargo/vendor/windows_i686_msvc-0.52.6", "dest-filename": ".cargo-checksum.json" }, - { - "type": "archive", - "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/windows_i686_msvc/windows_i686_msvc-0.53.1.crate", - "sha256": "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2", - "dest": "cargo/vendor/windows_i686_msvc-0.53.1" - }, - { - "type": "inline", - "contents": "{\"package\": \"1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2\", \"files\": {}}", - "dest": "cargo/vendor/windows_i686_msvc-0.53.1", - "dest-filename": ".cargo-checksum.json" - }, { "type": "archive", "archive-type": "tar-gzip", @@ -7922,19 +9347,6 @@ "dest": "cargo/vendor/windows_x86_64_gnu-0.52.6", "dest-filename": ".cargo-checksum.json" }, - { - "type": "archive", - "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/windows_x86_64_gnu/windows_x86_64_gnu-0.53.1.crate", - "sha256": "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499", - "dest": "cargo/vendor/windows_x86_64_gnu-0.53.1" - }, - { - "type": "inline", - "contents": "{\"package\": \"9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499\", \"files\": {}}", - "dest": "cargo/vendor/windows_x86_64_gnu-0.53.1", - "dest-filename": ".cargo-checksum.json" - }, { "type": "archive", "archive-type": "tar-gzip", @@ -7948,19 +9360,6 @@ "dest": "cargo/vendor/windows_x86_64_gnullvm-0.52.6", "dest-filename": ".cargo-checksum.json" }, - { - "type": "archive", - "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/windows_x86_64_gnullvm/windows_x86_64_gnullvm-0.53.1.crate", - "sha256": "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1", - "dest": "cargo/vendor/windows_x86_64_gnullvm-0.53.1" - }, - { - "type": "inline", - "contents": "{\"package\": \"0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1\", \"files\": {}}", - "dest": "cargo/vendor/windows_x86_64_gnullvm-0.53.1", - "dest-filename": ".cargo-checksum.json" - }, { "type": "archive", "archive-type": "tar-gzip", @@ -7974,19 +9373,6 @@ "dest": "cargo/vendor/windows_x86_64_msvc-0.52.6", "dest-filename": ".cargo-checksum.json" }, - { - "type": "archive", - "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/windows_x86_64_msvc/windows_x86_64_msvc-0.53.1.crate", - "sha256": "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650", - "dest": "cargo/vendor/windows_x86_64_msvc-0.53.1" - }, - { - "type": "inline", - "contents": "{\"package\": \"d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650\", \"files\": {}}", - "dest": "cargo/vendor/windows_x86_64_msvc-0.53.1", - "dest-filename": ".cargo-checksum.json" - }, { "type": "shell", "commands": [ @@ -8021,14 +9407,40 @@ { "type": "archive", "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/winresource/winresource-0.1.31.crate", - "sha256": "0986a8b1d586b7d3e4fe3d9ea39fb451ae22869dcea4aa109d287a374d866087", - "dest": "cargo/vendor/winresource-0.1.31" + "url": "https://static.crates.io/crates/winreg/winreg-0.55.0.crate", + "sha256": "cb5a765337c50e9ec252c2069be9bf91c7df47afb103b642ba3a53bf8101be97", + "dest": "cargo/vendor/winreg-0.55.0" }, { "type": "inline", - "contents": "{\"package\": \"0986a8b1d586b7d3e4fe3d9ea39fb451ae22869dcea4aa109d287a374d866087\", \"files\": {}}", - "dest": "cargo/vendor/winresource-0.1.31", + "contents": "{\"package\": \"cb5a765337c50e9ec252c2069be9bf91c7df47afb103b642ba3a53bf8101be97\", \"files\": {}}", + "dest": "cargo/vendor/winreg-0.55.0", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/winresource/winresource-0.1.34.crate", + "sha256": "a2bc6d36480b829272a5bdabf08e6dca8004761c1da7e35efef800540c66221b", + "dest": "cargo/vendor/winresource-0.1.34" + }, + { + "type": "inline", + "contents": "{\"package\": \"a2bc6d36480b829272a5bdabf08e6dca8004761c1da7e35efef800540c66221b\", \"files\": {}}", + "dest": "cargo/vendor/winresource-0.1.34", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/winsafe/winsafe-0.0.29.crate", + "sha256": "9ef0ffc427f045c0cc9ebffd6f4f91153dcd2a1547b5c3c29ee3f541e16e95c6", + "dest": "cargo/vendor/winsafe-0.0.29" + }, + { + "type": "inline", + "contents": "{\"package\": \"9ef0ffc427f045c0cc9ebffd6f4f91153dcd2a1547b5c3c29ee3f541e16e95c6\", \"files\": {}}", + "dest": "cargo/vendor/winsafe-0.0.29", "dest-filename": ".cargo-checksum.json" }, { @@ -8057,6 +9469,32 @@ "dest": "cargo/vendor/wl-clipboard-rs-0.9.4", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/write16/write16-1.0.0.crate", + "sha256": "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936", + "dest": "cargo/vendor/write16-1.0.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936\", \"files\": {}}", + "dest": "cargo/vendor/write16-1.0.0", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/writeable/writeable-0.6.4.crate", + "sha256": "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc", + "dest": "cargo/vendor/writeable-0.6.4" + }, + { + "type": "inline", + "contents": "{\"package\": \"3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc\", \"files\": {}}", + "dest": "cargo/vendor/writeable-0.6.4", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -8398,14 +9836,66 @@ { "type": "archive", "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/zip/zip-7.2.0.crate", - "sha256": "c42e33efc22a0650c311c2ef19115ce232583abbe80850bc8b66509ebef02de0", - "dest": "cargo/vendor/zip-7.2.0" + "url": "https://static.crates.io/crates/zerotrie/zerotrie-0.2.5.crate", + "sha256": "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f", + "dest": "cargo/vendor/zerotrie-0.2.5" }, { "type": "inline", - "contents": "{\"package\": \"c42e33efc22a0650c311c2ef19115ce232583abbe80850bc8b66509ebef02de0\", \"files\": {}}", - "dest": "cargo/vendor/zip-7.2.0", + "contents": "{\"package\": \"4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f\", \"files\": {}}", + "dest": "cargo/vendor/zerotrie-0.2.5", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/zerovec/zerovec-0.11.8.crate", + "sha256": "bb0464e17806c1d976d5cba29399c7f08e516e279e2ba493f63123b5fca67dd8", + "dest": "cargo/vendor/zerovec-0.11.8" + }, + { + "type": "inline", + "contents": "{\"package\": \"bb0464e17806c1d976d5cba29399c7f08e516e279e2ba493f63123b5fca67dd8\", \"files\": {}}", + "dest": "cargo/vendor/zerovec-0.11.8", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/zerovec-derive/zerovec-derive-0.11.7.crate", + "sha256": "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a", + "dest": "cargo/vendor/zerovec-derive-0.11.7" + }, + { + "type": "inline", + "contents": "{\"package\": \"c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a\", \"files\": {}}", + "dest": "cargo/vendor/zerovec-derive-0.11.7", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/zip/zip-7.4.0.crate", + "sha256": "cc12baa6db2b15a140161ce53d72209dacea594230798c24774139b54ecaa980", + "dest": "cargo/vendor/zip-7.4.0" + }, + { + "type": "inline", + "contents": "{\"package\": \"cc12baa6db2b15a140161ce53d72209dacea594230798c24774139b54ecaa980\", \"files\": {}}", + "dest": "cargo/vendor/zip-7.4.0", + "dest-filename": ".cargo-checksum.json" + }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/zip/zip-9.1.3.crate", + "sha256": "1156b39d142a34b999c2310a50455e0cb3760bf7efad0122f796d813bee26ccb", + "dest": "cargo/vendor/zip-9.1.3" + }, + { + "type": "inline", + "contents": "{\"package\": \"1156b39d142a34b999c2310a50455e0cb3760bf7efad0122f796d813bee26ccb\", \"files\": {}}", + "dest": "cargo/vendor/zip-9.1.3", "dest-filename": ".cargo-checksum.json" }, { @@ -8447,6 +9937,19 @@ "dest": "cargo/vendor/zune-core-0.5.3", "dest-filename": ".cargo-checksum.json" }, + { + "type": "archive", + "archive-type": "tar-gzip", + "url": "https://static.crates.io/crates/zune-inflate/zune-inflate-0.2.54.crate", + "sha256": "73ab332fe2f6680068f3582b16a24f90ad7096d5d39b974d1c0aff0125116f02", + "dest": "cargo/vendor/zune-inflate-0.2.54" + }, + { + "type": "inline", + "contents": "{\"package\": \"73ab332fe2f6680068f3582b16a24f90ad7096d5d39b974d1c0aff0125116f02\", \"files\": {}}", + "dest": "cargo/vendor/zune-inflate-0.2.54", + "dest-filename": ".cargo-checksum.json" + }, { "type": "archive", "archive-type": "tar-gzip", @@ -8530,24 +10033,6 @@ "dest": "cargo/vendor/egui_demo_lib", "dest-filename": ".cargo-checksum.json" }, - { - "type": "shell", - "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/egui_extras\" \"cargo/vendor/egui_extras\"" - ] - }, - { - "type": "inline", - "contents": "[package]\nname = \"egui_extras\"\nversion = \"0.37.0\"\nauthors = [\"Dominik R\u00f6ssler \", \"Emil Ernerfeldt \", \"Ren\u00e9 R\u00f6ssler \"]\ndescription = \"Extra functionality and widgets for the egui GUI library\"\nedition = \"2024\"\nrust-version = \"1.95\"\nhomepage = \"https://github.com/emilk/egui\"\nlicense = \"MIT OR Apache-2.0\"\nreadme = \"README.md\"\nrepository = \"https://github.com/emilk/egui\"\ncategories = [\"gui\", \"game-development\"]\nkeywords = [\"gui\", \"imgui\", \"immediate\", \"portable\", \"gamedev\"]\ninclude = [\"../../LICENSE-APACHE\", \"../../LICENSE-MIT\", \"**/*.rs\", \"Cargo.toml\"]\n\n[package.metadata.docs.rs]\nall-features = true\nrustdoc-args = [\"--generate-link-to-definition\"]\n\n[lints.rust]\nunsafe_code = \"deny\"\ntrivial_numeric_casts = \"warn\"\nunused_import_braces = \"warn\"\nunused_lifetimes = \"warn\"\ntrivial_casts = \"allow\"\nunused_qualifications = \"allow\"\n\n[lints.rust.future_incompatible]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.nonstandard_style]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.rust_2018_idioms]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(web_sys_unstable_apis)\"]\n\n[lints.rustdoc]\nall = \"warn\"\n\n[lints.clippy]\nallow_attributes = \"warn\"\nas_ptr_cast_mut = \"warn\"\nbranches_sharing_code = \"warn\"\nclear_with_drain = \"warn\"\nclone_on_ref_ptr = \"warn\"\ncoerce_container_to_any = \"warn\"\ndbg_macro = \"warn\"\ndebug_assert_with_mut_call = \"warn\"\ndefault_union_representation = \"warn\"\nderive_partial_eq_without_eq = \"warn\"\ndisallowed_script_idents = \"warn\"\ndoc_include_without_cfg = \"warn\"\nempty_enum_variants_with_brackets = \"warn\"\nequatable_if_let = \"warn\"\nexit = \"warn\"\nfallible_impl_from = \"warn\"\nfloat_cmp_const = \"warn\"\nfn_to_numeric_cast_any = \"warn\"\nget_unwrap = \"warn\"\nimprecise_flops = \"warn\"\ninfinite_loop = \"warn\"\niter_on_empty_collections = \"warn\"\niter_on_single_items = \"warn\"\niter_over_hash_type = \"warn\"\nlarge_include_file = \"warn\"\nlarge_stack_frames = \"warn\"\nliteral_string_with_formatting_args = \"warn\"\nlossy_float_literal = \"warn\"\nmap_err_ignore = \"warn\"\nmem_forget = \"warn\"\nmissing_assert_message = \"warn\"\nmutex_integer = \"warn\"\nneedless_pass_by_ref_mut = \"warn\"\nneedless_type_cast = \"warn\"\nnon_zero_suggestions = \"warn\"\nnonstandard_macro_braces = \"warn\"\nor_fun_call = \"warn\"\npath_buf_push_overwrite = \"warn\"\npathbuf_init_then_push = \"warn\"\nprecedence_bits = \"warn\"\nprint_stderr = \"warn\"\nprint_stdout = \"warn\"\npub_without_shorthand = \"warn\"\nrc_mutex = \"warn\"\nredundant_type_annotations = \"warn\"\nref_patterns = \"warn\"\nrest_pat_in_fully_bound_structs = \"warn\"\nreturn_and_then = \"warn\"\nset_contains_or_insert = \"warn\"\nsingle_option_map = \"warn\"\nstd_instead_of_core = \"warn\"\nstr_to_string = \"warn\"\nstring_add = \"warn\"\nstring_lit_as_bytes = \"warn\"\nstring_lit_chars_any = \"warn\"\nsuspicious_xor_used_as_pow = \"warn\"\ntodo = \"warn\"\ntoo_long_first_doc_paragraph = \"warn\"\ntrailing_empty_array = \"warn\"\ntrait_duplication_in_bounds = \"warn\"\ntuple_array_conversions = \"warn\"\nundocumented_unsafe_blocks = \"warn\"\nunimplemented = \"warn\"\nuninhabited_references = \"warn\"\nunnecessary_safety_comment = \"warn\"\nunnecessary_safety_doc = \"warn\"\nunnecessary_self_imports = \"warn\"\nunnecessary_struct_initialization = \"warn\"\nunused_peekable = \"warn\"\nunused_rounding = \"warn\"\nunused_trait_names = \"warn\"\nunwrap_used = \"warn\"\nuse_self = \"warn\"\nuseless_let_if_seq = \"warn\"\nverbose_file_reads = \"warn\"\ncast_lossless = \"allow\"\ncast_possible_truncation = \"allow\"\ncast_possible_wrap = \"allow\"\ncast_precision_loss = \"allow\"\ncast_sign_loss = \"allow\"\ncomparison_chain = \"allow\"\ndefault_trait_access = \"allow\"\nfloat_cmp = \"allow\"\ninline_always = \"allow\"\nitems_after_statements = \"allow\"\nmany_single_char_names = \"allow\"\nmissing_panics_doc = \"allow\"\nmust_use_candidate = \"allow\"\nredundant_closure_for_method_calls = \"allow\"\nreturn_self_not_must_use = \"allow\"\nshould_panic_without_expect = \"allow\"\nsimilar_names = \"allow\"\nstruct_excessive_bools = \"allow\"\nstruct_field_names = \"allow\"\ntoo_many_lines = \"allow\"\ntrivially_copy_pass_by_ref = \"allow\"\nunreadable_literal = \"allow\"\nused_underscore_binding = \"allow\"\nassigning_clones = \"allow\"\nmanual_range_contains = \"allow\"\nmap_unwrap_or = \"allow\"\nmultiple_crate_versions = \"allow\"\nwildcard_imports = \"allow\"\nlet_underscore_must_use = \"allow\"\nlet_underscore_untyped = \"allow\"\nself_named_module_files = \"allow\"\nsignificant_drop_tightening = \"allow\"\n\n[lints.clippy.all]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.cargo]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.pedantic]\nlevel = \"warn\"\npriority = -1\n\n[lib]\n\n[features]\ndefault = [\"dep:mime_guess2\"]\nall_loaders = [\"file\", \"http\", \"image\", \"svg\", \"gif\", \"webp\"]\ndatepicker = [\"jiff\"]\nfile = [\"dep:mime_guess2\"]\ngif = [\"image\", \"image/gif\"]\nwebp = [\"image\", \"image/webp\"]\nhttp = [\"dep:ehttp\"]\nimage = [\"dep:image\"]\nserde = [\"egui/serde\", \"enum-map/serde\", \"dep:serde\"]\nsvg = [\"resvg\"]\nsvg_text = [\"svg\", \"resvg/text\", \"resvg/system-fonts\"]\nsvg_images = [\"svg\", \"resvg/raster-images\"]\nsyntect = [\"dep:syntect\"]\n\n[dependencies]\nenum-map = \"3.1\"\nitertools = \"0.15.0\"\n\n[dependencies.egui]\ndefault-features = false\nversion = \"0.37.0\"\npath = \"crates/egui\"\n\n[dependencies.ahash]\nversion = \"0.8.12\"\ndefault-features = false\nfeatures = [\"no-rng\", \"std\"]\n\n[dependencies.log]\nversion = \"0.4.34\"\nfeatures = [\"std\"]\n\n[dependencies.profiling]\nversion = \"1.0\"\ndefault-features = false\n\n[dependencies.serde]\noptional = true\nversion = \"1.0\"\nfeatures = [\"derive\"]\n\n[dependencies.jiff]\noptional = true\nfeatures = [\"std\", \"tz-system\", \"js\"]\nversion = \"0.2.35\"\ndefault-features = false\n\n[dependencies.document-features]\noptional = true\nversion = \"0.2.12\"\n\n[dependencies.image]\noptional = true\nversion = \"0.25.10\"\ndefault-features = false\n\n[dependencies.mime_guess2]\noptional = true\nversion = \"2.3\"\ndefault-features = false\n\n[dependencies.syntect]\noptional = true\nfeatures = [\"default-fancy\"]\nversion = \"5.3\"\ndefault-features = false\n\n[dependencies.resvg]\noptional = true\nversion = \"0.45.1\"\ndefault-features = false\n\n[dependencies.ehttp]\noptional = true\nversion = \"0.7.1\"\ndefault-features = false\n\n[dev-dependencies]\ntempfile = \"3.27\"\n\n[dev-dependencies.egui]\nfeatures = [\"default_fonts\"]\nversion = \"0.37.0\"\npath = \"crates/egui\"\ndefault-features = false\n\n[dev-dependencies.egui_kittest]\npath = \"../egui_kittest\"\nfeatures = [\"snapshot\", \"wgpu\"]\n", - "dest": "cargo/vendor/egui_extras", - "dest-filename": "Cargo.toml" - }, - { - "type": "inline", - "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/egui_extras", - "dest-filename": ".cargo-checksum.json" - }, { "type": "shell", "commands": [ @@ -8586,7 +10071,7 @@ }, { "type": "inline", - "contents": "[source.vendored-sources]\ndirectory = \"cargo/vendor\"\n\n[source.crates-io]\nreplace-with = \"vendored-sources\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=82a24b006eefa036b43c09a67fb9a3fbd17ffe63\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"vendored-sources\"\nrev = \"82a24b006eefa036b43c09a67fb9a3fbd17ffe63\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=25da1314d443171b4adeaad2cd9454b273f35c6f\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"vendored-sources\"\nrev = \"25da1314d443171b4adeaad2cd9454b273f35c6f\"\n\n[source.\"https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a\"]\ngit = \"https://github.com/storytold/egui\"\nreplace-with = \"vendored-sources\"\nrev = \"6d518fc799681571963842f95b55a6b68431b15a\"\n\n[source.\"https://github.com/storytold/winit.git?rev=a517b3846ee8457d84ee4975110bfda6797c44dc\"]\ngit = \"https://github.com/storytold/winit\"\nreplace-with = \"vendored-sources\"\nrev = \"a517b3846ee8457d84ee4975110bfda6797c44dc\"\n", + "contents": "[source.vendored-sources]\ndirectory = \"cargo/vendor\"\n\n[source.crates-io]\nreplace-with = \"vendored-sources\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=94777dcf7f8962476e96b049d08d22e25b9330c2\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"vendored-sources\"\nrev = \"94777dcf7f8962476e96b049d08d22e25b9330c2\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"vendored-sources\"\nrev = \"f0f4758c01581d79577b9bf5046c06f4e77b1f18\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=c5a1cbfb5f9049f9270955caffb5bee5997aebf7\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"vendored-sources\"\nrev = \"c5a1cbfb5f9049f9270955caffb5bee5997aebf7\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=9dcbd90c7d16e1a668b3afa057e940e2db328b93\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"vendored-sources\"\nrev = \"9dcbd90c7d16e1a668b3afa057e940e2db328b93\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=b77af389f30bb10de10d8436ca9b39fe94e3bb67\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"vendored-sources\"\nrev = \"b77af389f30bb10de10d8436ca9b39fe94e3bb67\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=478c50560d3c6fad3d613af2a30b35c3bc9f4c0f\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"vendored-sources\"\nrev = \"478c50560d3c6fad3d613af2a30b35c3bc9f4c0f\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=2651dbeb2b13f621db23f65347380e7f26e316f0\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"vendored-sources\"\nrev = \"2651dbeb2b13f621db23f65347380e7f26e316f0\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=6e03f65bf45181db77ba6229716e6624db9eb25b\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"vendored-sources\"\nrev = \"6e03f65bf45181db77ba6229716e6624db9eb25b\"\n\n[source.\"https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a\"]\ngit = \"https://github.com/storytold/egui\"\nreplace-with = \"vendored-sources\"\nrev = \"6d518fc799681571963842f95b55a6b68431b15a\"\n\n[source.\"https://github.com/storytold/winit.git?rev=a517b3846ee8457d84ee4975110bfda6797c44dc\"]\ngit = \"https://github.com/storytold/winit\"\nreplace-with = \"vendored-sources\"\nrev = \"a517b3846ee8457d84ee4975110bfda6797c44dc\"\n", "dest": "cargo", "dest-filename": "config" } From 5a68b04bcca0faf584badc17bc337c1b18ad9095 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 15 Nov 2026 18:46:17 -0500 Subject: [PATCH 17/18] fix(flatpak): isolate vendored Git source revisions --- packaging/linux/flatpak/cargo-sources.json | 236 +++++++++--------- .../linux/flatpak/generate-cargo-sources.py | 51 +++- .../flatpak/test_generate_cargo_sources.py | 44 ++++ 3 files changed, 209 insertions(+), 122 deletions(-) diff --git a/packaging/linux/flatpak/cargo-sources.json b/packaging/linux/flatpak/cargo-sources.json index 47d8e3021f..e36140f1e1 100644 --- a/packaging/linux/flatpak/cargo-sources.json +++ b/packaging/linux/flatpak/cargo-sources.json @@ -1570,433 +1570,433 @@ { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-94777dc/crates/cms\" \"cargo/vendor/craft-cms\"" + "mkdir -p \"cargo/vendor-git/6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-94777dc/crates/cms\" \"cargo/vendor-git/6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1/craft-cms\"" ] }, { "type": "inline", "contents": "[package]\nname = \"craft-cms\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\ndescription = \"Pure-Rust ICC v2/v4 colour management: profile parsing and writing, transforms, rendering intents, black point compensation\"\nexclude = [\"tests/data\", \"tests/fogra39.rs\"]\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[dependencies.md5]\npackage = \"md-5\"\nversion = \"0.10\"\ndefault-features = false\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies]\nrayon = \"1\"\n\n[dev-dependencies]\nmoxcms = \"0.8\"\n", - "dest": "cargo/vendor/craft-cms", + "dest": "cargo/vendor-git/6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1/craft-cms", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/craft-cms", + "dest": "cargo/vendor-git/6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1/craft-cms", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-f0f4758/crates/codepage\" \"cargo/vendor/craft-codepage\"" + "mkdir -p \"cargo/vendor-git/bc00bd22a20692df38f25839a8568cd55b90e379a41719721bbc0f04fe5e29f7\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-f0f4758/crates/codepage\" \"cargo/vendor-git/bc00bd22a20692df38f25839a8568cd55b90e379a41719721bbc0f04fe5e29f7/craft-codepage\"" ] }, { "type": "inline", "contents": "[package]\nname = \"craft-codepage\"\ndescription = \"Legacy 8-bit code pages, one table each: the single-byte Windows pages, Mac OS Roman and the DOS (OEM) pages, keyed by Windows code page number, with the RTF/Word font charsets.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[dev-dependencies]\nencoding_rs = \"0.8\"\n", - "dest": "cargo/vendor/craft-codepage", + "dest": "cargo/vendor-git/bc00bd22a20692df38f25839a8568cd55b90e379a41719721bbc0f04fe5e29f7/craft-codepage", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/craft-codepage", + "dest": "cargo/vendor-git/bc00bd22a20692df38f25839a8568cd55b90e379a41719721bbc0f04fe5e29f7/craft-codepage", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-94777dc/crates/crw\" \"cargo/vendor/craft-crw\"" + "mkdir -p \"cargo/vendor-git/6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-94777dc/crates/crw\" \"cargo/vendor-git/6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1/craft-crw\"" ] }, { "type": "inline", "contents": "[package]\nname = \"craft-crw\"\ndescription = \"Clean-room Canon CRW (CIFF) raw decoder: the heap container, the derived entropy coding, sensor levels and as-shot white balance.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[dependencies]\nthiserror = \"2\"\n\n[dev-dependencies]\nproptest = \"1\"\nserde_json = \"1\"\n\n[dev-dependencies.serde]\nversion = \"1\"\nfeatures = [\"derive\"]\n\n[dev-dependencies.sha2]\nversion = \"0.10\"\ndefault-features = false\nfeatures = [\"std\"]\n", - "dest": "cargo/vendor/craft-crw", + "dest": "cargo/vendor-git/6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1/craft-crw", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/craft-crw", + "dest": "cargo/vendor-git/6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1/craft-crw", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-c5a1cbf/crates/docpath\" \"cargo/vendor/craft-docpath\"" + "mkdir -p \"cargo/vendor-git/11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-c5a1cbf/crates/docpath\" \"cargo/vendor-git/11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298/craft-docpath\"" ] }, { "type": "inline", "contents": "[package]\nname = \"craft-docpath\"\ndescription = \"Decide whether a file path or file URL stored in a document refers to a local file.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n", - "dest": "cargo/vendor/craft-docpath", + "dest": "cargo/vendor-git/11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298/craft-docpath", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/craft-docpath", + "dest": "cargo/vendor-git/11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298/craft-docpath", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-c5a1cbf/crates/fonts-build\" \"cargo/vendor/craft-fonts-build\"" + "mkdir -p \"cargo/vendor-git/11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-c5a1cbf/crates/fonts-build\" \"cargo/vendor-git/11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298/craft-fonts-build\"" ] }, { "type": "inline", "contents": "[package]\nname = \"craft-fonts-build\"\ndescription = \"Embeds the optional craft-fonts faces from an app's build.rs, plus the EmbeddedFace type the generated table uses.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[features]\nsubset = [\"dep:skera\", \"dep:skrifa\"]\n\n[dependencies.skera]\nversion = \"0.8\"\noptional = true\n\n[dependencies.skrifa]\nversion = \"0.48\"\ndefault-features = false\nfeatures = [\"std\"]\noptional = true\n\n[dev-dependencies.craft-fonts-build-consumer]\npath = \"tests/consumer\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n", - "dest": "cargo/vendor/craft-fonts-build", + "dest": "cargo/vendor-git/11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298/craft-fonts-build", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/craft-fonts-build", + "dest": "cargo/vendor-git/11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298/craft-fonts-build", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-9dcbd90/crates/gainmap\" \"cargo/vendor/craft-gainmap\"" + "mkdir -p \"cargo/vendor-git/36bf00be069421f8a8a7428c4360efee8b4243207a59d7b566c6f48fc5918f61\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-9dcbd90/crates/gainmap\" \"cargo/vendor-git/36bf00be069421f8a8a7428c4360efee8b4243207a59d7b566c6f48fc5918f61/craft-gainmap\"" ] }, { "type": "inline", "contents": "[package]\nname = \"craft-gainmap\"\ndescription = \"HDR gain maps (ISO 21496-1, Adobe hdrgm, Apple): metadata reader and writer, and the arithmetic that measures and applies a gain map.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[dependencies]\nthiserror = \"2\"\n", - "dest": "cargo/vendor/craft-gainmap", + "dest": "cargo/vendor-git/36bf00be069421f8a8a7428c4360efee8b4243207a59d7b566c6f48fc5918f61/craft-gainmap", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/craft-gainmap", + "dest": "cargo/vendor-git/36bf00be069421f8a8a7428c4360efee8b4243207a59d7b566c6f48fc5918f61/craft-gainmap", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-b77af38/crates/gif\" \"cargo/vendor/craft-gif\"" + "mkdir -p \"cargo/vendor-git/a51e2c3f46af71f1caed91009f88b4f9982db0c4152c6659d11967a7731b1ccc\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-b77af38/crates/gif\" \"cargo/vendor-git/a51e2c3f46af71f1caed91009f88b4f9982db0c4152c6659d11967a7731b1ccc/craft-gif\"" ] }, { "type": "inline", "contents": "[package]\nname = \"craft-gif\"\ndescription = \"GIF block reader, bounded frame decoder and animation writer.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[features]\nframes = [\"dep:image\"]\n\n[dependencies]\ngif = \"0.14\"\n\n[dependencies.image]\nversion = \"0.25\"\ndefault-features = false\nfeatures = [\"gif\"]\noptional = true\n\n[dev-dependencies.image]\nversion = \"0.25\"\ndefault-features = false\nfeatures = [\"gif\"]\n", - "dest": "cargo/vendor/craft-gif", + "dest": "cargo/vendor-git/a51e2c3f46af71f1caed91009f88b4f9982db0c4152c6659d11967a7731b1ccc/craft-gif", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/craft-gif", + "dest": "cargo/vendor-git/a51e2c3f46af71f1caed91009f88b4f9982db0c4152c6659d11967a7731b1ccc/craft-gif", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-9dcbd90/crates/heif\" \"cargo/vendor/craft-heif\"" + "mkdir -p \"cargo/vendor-git/36bf00be069421f8a8a7428c4360efee8b4243207a59d7b566c6f48fc5918f61\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-9dcbd90/crates/heif\" \"cargo/vendor-git/36bf00be069421f8a8a7428c4360efee8b4243207a59d7b566c6f48fc5918f61/craft-heif\"" ] }, { "type": "inline", "contents": "[package]\nname = \"craft-heif\"\ndescription = \"Optional HEIF/HEIC still-image decoder: heic-rs for the container and HEVC, libheif-matching colour conversion, panic-guarded.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[dependencies.heic-rs]\nversion = \"=0.1.4\"\ndefault-features = false\nfeatures = [\"std\"]\noptional = true\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies.heic-rs]\nversion = \"=0.1.4\"\ndefault-features = false\nfeatures = [\"std\", \"parallel\"]\noptional = true\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies.rayon]\noptional = true\nversion = \"1\"\n\n[features]\ndefault = [\"decode\"]\ndecode = [\"dep:heic-rs\", \"dep:rayon\"]\nmetadata = []\ntestdata = []\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n", - "dest": "cargo/vendor/craft-heif", + "dest": "cargo/vendor-git/36bf00be069421f8a8a7428c4360efee8b4243207a59d7b566c6f48fc5918f61/craft-heif", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/craft-heif", + "dest": "cargo/vendor-git/36bf00be069421f8a8a7428c4360efee8b4243207a59d7b566c6f48fc5918f61/craft-heif", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-c5a1cbf/crates/i18n\" \"cargo/vendor/craft-i18n\"" + "mkdir -p \"cargo/vendor-git/11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-c5a1cbf/crates/i18n\" \"cargo/vendor-git/11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298/craft-i18n\"" ] }, { "type": "inline", "contents": "[package]\nname = \"craft-i18n\"\ndescription = \"Translations for the Craft apps: the embedded craft-i18n catalogs, lookup with fallback, plurals, numbers for a region, language names, the system locale, search folding and locale sorting.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[dependencies]\nwriteable = \"0.6\"\nlog = \"0.4\"\nsys-locale = \"0.3\"\nicu_normalizer = \"~2.3\"\nicu_properties = \"~2.3\"\nunicode-bidi = \"0.3\"\n\n[dependencies.fixed_decimal]\nversion = \"0.7.2\"\ndefault-features = false\n\n[dependencies.icu_decimal]\nversion = \"~2.3\"\ndefault-features = false\nfeatures = [\"serde\"]\n\n[dependencies.icu_locale_core]\nversion = \"~2.3\"\ndefault-features = false\n\n[dependencies.icu_locale_fallback]\nversion = \"~2.3\"\ndefault-features = false\nfeatures = [\"compiled_data\"]\n\n[dependencies.icu_plurals]\nversion = \"~2.3\"\ndefault-features = false\nfeatures = [\"serde\"]\n\n[dependencies.icu_provider]\nversion = \"~2.3\"\ndefault-features = false\nfeatures = [\"sync\"]\n\n[dependencies.icu_provider_adapters]\nversion = \"~2.3\"\ndefault-features = false\n\n[dependencies.icu_provider_blob]\nversion = \"~2.3\"\ndefault-features = false\n\n[dependencies.icu_collator]\nversion = \"~2.3.1\"\ndefault-features = false\nfeatures = [\"serde\"]\noptional = true\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dependencies.sys-locale]\nversion = \"0.3\"\nfeatures = [\"js\"]\n\n[target.\"cfg(windows)\".dependencies]\nwindows-registry = \"0.6\"\n\n[target.\"cfg(target_vendor = \\\"apple\\\")\".dependencies.objc2-foundation]\nversion = \"0.3.2\"\ndefault-features = false\nfeatures = [\"std\", \"NSDateFormatter\", \"NSFormatter\", \"NSLocale\", \"NSString\"]\n\n[features]\ncollate = [\"dep:icu_collator\", \"icu_provider/serde\", \"icu_provider_blob/alloc\"]\n\n[lints.rust]\nunsafe_code = \"forbid\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n", - "dest": "cargo/vendor/craft-i18n", + "dest": "cargo/vendor-git/11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298/craft-i18n", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/craft-i18n", + "dest": "cargo/vendor-git/11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298/craft-i18n", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-478c505/crates/image-codecs\" \"cargo/vendor/craft-image-codecs\"" + "mkdir -p \"cargo/vendor-git/cb31475a7a9d19c00f48b4c43603f2f1a464c6dce15da1d21bba4c653eeba6b2\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-478c505/crates/image-codecs\" \"cargo/vendor-git/cb31475a7a9d19c00f48b4c43603f2f1a464c6dce15da1d21bba4c653eeba6b2/craft-image-codecs\"" ] }, { "type": "inline", "contents": "[package]\nname = \"craft-image-codecs\"\ndescription = \"Bounded, depth- and metadata-preserving codecs for flat raster image formats\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[features]\ncorpus = []\ndefault = []\navif = [\"image/avif\", \"dep:ravif\", \"dep:rav1e\", \"dep:avif-serialize\"]\nheif = [\"dep:craft-heif\"]\n\n[dependencies]\ncrc32fast = \"1.5\"\nthiserror = \"2\"\npng = \"0.18\"\nhalf = \"2\"\nserde_json = \"1\"\nimage-webp = \"0.2\"\nzune-jpeg = \"0.5\"\nzune-core = \"0.5\"\njpeg-encoder = \"0.6\"\n\n[dependencies.image]\nversion = \"0.25\"\ndefault-features = false\nfeatures = [\"png\", \"jpeg\", \"tiff\", \"gif\", \"bmp\", \"tga\", \"ico\", \"qoi\", \"hdr\"]\n\n[dependencies.tiff]\nversion = \"0.11\"\ndefault-features = false\nfeatures = [\"deflate\", \"fax\", \"jpeg\", \"lzw\"]\n\n[dependencies.exr]\nversion = \"1.73\"\ndefault-features = false\n\n[dependencies.flate2]\nversion = \"1.1.10\"\ndefault-features = false\nfeatures = [\"zlib-rs\", \"runtime_detection\"]\n\n[dependencies.craft-jpeg]\npath = \"crates/jpeg\"\n\n[dependencies.craft-metadata]\npath = \"crates/metadata\"\n\n[dependencies.zune-jpegxl]\nversion = \"=0.5.2\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dependencies.craft-heif]\noptional = true\npath = \"crates/heif\"\n\n[dependencies.ravif]\nversion = \"0.13\"\ndefault-features = false\noptional = true\n\n[dependencies.rav1e]\nversion = \"0.8\"\ndefault-features = false\noptional = true\n\n[dependencies.avif-serialize]\nversion = \"0.8\"\noptional = true\n\n[dependencies.hayro-jpeg2000]\nversion = \"=0.3.5\"\ndefault-features = false\nfeatures = [\"std\", \"simd\"]\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies]\nrayon = \"1\"\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies.exr]\nversion = \"1.73\"\ndefault-features = false\nfeatures = [\"rayon\"]\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dev-dependencies.craft-video]\nfeatures = [\"av1-decode\"]\npath = \"crates/video\"\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dev-dependencies.jxl-oxide]\nversion = \"=0.12.6\"\ndefault-features = false\nfeatures = [\"rayon\"]\n\n[dev-dependencies]\nproptest = \"1\"\n\n[dev-dependencies.image]\nversion = \"0.25\"\ndefault-features = false\nfeatures = [\"png\", \"jpeg\", \"tiff\"]\n\n[dev-dependencies.sha2]\nversion = \"0.10\"\ndefault-features = false\nfeatures = [\"std\"]\n", - "dest": "cargo/vendor/craft-image-codecs", + "dest": "cargo/vendor-git/cb31475a7a9d19c00f48b4c43603f2f1a464c6dce15da1d21bba4c653eeba6b2/craft-image-codecs", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/craft-image-codecs", + "dest": "cargo/vendor-git/cb31475a7a9d19c00f48b4c43603f2f1a464c6dce15da1d21bba4c653eeba6b2/craft-image-codecs", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-478c505/crates/jpeg\" \"cargo/vendor/craft-jpeg\"" + "mkdir -p \"cargo/vendor-git/cb31475a7a9d19c00f48b4c43603f2f1a464c6dce15da1d21bba4c653eeba6b2\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-478c505/crates/jpeg\" \"cargo/vendor-git/cb31475a7a9d19c00f48b4c43603f2f1a464c6dce15da1d21bba4c653eeba6b2/craft-jpeg\"" ] }, { "type": "inline", "contents": "[package]\nname = \"craft-jpeg\"\ndescription = \"Clean-room JPEG decoder and 8-bit optimized baseline encoder (ITU-T T.81).\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[dependencies]\nthiserror = \"2\"\n\n[dependencies.rayon]\noptional = true\nversion = \"1\"\n\n[dev-dependencies]\njpeg-encoder = \"0.6\"\nzune-jpeg = \"0.5\"\njpeg-decoder = \"0.3\"\n\n[features]\ndefault = []\nparallel = [\"dep:rayon\"]\n", - "dest": "cargo/vendor/craft-jpeg", + "dest": "cargo/vendor-git/cb31475a7a9d19c00f48b4c43603f2f1a464c6dce15da1d21bba4c653eeba6b2/craft-jpeg", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/craft-jpeg", + "dest": "cargo/vendor-git/cb31475a7a9d19c00f48b4c43603f2f1a464c6dce15da1d21bba4c653eeba6b2/craft-jpeg", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-b77af38/crates/jxl\" \"cargo/vendor/craft-jxl\"" + "mkdir -p \"cargo/vendor-git/a51e2c3f46af71f1caed91009f88b4f9982db0c4152c6659d11967a7731b1ccc\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-b77af38/crates/jxl\" \"cargo/vendor-git/a51e2c3f46af71f1caed91009f88b4f9982db0c4152c6659d11967a7731b1ccc/craft-jxl\"" ] }, { "type": "inline", "contents": "[package]\nname = \"craft-jxl\"\ndescription = \"JPEG XL image decoding and encoding with bounded input and allocation tracking.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[features]\ndefault = [\"decode\", \"encode\"]\ndecode = [\"dep:jxl-oxide\"]\nencode = [\"dep:jixel\"]\n\n[dependencies]\nthiserror = \"2\"\n\n[dependencies.jxl-oxide]\noptional = true\nversion = \"0.12\"\ndefault-features = false\n\n[dev-dependencies.craft-cms]\npath = \"crates/cms\"\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies.jixel]\noptional = true\nversion = \"=0.3.4\"\n", - "dest": "cargo/vendor/craft-jxl", + "dest": "cargo/vendor-git/a51e2c3f46af71f1caed91009f88b4f9982db0c4152c6659d11967a7731b1ccc/craft-jxl", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/craft-jxl", + "dest": "cargo/vendor-git/a51e2c3f46af71f1caed91009f88b4f9982db0c4152c6659d11967a7731b1ccc/craft-jxl", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-478c505/crates/metadata\" \"cargo/vendor/craft-metadata\"" + "mkdir -p \"cargo/vendor-git/cb31475a7a9d19c00f48b4c43603f2f1a464c6dce15da1d21bba4c653eeba6b2\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-478c505/crates/metadata\" \"cargo/vendor-git/cb31475a7a9d19c00f48b4c43603f2f1a464c6dce15da1d21bba4c653eeba6b2/craft-metadata\"" ] }, { "type": "inline", "contents": "[package]\nname = \"craft-metadata\"\ndescription = \"Photo metadata: EXIF, IPTC-IIM, XMP packets (read, write, merge) and GPX track logs, the blocks that carry them in JPEG, PNG, WebP, TIFF and CR3 files, and one model they all read into.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[dependencies]\nquick-xml = \"0.41\"\n\n[dependencies.craft-tiff]\npath = \"crates/tiff\"\n\n[dependencies.serde]\nversion = \"1\"\nfeatures = [\"derive\"]\n\n[dependencies.chrono]\nversion = \"0.4.45\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dependencies.brotli-decompressor]\nversion = \"6\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dev-dependencies]\nproptest = \"1\"\nserde_json = \"1\"\n\n[dev-dependencies.brotli]\nversion = \"9\"\ndefault-features = false\nfeatures = [\"std\"]\n", - "dest": "cargo/vendor/craft-metadata", + "dest": "cargo/vendor-git/cb31475a7a9d19c00f48b4c43603f2f1a464c6dce15da1d21bba4c653eeba6b2/craft-metadata", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/craft-metadata", + "dest": "cargo/vendor-git/cb31475a7a9d19c00f48b4c43603f2f1a464c6dce15da1d21bba4c653eeba6b2/craft-metadata", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-94777dc/crates/metadata\" \"cargo/vendor/craft-metadata\"" + "mkdir -p \"cargo/vendor-git/6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-94777dc/crates/metadata\" \"cargo/vendor-git/6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1/craft-metadata\"" ] }, { "type": "inline", "contents": "[package]\nname = \"craft-metadata\"\ndescription = \"Photo metadata: EXIF, IPTC-IIM, XMP packets (read, write, merge) and GPX track logs, the blocks that carry them in JPEG, PNG, WebP, TIFF and CR3 files, and one model they all read into.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[dependencies]\nquick-xml = \"0.41\"\n\n[dependencies.craft-tiff]\npath = \"crates/tiff\"\n\n[dependencies.serde]\nversion = \"1\"\nfeatures = [\"derive\"]\n\n[dependencies.chrono]\nversion = \"0.4.45\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dependencies.brotli-decompressor]\nversion = \"6\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dev-dependencies]\nproptest = \"1\"\nserde_json = \"1\"\n\n[dev-dependencies.brotli]\nversion = \"9\"\ndefault-features = false\nfeatures = [\"std\"]\n", - "dest": "cargo/vendor/craft-metadata", + "dest": "cargo/vendor-git/6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1/craft-metadata", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/craft-metadata", + "dest": "cargo/vendor-git/6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1/craft-metadata", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-f0f4758/crates/mime\" \"cargo/vendor/craft-mime\"" + "mkdir -p \"cargo/vendor-git/bc00bd22a20692df38f25839a8568cd55b90e379a41719721bbc0f04fe5e29f7\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-f0f4758/crates/mime\" \"cargo/vendor-git/bc00bd22a20692df38f25839a8568cd55b90e379a41719721bbc0f04fe5e29f7/craft-mime\"" ] }, { "type": "inline", "contents": "[package]\nname = \"craft-mime\"\ndescription = \"Internet messages and MIME: RFC 5322 headers, RFC 2045-2049 parts, encoded words, RFC 2231 parameters, transfer encodings, mbox and multipart/related lookups, read and written.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[dependencies]\nencoding_rs = \"0.8\"\n\n[dependencies.craft-codepage]\npath = \"crates/codepage\"\n\n[dependencies.chrono]\nversion = \"0.4.45\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dependencies.chardetng]\nversion = \"1\"\noptional = true\n\n[features]\ndetect = [\"dep:chardetng\"]\n\n[dev-dependencies]\nproptest = \"1\"\n", - "dest": "cargo/vendor/craft-mime", + "dest": "cargo/vendor-git/bc00bd22a20692df38f25839a8568cd55b90e379a41719721bbc0f04fe5e29f7/craft-mime", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/craft-mime", + "dest": "cargo/vendor-git/bc00bd22a20692df38f25839a8568cd55b90e379a41719721bbc0f04fe5e29f7/craft-mime", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-2651dbe/crates/pdf\" \"cargo/vendor/craft-pdf\"" + "mkdir -p \"cargo/vendor-git/677ec4bd11b9c98fb90165eb3a009c5b05f30eee72bbe079c4c936aa3feb3ff9\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-2651dbe/crates/pdf\" \"cargo/vendor-git/677ec4bd11b9c98fb90165eb3a009c5b05f30eee72bbe079c4c936aa3feb3ff9/craft-pdf\"" ] }, { "type": "inline", "contents": "[package]\nname = \"craft-pdf\"\ndescription = \"Shared PDF reading, rendering and optional writing for Craft apps\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrepository = \"https://github.com/storytold/craft-libs\"\nrust-version = \"1.95\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[features]\ndefault = []\nread = [\"dep:hayro-syntax\", \"dep:thiserror\"]\ninterpret = [\"read\", \"dep:hayro-interpret\"]\npaths = [\"interpret\", \"dep:kurbo\"]\nraster = [\"interpret\", \"dep:hayro\", \"dep:bytemuck\"]\nwrite = [\"dep:krilla\", \"dep:thiserror\"]\nwrite-svg = [\"write\", \"dep:craft-svg\", \"dep:krilla-svg\", \"dep:usvg\", \"craft-svg/tree-text\"]\nwrite-pdf = [\"write\", \"krilla/pdf\"]\nwrite-raster = [\"dep:flate2\", \"dep:roxmltree\"]\nwrite-simple-text = [\"write\", \"krilla/simple-text\"]\nfilters = [\"dep:craft-stream-codecs\", \"dep:flate2\", \"dep:thiserror\"]\ncos = [\"crypt\", \"filters\", \"dep:chrono\", \"dep:js-sys\", \"dep:wasm-bindgen\"]\ncrypt = [\"dep:aes\", \"dep:md-5\", \"dep:sha2\", \"dep:stringprep\", \"dep:zeroize\", \"dep:thiserror\"]\n\n[dependencies.hayro-syntax]\noptional = true\nversion = \"=0.7.2\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dependencies.hayro-interpret]\noptional = true\nversion = \"=0.7.0\"\ndefault-features = false\nfeatures = [\"embed-fonts\", \"embed-cmaps\"]\n\n[dependencies.hayro]\noptional = true\nversion = \"=0.7.1\"\ndefault-features = false\n\n[dependencies.bytemuck]\noptional = true\nversion = \"1\"\n\n[dependencies.krilla]\noptional = true\nversion = \"=0.8.2\"\ndefault-features = false\nfeatures = [\"raster-images\"]\n\n[dependencies.craft-svg]\noptional = true\npath = \"crates/svg\"\n\n[dependencies.krilla-svg]\nversion = \"=0.8.1\"\noptional = true\n\n[dependencies.usvg]\nversion = \"=0.47.0\"\nfeatures = [\"text\"]\noptional = true\n\n[dependencies.thiserror]\noptional = true\nversion = \"2\"\n\n[dependencies.flate2]\nversion = \"1.1\"\ndefault-features = false\nfeatures = [\"zlib-rs\"]\noptional = true\n\n[dependencies.roxmltree]\nversion = \"0.21\"\noptional = true\n\n[dependencies.craft-stream-codecs]\noptional = true\npath = \"crates/stream-codecs\"\n\n[dependencies.aes]\nversion = \"0.9\"\noptional = true\n\n[dependencies.md-5]\nversion = \"0.11\"\noptional = true\n\n[dependencies.sha2]\nversion = \"0.11\"\noptional = true\n\n[dependencies.stringprep]\nversion = \"0.1\"\noptional = true\n\n[dependencies.zeroize]\nversion = \"1\"\noptional = true\n\n[dependencies.chrono]\noptional = true\nversion = \"0.4.45\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dependencies.kurbo]\noptional = true\nversion = \"0.13\"\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dependencies.js-sys]\nversion = \"0.3\"\noptional = true\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dependencies.wasm-bindgen]\nversion = \"0.2\"\noptional = true\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dev-dependencies]\nwasm-bindgen-test = \"0.3\"\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dev-dependencies]\nproptest = \"1\"\n\n[dev-dependencies]\nserde_json = \"1\"\nhayro-syntax = \"=0.7.2\"\nhayro-cmap = \"=0.1.0\"\nkurbo = \"0.13\"\nttf-parser = \"=0.25.1\"\n\n[dev-dependencies.hayro-interpret]\nversion = \"=0.7.0\"\ndefault-features = false\n\n[[example]]\nname = \"cos_info\"\nrequired-features = [\"cos\"]\n\n[[example]]\nname = \"cos_protect\"\nrequired-features = [\"cos\"]\n", - "dest": "cargo/vendor/craft-pdf", + "dest": "cargo/vendor-git/677ec4bd11b9c98fb90165eb3a009c5b05f30eee72bbe079c4c936aa3feb3ff9/craft-pdf", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/craft-pdf", + "dest": "cargo/vendor-git/677ec4bd11b9c98fb90165eb3a009c5b05f30eee72bbe079c4c936aa3feb3ff9/craft-pdf", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-9dcbd90/crates/psd\" \"cargo/vendor/craft-psd\"" + "mkdir -p \"cargo/vendor-git/36bf00be069421f8a8a7428c4360efee8b4243207a59d7b566c6f48fc5918f61\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-9dcbd90/crates/psd\" \"cargo/vendor-git/36bf00be069421f8a8a7428c4360efee8b4243207a59d7b566c6f48fc5918f61/craft-psd\"" ] }, { "type": "inline", "contents": "[package]\nname = \"craft-psd\"\ndescription = \"Faithful, lossless reader and writer for Adobe Photoshop PSD and PSB files, and for the Photoshop resource files that share their primitives (ABR, ASL, ACO, ACT, ASE, GRD, PAT, ATN, CSH, SHC)\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[features]\ncorpus = []\ndefault = []\nserde = [\"dep:serde\"]\ntestgen = []\n\n[dependencies]\nthiserror = \"2\"\nencoding_rs = \"0.8\"\n\n[dependencies.flate2]\nversion = \"1.1.10\"\ndefault-features = false\nfeatures = [\"zlib-rs\", \"runtime_detection\"]\n\n[dependencies.serde]\noptional = true\nversion = \"1\"\nfeatures = [\"derive\"]\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies]\nrayon = \"1\"\n\n[dev-dependencies]\nproptest = \"1\"\n\n[dev-dependencies.craft-psd]\npath = \".\"\nfeatures = [\"testgen\"]\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n", - "dest": "cargo/vendor/craft-psd", + "dest": "cargo/vendor-git/36bf00be069421f8a8a7428c4360efee8b4243207a59d7b566c6f48fc5918f61/craft-psd", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/craft-psd", + "dest": "cargo/vendor-git/36bf00be069421f8a8a7428c4360efee8b4243207a59d7b566c6f48fc5918f61/craft-psd", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-94777dc/crates/raw\" \"cargo/vendor/craft-raw\"" + "mkdir -p \"cargo/vendor-git/6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-94777dc/crates/raw\" \"cargo/vendor-git/6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1/craft-raw\"" ] }, { "type": "inline", "contents": "[package]\nname = \"craft-raw\"\ndescription = \"Camera raw files, the file-format layer: container parsing, decompression and the sensor data out as a neutral raw image with its levels, crop, orientation, colour tags and embedded previews. DNG (read and write), Hasselblad 3FR/FFF, MRW, ERF, MEF, Kodak DCS, Pentax PEF, Samsung SRW, Canon CR2, Nikon NEF/NRW, Panasonic RW2, Fujifilm RAF, Olympus ORF (uncompressed), Sony ARW, Canon CR3 and Canon CRW so far.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[features]\ndefault = [\"dng\", \"jxl\", \"crw\", \"hasselblad\", \"mrw\", \"erf\", \"mef\", \"kodak\", \"pef\", \"srw\", \"cr2\", \"nef\", \"rw2\", \"raf\", \"orf\", \"arw\", \"cr3\"]\ndng = [\"dep:miniz_oxide\", \"dep:zune-jpeg\", \"dep:zune-core\"]\njxl = [\"dng\", \"dep:jxl-oxide\"]\nhasselblad = [\"dng\"]\nmrw = []\nerf = []\nmef = []\nkodak = []\npef = []\nsrw = []\ncr2 = []\nnef = []\nrw2 = []\nraf = []\norf = []\narw = []\ncr3 = [\"dep:craft-metadata\"]\ncrw = [\"dep:craft-crw\", \"dep:chrono\"]\n\n[dependencies]\nthiserror = \"2\"\nrayon = \"1\"\n\n[dependencies.craft-tiff]\npath = \"crates/tiff\"\n\n[dependencies.craft-crw]\noptional = true\npath = \"crates/crw\"\n\n[dependencies.craft-metadata]\noptional = true\npath = \"crates/metadata\"\n\n[dependencies.serde]\nversion = \"1\"\nfeatures = [\"derive\"]\n\n[dependencies.chrono]\noptional = true\nversion = \"0.4.45\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dependencies.miniz_oxide]\nversion = \"0.9\"\noptional = true\n\n[dependencies.zune-jpeg]\nversion = \"0.5\"\ndefault-features = false\nfeatures = [\"std\", \"x86\", \"neon\"]\noptional = true\n\n[dependencies.zune-core]\nversion = \"0.5\"\ndefault-features = false\nfeatures = [\"std\"]\noptional = true\n\n[dependencies.jxl-oxide]\nversion = \"0.12\"\ndefault-features = false\noptional = true\n\n[dev-dependencies]\nproptest = \"1\"\n\n[dev-dependencies.sha2]\nversion = \"0.10\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dev-dependencies.jpeg-encoder]\nversion = \"0.7\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dev-dependencies.zune-jpegxl]\nversion = \"0.5\"\ndefault-features = false\nfeatures = [\"std\"]\n", - "dest": "cargo/vendor/craft-raw", + "dest": "cargo/vendor-git/6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1/craft-raw", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/craft-raw", + "dest": "cargo/vendor-git/6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1/craft-raw", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-478c505/crates/tiff\" \"cargo/vendor/craft-tiff\"" + "mkdir -p \"cargo/vendor-git/cb31475a7a9d19c00f48b4c43603f2f1a464c6dce15da1d21bba4c653eeba6b2\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-478c505/crates/tiff\" \"cargo/vendor-git/cb31475a7a9d19c00f48b4c43603f2f1a464c6dce15da1d21bba4c653eeba6b2/craft-tiff\"" ] }, { "type": "inline", "contents": "[package]\nname = \"craft-tiff\"\ndescription = \"TIFF and BigTIFF IFD reader and writer: every field type, the Exif/GPS/Interop pointer IFDs, maker-note IFDs, strip and tile layout.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[dependencies]\nthiserror = \"2\"\n\n[dependencies.serde]\nversion = \"1\"\nfeatures = [\"derive\"]\n\n[dev-dependencies]\nproptest = \"1\"\n", - "dest": "cargo/vendor/craft-tiff", + "dest": "cargo/vendor-git/cb31475a7a9d19c00f48b4c43603f2f1a464c6dce15da1d21bba4c653eeba6b2/craft-tiff", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/craft-tiff", + "dest": "cargo/vendor-git/cb31475a7a9d19c00f48b4c43603f2f1a464c6dce15da1d21bba4c653eeba6b2/craft-tiff", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-94777dc/crates/tiff\" \"cargo/vendor/craft-tiff\"" + "mkdir -p \"cargo/vendor-git/6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-94777dc/crates/tiff\" \"cargo/vendor-git/6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1/craft-tiff\"" ] }, { "type": "inline", "contents": "[package]\nname = \"craft-tiff\"\ndescription = \"TIFF and BigTIFF IFD reader and writer: every field type, the Exif/GPS/Interop pointer IFDs, maker-note IFDs, strip and tile layout.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[dependencies]\nthiserror = \"2\"\n\n[dependencies.serde]\nversion = \"1\"\nfeatures = [\"derive\"]\n\n[dev-dependencies]\nproptest = \"1\"\n", - "dest": "cargo/vendor/craft-tiff", + "dest": "cargo/vendor-git/6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1/craft-tiff", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/craft-tiff", + "dest": "cargo/vendor-git/6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1/craft-tiff", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-c5a1cbf/crates/ui\" \"cargo/vendor/craft-ui\"" + "mkdir -p \"cargo/vendor-git/11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-c5a1cbf/crates/ui\" \"cargo/vendor-git/11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298/craft-ui\"" ] }, { "type": "inline", "contents": "[package]\nname = \"craft-ui\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrepository = \"https://github.com/storytold/craft-libs\"\nrust-version = \"1.95\"\ndescription = \"Reusable egui controls and icon catalogs for Craft frontends\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[dependencies]\nlog = \"0.4\"\n\n[dependencies.craft-fonts-build]\npath = \"crates/fonts-build\"\n\n[dependencies.craft-i18n]\npath = \"crates/i18n\"\n\n[dependencies.egui]\nversion = \"0.37\"\ndefault-features = false\n\n[dependencies.epaint]\nversion = \"0.37\"\ndefault-features = false\n\n[dependencies.serde]\nversion = \"1\"\nfeatures = [\"derive\"]\noptional = true\n\n[dependencies.skrifa]\nversion = \"0.44\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies.egui_kittest]\nversion = \"0.37\"\nfeatures = [\"snapshot\", \"wgpu\"]\noptional = true\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies.fontique]\nversion = \"0.11.1\"\ndefault-features = false\nfeatures = [\"system\", \"fontconfig-dlopen\"]\noptional = true\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies.unicode-script]\nversion = \"0.5.8\"\noptional = true\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dev-dependencies.egui_kittest]\nversion = \"0.37\"\nfeatures = [\"wgpu\"]\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dev-dependencies.eframe]\nversion = \"0.37\"\ndefault-features = false\nfeatures = [\"wgpu\", \"x11\", \"default_fonts\"]\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dependencies]\njs-sys = \"0.3\"\nwasm-bindgen = \"0.2\"\nwasm-bindgen-futures = \"0.4\"\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dependencies.web-sys]\nversion = \"0.3\"\nfeatures = [\"Window\", \"RequestInit\", \"Response\", \"console\"]\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dev-dependencies]\njs-sys = \"0.3\"\nwasm-bindgen = \"0.2\"\nwasm-bindgen-futures = \"0.4\"\nwasm-bindgen-test = \"0.3\"\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dev-dependencies.web-sys]\nversion = \"0.3\"\nfeatures = [\"Window\", \"Response\"]\n\n[target.\"cfg(target_os = \\\"macos\\\")\".dependencies]\nobjc2 = \"0.6\"\n\n[target.\"cfg(target_os = \\\"macos\\\")\".dependencies.objc2-app-kit]\nversion = \"0.3\"\ndefault-features = false\nfeatures = [\"std\", \"objc2-core-foundation\", \"NSApplication\", \"NSEvent\", \"NSResponder\", \"NSScreen\", \"NSWindow\"]\n\n[target.\"cfg(target_os = \\\"macos\\\")\".dependencies.objc2-foundation]\nversion = \"0.3\"\ndefault-features = false\nfeatures = [\"std\", \"NSArray\", \"NSEnumerator\", \"NSString\"]\n\n[features]\ndefault = []\nserde = [\"dep:serde\"]\nnative-windows = []\ncolor_fonts = [\"epaint/color_fonts\"]\nsystem_fonts = [\"dep:fontique\", \"dep:unicode-script\"]\ntesting = []\nscreen-testing = [\"dep:egui_kittest\"]\n\n[dev-dependencies]\nserde_json = \"1\"\n\n[dev-dependencies.egui]\nfeatures = [\"default_fonts\", \"serde\"]\nversion = \"0.37\"\ndefault-features = false\n\n[dev-dependencies.egui_extras]\nversion = \"0.37\"\ndefault-features = false\nfeatures = [\"svg\"]\n\n[dev-dependencies.image]\nversion = \"0.25\"\ndefault-features = false\nfeatures = [\"png\"]\n\n[[example]]\nname = \"docking_native\"\nrequired-features = [\"native-windows\"]\n\n[[test]]\nname = \"screens\"\nrequired-features = [\"screen-testing\"]\n", - "dest": "cargo/vendor/craft-ui", + "dest": "cargo/vendor-git/11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298/craft-ui", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/craft-ui", + "dest": "cargo/vendor-git/11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298/craft-ui", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-6e03f65/crates/update\" \"cargo/vendor/craft-update\"" + "mkdir -p \"cargo/vendor-git/4765c8f813a43ec0005270c9f4b16bff2eb2e09aeb15e4230bcd10e5bba1c4ba\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-6e03f65/crates/update\" \"cargo/vendor-git/4765c8f813a43ec0005270c9f4b16bff2eb2e09aeb15e4230bcd10e5bba1c4ba/craft-update\"" ] }, { "type": "inline", "contents": "[package]\nname = \"craft-update\"\ndescription = \"Release checking, downloading, installing and self-updating for the Craft App Suite and ArtCraft Launcher\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[features]\ndefault = []\negui = [\"dep:egui\", \"dep:image\"]\nlocal-mirror = []\nsnapshot = [\"egui\", \"egui_kittest/wgpu\"]\n\n[dependencies]\nserde_json = \"1\"\nlog = \"0.4\"\ngetrandom = \"0.3\"\ntempfile = \"3\"\nsha2 = \"0.10\"\n\n[dependencies.egui]\noptional = true\nversion = \"0.37\"\ndefault-features = false\n\n[dependencies.image]\nversion = \"0.25\"\ndefault-features = false\nfeatures = [\"png\"]\noptional = true\n\n[dependencies.serde]\nversion = \"1\"\nfeatures = [\"derive\"]\n\n[dependencies.ureq]\nversion = \"3.4\"\ndefault-features = false\nfeatures = [\"rustls-no-provider\", \"_ring\", \"gzip\", \"platform-verifier\"]\n\n[dependencies.chrono]\nversion = \"0.4.45\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dependencies.semver]\nversion = \"1\"\nfeatures = [\"serde\"]\n\n[dev-dependencies]\nflate2 = \"1\"\negui_kittest = \"0.37\"\nepaint_default_fonts = \"0.37\"\n\n[target.\"cfg(unix)\".dependencies]\nflate2 = \"1\"\n\n[target.\"cfg(unix)\".dependencies.tar]\nversion = \"0.4\"\ndefault-features = false\n\n[target.\"cfg(target_os = \\\"macos\\\")\".dependencies]\nplist = \"1\"\n\n[target.\"cfg(any(target_os = \\\"macos\\\", target_os = \\\"linux\\\"))\".dependencies.rustix]\nversion = \"1.1\"\ndefault-features = false\nfeatures = [\"std\", \"fs\", \"process\"]\n\n[target.\"cfg(target_os = \\\"windows\\\")\".dependencies]\nwinreg = \"0.55\"\ndunce = \"1\"\nflate2 = \"1\"\nverifysign = \"1\"\n\n[target.\"cfg(target_os = \\\"windows\\\")\".dependencies.zip]\nversion = \"9\"\ndefault-features = false\nfeatures = [\"deflate-flate2\"]\n\n[target.\"cfg(target_os = \\\"windows\\\")\".dependencies.winsafe]\nversion = \"0.0.29\"\nfeatures = [\"advapi\", \"kernel\", \"shell\", \"version\"]\n", - "dest": "cargo/vendor/craft-update", + "dest": "cargo/vendor-git/4765c8f813a43ec0005270c9f4b16bff2eb2e09aeb15e4230bcd10e5bba1c4ba/craft-update", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/craft-update", + "dest": "cargo/vendor-git/4765c8f813a43ec0005270c9f4b16bff2eb2e09aeb15e4230bcd10e5bba1c4ba/craft-update", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-c5a1cbf/crates/window\" \"cargo/vendor/craft-window\"" + "mkdir -p \"cargo/vendor-git/11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-c5a1cbf/crates/window\" \"cargo/vendor-git/11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298/craft-window\"" ] }, { "type": "inline", "contents": "[package]\nname = \"craft-window\"\ndescription = \"Decide who draws the window frame (the desktop or the app) so every Craft app gets the same titlebar and borders per desktop, make an app-drawn strip act as the title bar, and keep the window list, cascade placement and Window menu for apps with one window per document.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[features]\negui = [\"dep:egui\", \"dep:objc2\", \"dep:objc2-app-kit\"]\n\n[dependencies.egui]\noptional = true\nversion = \"0.37\"\ndefault-features = false\n\n[target.\"cfg(any(target_os = \\\"linux\\\", target_os = \\\"freebsd\\\", target_os = \\\"openbsd\\\", target_os = \\\"netbsd\\\"))\".dependencies]\nwayland-client = \"0.31\"\n\n[target.\"cfg(target_os = \\\"macos\\\")\".dependencies.objc2]\nversion = \"0.6.4\"\ndefault-features = false\nfeatures = [\"std\"]\noptional = true\n\n[target.\"cfg(target_os = \\\"macos\\\")\".dependencies.objc2-app-kit]\nversion = \"0.3.2\"\ndefault-features = false\nfeatures = [\"std\", \"NSApplication\", \"NSButton\", \"NSControl\", \"NSResponder\", \"NSView\", \"NSWindow\"]\noptional = true\n\n[lints.rust]\nunsafe_code = \"forbid\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n", - "dest": "cargo/vendor/craft-window", + "dest": "cargo/vendor-git/11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298/craft-window", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/craft-window", + "dest": "cargo/vendor-git/11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298/craft-window", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-f0f4758/crates/xml\" \"cargo/vendor/craft-xml\"" + "mkdir -p \"cargo/vendor-git/bc00bd22a20692df38f25839a8568cd55b90e379a41719721bbc0f04fe5e29f7\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-f0f4758/crates/xml\" \"cargo/vendor-git/bc00bd22a20692df38f25839a8568cd55b90e379a41719721bbc0f04fe5e29f7/craft-xml\"" ] }, { "type": "inline", "contents": "[package]\nname = \"craft-xml\"\ndescription = \"Bounded XML for hostile input: an owned element tree, streaming of repeated elements, a pull reader, escaping and a writer. No DTDs, no entity expansion.\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrust-version = \"1.95\"\nrepository = \"https://github.com/storytold/craft-libs\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[dependencies]\nthiserror = \"2\"\n\n[dependencies.quick-xml]\nversion = \"0.41\"\ndefault-features = false\n", - "dest": "cargo/vendor/craft-xml", + "dest": "cargo/vendor-git/bc00bd22a20692df38f25839a8568cd55b90e379a41719721bbc0f04fe5e29f7/craft-xml", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/craft-xml", + "dest": "cargo/vendor-git/bc00bd22a20692df38f25839a8568cd55b90e379a41719721bbc0f04fe5e29f7/craft-xml", "dest-filename": ".cargo-checksum.json" }, { @@ -2379,19 +2379,19 @@ { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/ecolor\" \"cargo/vendor/ecolor\"" + "mkdir -p \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6\" && cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/ecolor\" \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/ecolor\"" ] }, { "type": "inline", "contents": "[package]\nname = \"ecolor\"\nversion = \"0.37.0\"\nauthors = [\"Emil Ernerfeldt \", \"Andreas Reich \"]\ndescription = \"Color structs and color conversion utilities\"\nedition = \"2024\"\nrust-version = \"1.95\"\nhomepage = \"https://github.com/emilk/egui\"\nlicense = \"MIT OR Apache-2.0\"\nreadme = \"README.md\"\nrepository = \"https://github.com/emilk/egui\"\ncategories = [\"mathematics\", \"encoding\"]\nkeywords = [\"gui\", \"color\", \"conversion\", \"gamedev\", \"images\"]\ninclude = [\"../../LICENSE-APACHE\", \"../../LICENSE-MIT\", \"**/*.rs\", \"Cargo.toml\"]\n\n[package.metadata.docs.rs]\nall-features = true\nrustdoc-args = [\"--generate-link-to-definition\"]\n\n[lints.rust]\nunsafe_code = \"deny\"\ntrivial_numeric_casts = \"warn\"\nunused_import_braces = \"warn\"\nunused_lifetimes = \"warn\"\ntrivial_casts = \"allow\"\nunused_qualifications = \"allow\"\n\n[lints.rust.future_incompatible]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.nonstandard_style]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.rust_2018_idioms]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(web_sys_unstable_apis)\"]\n\n[lints.rustdoc]\nall = \"warn\"\n\n[lints.clippy]\nallow_attributes = \"warn\"\nas_ptr_cast_mut = \"warn\"\nbranches_sharing_code = \"warn\"\nclear_with_drain = \"warn\"\nclone_on_ref_ptr = \"warn\"\ncoerce_container_to_any = \"warn\"\ndbg_macro = \"warn\"\ndebug_assert_with_mut_call = \"warn\"\ndefault_union_representation = \"warn\"\nderive_partial_eq_without_eq = \"warn\"\ndisallowed_script_idents = \"warn\"\ndoc_include_without_cfg = \"warn\"\nempty_enum_variants_with_brackets = \"warn\"\nequatable_if_let = \"warn\"\nexit = \"warn\"\nfallible_impl_from = \"warn\"\nfloat_cmp_const = \"warn\"\nfn_to_numeric_cast_any = \"warn\"\nget_unwrap = \"warn\"\nimprecise_flops = \"warn\"\ninfinite_loop = \"warn\"\niter_on_empty_collections = \"warn\"\niter_on_single_items = \"warn\"\niter_over_hash_type = \"warn\"\nlarge_include_file = \"warn\"\nlarge_stack_frames = \"warn\"\nliteral_string_with_formatting_args = \"warn\"\nlossy_float_literal = \"warn\"\nmap_err_ignore = \"warn\"\nmem_forget = \"warn\"\nmissing_assert_message = \"warn\"\nmutex_integer = \"warn\"\nneedless_pass_by_ref_mut = \"warn\"\nneedless_type_cast = \"warn\"\nnon_zero_suggestions = \"warn\"\nnonstandard_macro_braces = \"warn\"\nor_fun_call = \"warn\"\npath_buf_push_overwrite = \"warn\"\npathbuf_init_then_push = \"warn\"\nprecedence_bits = \"warn\"\nprint_stderr = \"warn\"\nprint_stdout = \"warn\"\npub_without_shorthand = \"warn\"\nrc_mutex = \"warn\"\nredundant_type_annotations = \"warn\"\nref_patterns = \"warn\"\nrest_pat_in_fully_bound_structs = \"warn\"\nreturn_and_then = \"warn\"\nset_contains_or_insert = \"warn\"\nsingle_option_map = \"warn\"\nstd_instead_of_core = \"warn\"\nstr_to_string = \"warn\"\nstring_add = \"warn\"\nstring_lit_as_bytes = \"warn\"\nstring_lit_chars_any = \"warn\"\nsuspicious_xor_used_as_pow = \"warn\"\ntodo = \"warn\"\ntoo_long_first_doc_paragraph = \"warn\"\ntrailing_empty_array = \"warn\"\ntrait_duplication_in_bounds = \"warn\"\ntuple_array_conversions = \"warn\"\nundocumented_unsafe_blocks = \"warn\"\nunimplemented = \"warn\"\nuninhabited_references = \"warn\"\nunnecessary_safety_comment = \"warn\"\nunnecessary_safety_doc = \"warn\"\nunnecessary_self_imports = \"warn\"\nunnecessary_struct_initialization = \"warn\"\nunused_peekable = \"warn\"\nunused_rounding = \"warn\"\nunused_trait_names = \"warn\"\nunwrap_used = \"warn\"\nuse_self = \"warn\"\nuseless_let_if_seq = \"warn\"\nverbose_file_reads = \"warn\"\ncast_lossless = \"allow\"\ncast_possible_truncation = \"allow\"\ncast_possible_wrap = \"allow\"\ncast_precision_loss = \"allow\"\ncast_sign_loss = \"allow\"\ncomparison_chain = \"allow\"\ndefault_trait_access = \"allow\"\nfloat_cmp = \"allow\"\ninline_always = \"allow\"\nitems_after_statements = \"allow\"\nmany_single_char_names = \"allow\"\nmissing_panics_doc = \"allow\"\nmust_use_candidate = \"allow\"\nredundant_closure_for_method_calls = \"allow\"\nreturn_self_not_must_use = \"allow\"\nshould_panic_without_expect = \"allow\"\nsimilar_names = \"allow\"\nstruct_excessive_bools = \"allow\"\nstruct_field_names = \"allow\"\ntoo_many_lines = \"allow\"\ntrivially_copy_pass_by_ref = \"allow\"\nunreadable_literal = \"allow\"\nused_underscore_binding = \"allow\"\nassigning_clones = \"allow\"\nmanual_range_contains = \"allow\"\nmap_unwrap_or = \"allow\"\nmultiple_crate_versions = \"allow\"\nwildcard_imports = \"allow\"\nlet_underscore_must_use = \"allow\"\nlet_underscore_untyped = \"allow\"\nself_named_module_files = \"allow\"\nsignificant_drop_tightening = \"allow\"\n\n[lints.clippy.all]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.cargo]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.pedantic]\nlevel = \"warn\"\npriority = -1\n\n[lib]\n\n[features]\ndefault = []\n\n[dependencies.emath]\nversion = \"0.37.0\"\npath = \"crates/emath\"\ndefault-features = false\n\n[dependencies.bytemuck]\noptional = true\nfeatures = [\"derive\"]\nversion = \"1.25\"\n\n[dependencies.cint]\noptional = true\nversion = \"0.3.1\"\n\n[dependencies.color-hex]\noptional = true\nversion = \"0.2.0\"\n\n[dependencies.document-features]\noptional = true\nversion = \"0.2.12\"\n\n[dependencies.serde]\noptional = true\nversion = \"1.0\"\nfeatures = [\"derive\"]\n", - "dest": "cargo/vendor/ecolor", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/ecolor", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/ecolor", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/ecolor", "dest-filename": ".cargo-checksum.json" }, { @@ -2423,127 +2423,127 @@ { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/eframe\" \"cargo/vendor/eframe\"" + "mkdir -p \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6\" && cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/eframe\" \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/eframe\"" ] }, { "type": "inline", "contents": "[package]\nname = \"eframe\"\nversion = \"0.37.0\"\nauthors = [\"Emil Ernerfeldt \"]\ndescription = \"egui framework - write GUI apps that compiles to web and/or natively\"\nedition = \"2024\"\nrust-version = \"1.95\"\nhomepage = \"https://github.com/emilk/egui/tree/main/crates/eframe\"\nlicense = \"MIT OR Apache-2.0\"\nreadme = \"README.md\"\nrepository = \"https://github.com/emilk/egui/tree/main/crates/eframe\"\ncategories = [\"gui\", \"game-development\"]\nkeywords = [\"egui\", \"gui\", \"gamedev\"]\ninclude = [\"../../LICENSE-APACHE\", \"../../LICENSE-MIT\", \"**/*.rs\", \"Cargo.toml\", \"data/icon.png\"]\n\n[package.metadata.docs.rs]\nall-features = true\ntargets = [\"x86_64-unknown-linux-gnu\", \"wasm32-unknown-unknown\"]\nrustdoc-args = [\"--generate-link-to-definition\"]\n\n[lints.rust]\nunsafe_code = \"deny\"\ntrivial_numeric_casts = \"warn\"\nunused_import_braces = \"warn\"\nunused_lifetimes = \"warn\"\ntrivial_casts = \"allow\"\nunused_qualifications = \"allow\"\n\n[lints.rust.future_incompatible]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.nonstandard_style]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.rust_2018_idioms]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(web_sys_unstable_apis)\"]\n\n[lints.rustdoc]\nall = \"warn\"\n\n[lints.clippy]\nallow_attributes = \"warn\"\nas_ptr_cast_mut = \"warn\"\nbranches_sharing_code = \"warn\"\nclear_with_drain = \"warn\"\nclone_on_ref_ptr = \"warn\"\ncoerce_container_to_any = \"warn\"\ndbg_macro = \"warn\"\ndebug_assert_with_mut_call = \"warn\"\ndefault_union_representation = \"warn\"\nderive_partial_eq_without_eq = \"warn\"\ndisallowed_script_idents = \"warn\"\ndoc_include_without_cfg = \"warn\"\nempty_enum_variants_with_brackets = \"warn\"\nequatable_if_let = \"warn\"\nexit = \"warn\"\nfallible_impl_from = \"warn\"\nfloat_cmp_const = \"warn\"\nfn_to_numeric_cast_any = \"warn\"\nget_unwrap = \"warn\"\nimprecise_flops = \"warn\"\ninfinite_loop = \"warn\"\niter_on_empty_collections = \"warn\"\niter_on_single_items = \"warn\"\niter_over_hash_type = \"warn\"\nlarge_include_file = \"warn\"\nlarge_stack_frames = \"warn\"\nliteral_string_with_formatting_args = \"warn\"\nlossy_float_literal = \"warn\"\nmap_err_ignore = \"warn\"\nmem_forget = \"warn\"\nmissing_assert_message = \"warn\"\nmutex_integer = \"warn\"\nneedless_pass_by_ref_mut = \"warn\"\nneedless_type_cast = \"warn\"\nnon_zero_suggestions = \"warn\"\nnonstandard_macro_braces = \"warn\"\nor_fun_call = \"warn\"\npath_buf_push_overwrite = \"warn\"\npathbuf_init_then_push = \"warn\"\nprecedence_bits = \"warn\"\nprint_stderr = \"warn\"\nprint_stdout = \"warn\"\npub_without_shorthand = \"warn\"\nrc_mutex = \"warn\"\nredundant_type_annotations = \"warn\"\nref_patterns = \"warn\"\nrest_pat_in_fully_bound_structs = \"warn\"\nreturn_and_then = \"warn\"\nset_contains_or_insert = \"warn\"\nsingle_option_map = \"warn\"\nstd_instead_of_core = \"warn\"\nstr_to_string = \"warn\"\nstring_add = \"warn\"\nstring_lit_as_bytes = \"warn\"\nstring_lit_chars_any = \"warn\"\nsuspicious_xor_used_as_pow = \"warn\"\ntodo = \"warn\"\ntoo_long_first_doc_paragraph = \"warn\"\ntrailing_empty_array = \"warn\"\ntrait_duplication_in_bounds = \"warn\"\ntuple_array_conversions = \"warn\"\nundocumented_unsafe_blocks = \"warn\"\nunimplemented = \"warn\"\nuninhabited_references = \"warn\"\nunnecessary_safety_comment = \"warn\"\nunnecessary_safety_doc = \"warn\"\nunnecessary_self_imports = \"warn\"\nunnecessary_struct_initialization = \"warn\"\nunused_peekable = \"warn\"\nunused_rounding = \"warn\"\nunused_trait_names = \"warn\"\nunwrap_used = \"warn\"\nuse_self = \"warn\"\nuseless_let_if_seq = \"warn\"\nverbose_file_reads = \"warn\"\ncast_lossless = \"allow\"\ncast_possible_truncation = \"allow\"\ncast_possible_wrap = \"allow\"\ncast_precision_loss = \"allow\"\ncast_sign_loss = \"allow\"\ncomparison_chain = \"allow\"\ndefault_trait_access = \"allow\"\nfloat_cmp = \"allow\"\ninline_always = \"allow\"\nitems_after_statements = \"allow\"\nmany_single_char_names = \"allow\"\nmissing_panics_doc = \"allow\"\nmust_use_candidate = \"allow\"\nredundant_closure_for_method_calls = \"allow\"\nreturn_self_not_must_use = \"allow\"\nshould_panic_without_expect = \"allow\"\nsimilar_names = \"allow\"\nstruct_excessive_bools = \"allow\"\nstruct_field_names = \"allow\"\ntoo_many_lines = \"allow\"\ntrivially_copy_pass_by_ref = \"allow\"\nunreadable_literal = \"allow\"\nused_underscore_binding = \"allow\"\nassigning_clones = \"allow\"\nmanual_range_contains = \"allow\"\nmap_unwrap_or = \"allow\"\nmultiple_crate_versions = \"allow\"\nwildcard_imports = \"allow\"\nlet_underscore_must_use = \"allow\"\nlet_underscore_untyped = \"allow\"\nself_named_module_files = \"allow\"\nsignificant_drop_tightening = \"allow\"\n\n[lints.clippy.all]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.cargo]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.pedantic]\nlevel = \"warn\"\npriority = -1\n\n[lib]\n\n[features]\ndefault = [\"accesskit\", \"clipboard\", \"default_fonts\", \"links\", \"system_fonts\", \"wayland\", \"web_screen_reader\", \"wgpu\", \"winit/default\", \"x11\"]\naccesskit = [\"egui-winit/accesskit\"]\nandroid-game-activity = [\"egui-winit/android-game-activity\"]\nandroid-native-activity = [\"egui-winit/android-native-activity\"]\ndefault_fonts = [\"egui/default_fonts\"]\nexperimental = [\"egui/experimental\"]\nglow = [\"dep:egui_glow\", \"dep:glow\", \"dep:glutin-winit\", \"dep:glutin\"]\npersistence = [\"egui-winit/serde\", \"egui/persistence\", \"ron\", \"serde\"]\nwayland = [\"egui-winit/wayland\", \"egui-wgpu?/wayland\", \"egui_glow?/wayland\", \"glutin?/wayland\", \"glutin-winit?/wayland\"]\nsystem_fonts = [\"dep:egui_system_font_provider\"]\nweb_screen_reader = [\"web-sys/SpeechSynthesis\", \"web-sys/SpeechSynthesisUtterance\"]\nwgpu = [\"wgpu_no_default_features\", \"egui-wgpu/default\"]\nwgpu_no_default_features = [\"dep:wgpu\", \"dep:egui-wgpu\", \"dep:pollster\"]\nx11 = [\"egui-winit/x11\", \"egui-wgpu?/x11\", \"egui_glow?/x11\", \"glutin?/x11\", \"glutin?/glx\", \"glutin-winit?/x11\", \"glutin-winit?/glx\"]\n__screenshot = []\ninspection = [\"dep:egui_inspection\", \"accesskit\"]\nlinks = [\"egui-winit/links\"]\nclipboard = [\"egui-winit/clipboard\", \"egui-winit/clipboard-image\"]\n\n[dependencies]\ndocument-features = \"0.2.12\"\nparking_lot = \"0.12.5\"\nraw-window-handle = \"0.6.2\"\nstatic_assertions = \"1.1\"\nweb-time = \"1.1\"\n\n[dependencies.egui]\ndefault-features = false\nfeatures = [\"bytemuck\"]\nversion = \"0.37.0\"\npath = \"crates/egui\"\n\n[dependencies.ahash]\nversion = \"0.8.12\"\ndefault-features = false\nfeatures = [\"no-rng\", \"std\"]\n\n[dependencies.log]\nversion = \"0.4.34\"\nfeatures = [\"std\"]\n\n[dependencies.profiling]\nversion = \"1.0\"\ndefault-features = false\n\n[dependencies.egui_glow]\noptional = true\ndefault-features = false\nversion = \"0.37.0\"\npath = \"crates/egui_glow\"\n\n[dependencies.egui_inspection]\noptional = true\nfeatures = [\"plugin\"]\nversion = \"0.37.0\"\npath = \"crates/egui_inspection\"\ndefault-features = false\n\n[dependencies.glow]\noptional = true\nversion = \"0.17.0\"\n\n[dependencies.ron]\noptional = true\nfeatures = [\"integer128\"]\nversion = \"0.12.2\"\n\n[dependencies.serde]\noptional = true\nversion = \"1.0\"\nfeatures = [\"derive\"]\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies.egui-winit]\ndefault-features = false\nversion = \"0.37.0\"\npath = \"crates/egui-winit\"\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies.image]\nfeatures = [\"png\"]\nversion = \"0.25.10\"\ndefault-features = false\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies.winit]\ndefault-features = false\nfeatures = [\"rwh_06\"]\nversion = \"0.30.13\"\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies.egui_system_font_provider]\noptional = true\nversion = \"0.37.0\"\npath = \"crates/egui_system_font_provider\"\ndefault-features = false\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies.egui-wgpu]\noptional = true\nfeatures = [\"winit\", \"capture\"]\nversion = \"0.37.0\"\npath = \"crates/egui-wgpu\"\ndefault-features = false\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies.pollster]\noptional = true\nversion = \"1.0\"\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies.glutin]\noptional = true\ndefault-features = false\nfeatures = [\"egl\", \"wgl\"]\nversion = \"0.32.3\"\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies.glutin-winit]\noptional = true\ndefault-features = false\nfeatures = [\"egl\", \"wgl\"]\nversion = \"0.5.0\"\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dev-dependencies]\ndirectories = \"6.0\"\n\n[target.\"cfg(any(target_os = \\\"macos\\\"))\".dependencies]\nobjc2 = \"0.6.4\"\n\n[target.\"cfg(any(target_os = \\\"macos\\\"))\".dependencies.objc2-foundation]\ndefault-features = false\nfeatures = [\"std\", \"block2\", \"NSData\", \"NSString\"]\nversion = \"0.3.2\"\n\n[target.\"cfg(any(target_os = \\\"macos\\\"))\".dependencies.objc2-app-kit]\ndefault-features = false\nfeatures = [\"std\", \"NSApplication\", \"NSBitmapImageRep\", \"NSButton\", \"NSControl\", \"NSGraphics\", \"NSImage\", \"NSImageRep\", \"NSMenu\", \"NSMenuItem\", \"NSResponder\", \"NSView\", \"NSWindow\"]\nversion = \"0.3.2\"\n\n[target.\"cfg(any(target_os = \\\"windows\\\"))\".dependencies.windows-sys]\nfeatures = [\"Win32_Foundation\", \"Win32_System_Com\", \"Win32_UI_Input_KeyboardAndMouse\", \"Win32_UI_Shell\", \"Win32_UI_WindowsAndMessaging\"]\nversion = \"0.61.2\"\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dependencies]\nbytemuck = \"1.25\"\njs-sys = \"0.3.103\"\npercent-encoding = \"2.3\"\nsend_wrapper = \"0.6\"\nwasm-bindgen = \"0.2.126\"\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dependencies.egui]\nfeatures = [\"web_file\"]\nversion = \"0.37.0\"\npath = \"crates/egui\"\ndefault-features = false\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dependencies.image]\nfeatures = [\"png\"]\nversion = \"0.25.10\"\ndefault-features = false\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dependencies.web-sys]\nfeatures = [\"AddEventListenerOptions\", \"BinaryType\", \"Blob\", \"BlobPropertyBag\", \"Clipboard\", \"ClipboardEvent\", \"ClipboardItem\", \"CanvasRenderingContext2d\", \"CompositionEvent\", \"console\", \"CssStyleDeclaration\", \"DataTransfer\", \"DataTransferItem\", \"DataTransferItemList\", \"Document\", \"DomRect\", \"DragEvent\", \"Element\", \"Event\", \"EventListener\", \"EventTarget\", \"ExtSRgb\", \"File\", \"FileList\", \"FocusEvent\", \"FocusOptions\", \"HtmlCanvasElement\", \"HtmlElement\", \"HtmlInputElement\", \"InputEvent\", \"ImageData\", \"KeyboardEvent\", \"Location\", \"MediaQueryList\", \"MediaQueryListEvent\", \"MouseEvent\", \"Navigator\", \"Node\", \"NodeList\", \"Performance\", \"ResizeObserver\", \"ResizeObserverBoxOptions\", \"ResizeObserverEntry\", \"ResizeObserverOptions\", \"ResizeObserverSize\", \"ShadowRoot\", \"Storage\", \"TextMetrics\", \"Touch\", \"TouchEvent\", \"PointerEvent\", \"TouchList\", \"WebGl2RenderingContext\", \"WebglDebugRendererInfo\", \"WebGlRenderingContext\", \"WheelEvent\", \"Window\"]\nversion = \"0.3.103\"\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dependencies.egui-wgpu]\noptional = true\nfeatures = [\"capture\"]\nversion = \"0.37.0\"\npath = \"crates/egui-wgpu\"\ndefault-features = false\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dependencies.wgpu]\noptional = true\nversion = \"30.0\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dev-dependencies]\nwasm-bindgen-test = \"=0.3.76\"\n", - "dest": "cargo/vendor/eframe", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/eframe", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/eframe", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/eframe", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/egui\" \"cargo/vendor/egui\"" + "mkdir -p \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6\" && cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/egui\" \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui\"" ] }, { "type": "inline", "contents": "[package]\nname = \"egui\"\nversion = \"0.37.0\"\nauthors = [\"Emil Ernerfeldt \"]\ndescription = \"An easy-to-use immediate mode GUI that runs on both web and native\"\nedition = \"2024\"\nrust-version = \"1.95\"\nhomepage = \"https://github.com/emilk/egui\"\nlicense = \"MIT OR Apache-2.0\"\nreadme = \"../../README.md\"\nrepository = \"https://github.com/emilk/egui\"\ncategories = [\"gui\", \"game-development\"]\nkeywords = [\"gui\", \"imgui\", \"immediate\", \"portable\", \"gamedev\"]\ninclude = [\"../../LICENSE-APACHE\", \"../../LICENSE-MIT\", \"**/*.rs\", \"Cargo.toml\"]\n\n[package.metadata.docs.rs]\nall-features = true\nrustdoc-args = [\"--generate-link-to-definition\"]\ntargets = [\"x86_64-unknown-linux-gnu\", \"wasm32-unknown-unknown\"]\n\n[lints.rust]\nunsafe_code = \"deny\"\ntrivial_numeric_casts = \"warn\"\nunused_import_braces = \"warn\"\nunused_lifetimes = \"warn\"\ntrivial_casts = \"allow\"\nunused_qualifications = \"allow\"\n\n[lints.rust.future_incompatible]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.nonstandard_style]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.rust_2018_idioms]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(web_sys_unstable_apis)\"]\n\n[lints.rustdoc]\nall = \"warn\"\n\n[lints.clippy]\nallow_attributes = \"warn\"\nas_ptr_cast_mut = \"warn\"\nbranches_sharing_code = \"warn\"\nclear_with_drain = \"warn\"\nclone_on_ref_ptr = \"warn\"\ncoerce_container_to_any = \"warn\"\ndbg_macro = \"warn\"\ndebug_assert_with_mut_call = \"warn\"\ndefault_union_representation = \"warn\"\nderive_partial_eq_without_eq = \"warn\"\ndisallowed_script_idents = \"warn\"\ndoc_include_without_cfg = \"warn\"\nempty_enum_variants_with_brackets = \"warn\"\nequatable_if_let = \"warn\"\nexit = \"warn\"\nfallible_impl_from = \"warn\"\nfloat_cmp_const = \"warn\"\nfn_to_numeric_cast_any = \"warn\"\nget_unwrap = \"warn\"\nimprecise_flops = \"warn\"\ninfinite_loop = \"warn\"\niter_on_empty_collections = \"warn\"\niter_on_single_items = \"warn\"\niter_over_hash_type = \"warn\"\nlarge_include_file = \"warn\"\nlarge_stack_frames = \"warn\"\nliteral_string_with_formatting_args = \"warn\"\nlossy_float_literal = \"warn\"\nmap_err_ignore = \"warn\"\nmem_forget = \"warn\"\nmissing_assert_message = \"warn\"\nmutex_integer = \"warn\"\nneedless_pass_by_ref_mut = \"warn\"\nneedless_type_cast = \"warn\"\nnon_zero_suggestions = \"warn\"\nnonstandard_macro_braces = \"warn\"\nor_fun_call = \"warn\"\npath_buf_push_overwrite = \"warn\"\npathbuf_init_then_push = \"warn\"\nprecedence_bits = \"warn\"\nprint_stderr = \"warn\"\nprint_stdout = \"warn\"\npub_without_shorthand = \"warn\"\nrc_mutex = \"warn\"\nredundant_type_annotations = \"warn\"\nref_patterns = \"warn\"\nrest_pat_in_fully_bound_structs = \"warn\"\nreturn_and_then = \"warn\"\nset_contains_or_insert = \"warn\"\nsingle_option_map = \"warn\"\nstd_instead_of_core = \"warn\"\nstr_to_string = \"warn\"\nstring_add = \"warn\"\nstring_lit_as_bytes = \"warn\"\nstring_lit_chars_any = \"warn\"\nsuspicious_xor_used_as_pow = \"warn\"\ntodo = \"warn\"\ntoo_long_first_doc_paragraph = \"warn\"\ntrailing_empty_array = \"warn\"\ntrait_duplication_in_bounds = \"warn\"\ntuple_array_conversions = \"warn\"\nundocumented_unsafe_blocks = \"warn\"\nunimplemented = \"warn\"\nuninhabited_references = \"warn\"\nunnecessary_safety_comment = \"warn\"\nunnecessary_safety_doc = \"warn\"\nunnecessary_self_imports = \"warn\"\nunnecessary_struct_initialization = \"warn\"\nunused_peekable = \"warn\"\nunused_rounding = \"warn\"\nunused_trait_names = \"warn\"\nunwrap_used = \"warn\"\nuse_self = \"warn\"\nuseless_let_if_seq = \"warn\"\nverbose_file_reads = \"warn\"\ncast_lossless = \"allow\"\ncast_possible_truncation = \"allow\"\ncast_possible_wrap = \"allow\"\ncast_precision_loss = \"allow\"\ncast_sign_loss = \"allow\"\ncomparison_chain = \"allow\"\ndefault_trait_access = \"allow\"\nfloat_cmp = \"allow\"\ninline_always = \"allow\"\nitems_after_statements = \"allow\"\nmany_single_char_names = \"allow\"\nmissing_panics_doc = \"allow\"\nmust_use_candidate = \"allow\"\nredundant_closure_for_method_calls = \"allow\"\nreturn_self_not_must_use = \"allow\"\nshould_panic_without_expect = \"allow\"\nsimilar_names = \"allow\"\nstruct_excessive_bools = \"allow\"\nstruct_field_names = \"allow\"\ntoo_many_lines = \"allow\"\ntrivially_copy_pass_by_ref = \"allow\"\nunreadable_literal = \"allow\"\nused_underscore_binding = \"allow\"\nassigning_clones = \"allow\"\nmanual_range_contains = \"allow\"\nmap_unwrap_or = \"allow\"\nmultiple_crate_versions = \"allow\"\nwildcard_imports = \"allow\"\nlet_underscore_must_use = \"allow\"\nlet_underscore_untyped = \"allow\"\nself_named_module_files = \"allow\"\nsignificant_drop_tightening = \"allow\"\n\n[lints.clippy.all]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.cargo]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.pedantic]\nlevel = \"warn\"\npriority = -1\n\n[lib]\n\n[features]\ndefault = []\nbytemuck = [\"epaint/bytemuck\"]\ncallstack = [\"dep:backtrace\"]\ncint = [\"epaint/cint\"]\ncolor-hex = [\"epaint/color-hex\"]\ndefault_fonts = [\"epaint/default_fonts\"]\nexperimental = []\nmint = [\"epaint/mint\"]\nmonochrome_emoji_fonts = [\"default_fonts\", \"epaint/monochrome_emoji_fonts\"]\npersistence = [\"serde\", \"epaint/serde\", \"ron\"]\nrayon = [\"epaint/rayon\"]\nserde = [\"dep:serde\", \"epaint/serde\", \"accesskit/serde\"]\nunity = [\"epaint/unity\"]\nweb_file = [\"dep:web-sys\"]\n_override_unity = [\"epaint/_override_unity\"]\n\n[dependencies]\naccesskit = \"0.25.0\"\nbitflags = \"2.13\"\nitertools = \"0.15.0\"\nnohash-hasher = \"0.2.0\"\nsmallvec = \"1.16\"\nunicode-segmentation = \"1.13\"\n\n[dependencies.emath]\ndefault-features = false\nversion = \"0.37.0\"\npath = \"crates/emath\"\n\n[dependencies.epaint]\ndefault-features = false\nversion = \"0.37.0\"\npath = \"crates/epaint\"\n\n[dependencies.ahash]\nversion = \"0.8.12\"\ndefault-features = false\nfeatures = [\"no-rng\", \"std\"]\n\n[dependencies.log]\nversion = \"0.4.34\"\nfeatures = [\"std\"]\n\n[dependencies.profiling]\nversion = \"1.0\"\ndefault-features = false\n\n[dependencies.backtrace]\noptional = true\nversion = \"0.3.76\"\n\n[dependencies.document-features]\noptional = true\nversion = \"0.2.12\"\n\n[dependencies.ron]\noptional = true\nversion = \"0.12.2\"\n\n[dependencies.serde]\noptional = true\nfeatures = [\"derive\", \"rc\", \"derive\"]\nversion = \"1.0\"\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dependencies.web-sys]\noptional = true\nfeatures = [\"File\"]\nversion = \"0.3.103\"\n\n[dev-dependencies.skrifa]\nversion = \"0.44.0\"\ndefault-features = false\nfeatures = [\"std\", \"autohint_shaping\"]\n", - "dest": "cargo/vendor/egui", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/egui", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/egui-wgpu\" \"cargo/vendor/egui-wgpu\"" + "mkdir -p \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6\" && cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/egui-wgpu\" \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui-wgpu\"" ] }, { "type": "inline", "contents": "[package]\nname = \"egui-wgpu\"\nversion = \"0.37.0\"\ndescription = \"Bindings for using egui natively using the wgpu library\"\nauthors = [\"Nils Hasenbanck \", \"embotech \", \"Emil Ernerfeldt \"]\nedition = \"2024\"\nrust-version = \"1.95\"\nhomepage = \"https://github.com/emilk/egui/tree/main/crates/egui-wgpu\"\nlicense = \"MIT OR Apache-2.0\"\nreadme = \"README.md\"\nrepository = \"https://github.com/emilk/egui/tree/main/crates/egui-wgpu\"\ncategories = [\"gui\", \"game-development\"]\nkeywords = [\"wgpu\", \"egui\", \"gui\", \"gamedev\"]\ninclude = [\"../../LICENSE-APACHE\", \"../../LICENSE-MIT\", \"**/*.rs\", \"**/*.wgsl\", \"Cargo.toml\"]\n\n[package.metadata.docs.rs]\nall-features = true\nrustdoc-args = [\"--generate-link-to-definition\"]\n\n[lints.rust]\nunsafe_code = \"deny\"\ntrivial_numeric_casts = \"warn\"\nunused_import_braces = \"warn\"\nunused_lifetimes = \"warn\"\ntrivial_casts = \"allow\"\nunused_qualifications = \"allow\"\n\n[lints.rust.future_incompatible]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.nonstandard_style]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.rust_2018_idioms]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(web_sys_unstable_apis)\"]\n\n[lints.rustdoc]\nall = \"warn\"\n\n[lints.clippy]\nallow_attributes = \"warn\"\nas_ptr_cast_mut = \"warn\"\nbranches_sharing_code = \"warn\"\nclear_with_drain = \"warn\"\nclone_on_ref_ptr = \"warn\"\ncoerce_container_to_any = \"warn\"\ndbg_macro = \"warn\"\ndebug_assert_with_mut_call = \"warn\"\ndefault_union_representation = \"warn\"\nderive_partial_eq_without_eq = \"warn\"\ndisallowed_script_idents = \"warn\"\ndoc_include_without_cfg = \"warn\"\nempty_enum_variants_with_brackets = \"warn\"\nequatable_if_let = \"warn\"\nexit = \"warn\"\nfallible_impl_from = \"warn\"\nfloat_cmp_const = \"warn\"\nfn_to_numeric_cast_any = \"warn\"\nget_unwrap = \"warn\"\nimprecise_flops = \"warn\"\ninfinite_loop = \"warn\"\niter_on_empty_collections = \"warn\"\niter_on_single_items = \"warn\"\niter_over_hash_type = \"warn\"\nlarge_include_file = \"warn\"\nlarge_stack_frames = \"warn\"\nliteral_string_with_formatting_args = \"warn\"\nlossy_float_literal = \"warn\"\nmap_err_ignore = \"warn\"\nmem_forget = \"warn\"\nmissing_assert_message = \"warn\"\nmutex_integer = \"warn\"\nneedless_pass_by_ref_mut = \"warn\"\nneedless_type_cast = \"warn\"\nnon_zero_suggestions = \"warn\"\nnonstandard_macro_braces = \"warn\"\nor_fun_call = \"warn\"\npath_buf_push_overwrite = \"warn\"\npathbuf_init_then_push = \"warn\"\nprecedence_bits = \"warn\"\nprint_stderr = \"warn\"\nprint_stdout = \"warn\"\npub_without_shorthand = \"warn\"\nrc_mutex = \"warn\"\nredundant_type_annotations = \"warn\"\nref_patterns = \"warn\"\nrest_pat_in_fully_bound_structs = \"warn\"\nreturn_and_then = \"warn\"\nset_contains_or_insert = \"warn\"\nsingle_option_map = \"warn\"\nstd_instead_of_core = \"warn\"\nstr_to_string = \"warn\"\nstring_add = \"warn\"\nstring_lit_as_bytes = \"warn\"\nstring_lit_chars_any = \"warn\"\nsuspicious_xor_used_as_pow = \"warn\"\ntodo = \"warn\"\ntoo_long_first_doc_paragraph = \"warn\"\ntrailing_empty_array = \"warn\"\ntrait_duplication_in_bounds = \"warn\"\ntuple_array_conversions = \"warn\"\nundocumented_unsafe_blocks = \"warn\"\nunimplemented = \"warn\"\nuninhabited_references = \"warn\"\nunnecessary_safety_comment = \"warn\"\nunnecessary_safety_doc = \"warn\"\nunnecessary_self_imports = \"warn\"\nunnecessary_struct_initialization = \"warn\"\nunused_peekable = \"warn\"\nunused_rounding = \"warn\"\nunused_trait_names = \"warn\"\nunwrap_used = \"warn\"\nuse_self = \"warn\"\nuseless_let_if_seq = \"warn\"\nverbose_file_reads = \"warn\"\ncast_lossless = \"allow\"\ncast_possible_truncation = \"allow\"\ncast_possible_wrap = \"allow\"\ncast_precision_loss = \"allow\"\ncast_sign_loss = \"allow\"\ncomparison_chain = \"allow\"\ndefault_trait_access = \"allow\"\nfloat_cmp = \"allow\"\ninline_always = \"allow\"\nitems_after_statements = \"allow\"\nmany_single_char_names = \"allow\"\nmissing_panics_doc = \"allow\"\nmust_use_candidate = \"allow\"\nredundant_closure_for_method_calls = \"allow\"\nreturn_self_not_must_use = \"allow\"\nshould_panic_without_expect = \"allow\"\nsimilar_names = \"allow\"\nstruct_excessive_bools = \"allow\"\nstruct_field_names = \"allow\"\ntoo_many_lines = \"allow\"\ntrivially_copy_pass_by_ref = \"allow\"\nunreadable_literal = \"allow\"\nused_underscore_binding = \"allow\"\nassigning_clones = \"allow\"\nmanual_range_contains = \"allow\"\nmap_unwrap_or = \"allow\"\nmultiple_crate_versions = \"allow\"\nwildcard_imports = \"allow\"\nlet_underscore_must_use = \"allow\"\nlet_underscore_untyped = \"allow\"\nself_named_module_files = \"allow\"\nsignificant_drop_tightening = \"allow\"\n\n[lints.clippy.all]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.cargo]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.pedantic]\nlevel = \"warn\"\npriority = -1\n\n[features]\ndefault = [\"fragile-send-sync-non-atomic-wasm\", \"macos-window-resize-jitter-fix\", \"wgpu/default\", \"wgpu/webgl\"]\ncapture = [\"dep:egui\"]\nwinit = [\"dep:winit\", \"winit/rwh_06\", \"dep:egui\", \"capture\"]\nwayland = [\"winit?/wayland\"]\nx11 = [\"winit?/x11\"]\nfragile-send-sync-non-atomic-wasm = [\"wgpu/fragile-send-sync-non-atomic-wasm\"]\nmacos-window-resize-jitter-fix = [\"wgpu/metal\"]\n\n[dependencies]\nbytemuck = \"1.25\"\ndocument-features = \"0.2.12\"\nthiserror = \"2.0\"\ntype-map = \"0.5.1\"\nweb-time = \"1.1\"\n\n[dependencies.epaint]\ndefault-features = false\nfeatures = [\"bytemuck\"]\nversion = \"0.37.0\"\npath = \"crates/epaint\"\n\n[dependencies.ahash]\nversion = \"0.8.12\"\ndefault-features = false\nfeatures = [\"no-rng\", \"std\"]\n\n[dependencies.log]\nversion = \"0.4.34\"\nfeatures = [\"std\"]\n\n[dependencies.profiling]\nversion = \"1.0\"\ndefault-features = false\n\n[dependencies.wgpu]\nfeatures = [\"wgsl\", \"std\"]\nversion = \"30.0\"\ndefault-features = false\n\n[dependencies.egui]\noptional = true\ndefault-features = false\nversion = \"0.37.0\"\npath = \"crates/egui\"\n\n[dependencies.winit]\noptional = true\ndefault-features = false\nversion = \"0.30.13\"\n", - "dest": "cargo/vendor/egui-wgpu", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui-wgpu", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/egui-wgpu", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui-wgpu", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/egui-winit\" \"cargo/vendor/egui-winit\"" + "mkdir -p \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6\" && cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/egui-winit\" \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui-winit\"" ] }, { "type": "inline", "contents": "[package]\nname = \"egui-winit\"\nversion = \"0.37.0\"\nauthors = [\"Emil Ernerfeldt \"]\ndescription = \"Bindings for using egui with winit\"\nedition = \"2024\"\nrust-version = \"1.95\"\nhomepage = \"https://github.com/emilk/egui/tree/main/crates/egui-winit\"\nlicense = \"MIT OR Apache-2.0\"\nreadme = \"README.md\"\nrepository = \"https://github.com/emilk/egui/tree/main/crates/egui-winit\"\ncategories = [\"gui\", \"game-development\"]\nkeywords = [\"winit\", \"egui\", \"gui\", \"gamedev\"]\ninclude = [\"../../LICENSE-APACHE\", \"../../LICENSE-MIT\", \"**/*.rs\", \"Cargo.toml\"]\n\n[package.metadata.docs.rs]\nall-features = true\nrustdoc-args = [\"--generate-link-to-definition\"]\n\n[package.metadata.cargo-shear]\nignored = [\"wayland-cursor\"]\n\n[lints.rust]\nunsafe_code = \"deny\"\ntrivial_numeric_casts = \"warn\"\nunused_import_braces = \"warn\"\nunused_lifetimes = \"warn\"\ntrivial_casts = \"allow\"\nunused_qualifications = \"allow\"\n\n[lints.rust.future_incompatible]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.nonstandard_style]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.rust_2018_idioms]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(web_sys_unstable_apis)\"]\n\n[lints.rustdoc]\nall = \"warn\"\n\n[lints.clippy]\nallow_attributes = \"warn\"\nas_ptr_cast_mut = \"warn\"\nbranches_sharing_code = \"warn\"\nclear_with_drain = \"warn\"\nclone_on_ref_ptr = \"warn\"\ncoerce_container_to_any = \"warn\"\ndbg_macro = \"warn\"\ndebug_assert_with_mut_call = \"warn\"\ndefault_union_representation = \"warn\"\nderive_partial_eq_without_eq = \"warn\"\ndisallowed_script_idents = \"warn\"\ndoc_include_without_cfg = \"warn\"\nempty_enum_variants_with_brackets = \"warn\"\nequatable_if_let = \"warn\"\nexit = \"warn\"\nfallible_impl_from = \"warn\"\nfloat_cmp_const = \"warn\"\nfn_to_numeric_cast_any = \"warn\"\nget_unwrap = \"warn\"\nimprecise_flops = \"warn\"\ninfinite_loop = \"warn\"\niter_on_empty_collections = \"warn\"\niter_on_single_items = \"warn\"\niter_over_hash_type = \"warn\"\nlarge_include_file = \"warn\"\nlarge_stack_frames = \"warn\"\nliteral_string_with_formatting_args = \"warn\"\nlossy_float_literal = \"warn\"\nmap_err_ignore = \"warn\"\nmem_forget = \"warn\"\nmissing_assert_message = \"warn\"\nmutex_integer = \"warn\"\nneedless_pass_by_ref_mut = \"warn\"\nneedless_type_cast = \"warn\"\nnon_zero_suggestions = \"warn\"\nnonstandard_macro_braces = \"warn\"\nor_fun_call = \"warn\"\npath_buf_push_overwrite = \"warn\"\npathbuf_init_then_push = \"warn\"\nprecedence_bits = \"warn\"\nprint_stderr = \"warn\"\nprint_stdout = \"warn\"\npub_without_shorthand = \"warn\"\nrc_mutex = \"warn\"\nredundant_type_annotations = \"warn\"\nref_patterns = \"warn\"\nrest_pat_in_fully_bound_structs = \"warn\"\nreturn_and_then = \"warn\"\nset_contains_or_insert = \"warn\"\nsingle_option_map = \"warn\"\nstd_instead_of_core = \"warn\"\nstr_to_string = \"warn\"\nstring_add = \"warn\"\nstring_lit_as_bytes = \"warn\"\nstring_lit_chars_any = \"warn\"\nsuspicious_xor_used_as_pow = \"warn\"\ntodo = \"warn\"\ntoo_long_first_doc_paragraph = \"warn\"\ntrailing_empty_array = \"warn\"\ntrait_duplication_in_bounds = \"warn\"\ntuple_array_conversions = \"warn\"\nundocumented_unsafe_blocks = \"warn\"\nunimplemented = \"warn\"\nuninhabited_references = \"warn\"\nunnecessary_safety_comment = \"warn\"\nunnecessary_safety_doc = \"warn\"\nunnecessary_self_imports = \"warn\"\nunnecessary_struct_initialization = \"warn\"\nunused_peekable = \"warn\"\nunused_rounding = \"warn\"\nunused_trait_names = \"warn\"\nunwrap_used = \"warn\"\nuse_self = \"warn\"\nuseless_let_if_seq = \"warn\"\nverbose_file_reads = \"warn\"\ncast_lossless = \"allow\"\ncast_possible_truncation = \"allow\"\ncast_possible_wrap = \"allow\"\ncast_precision_loss = \"allow\"\ncast_sign_loss = \"allow\"\ncomparison_chain = \"allow\"\ndefault_trait_access = \"allow\"\nfloat_cmp = \"allow\"\ninline_always = \"allow\"\nitems_after_statements = \"allow\"\nmany_single_char_names = \"allow\"\nmissing_panics_doc = \"allow\"\nmust_use_candidate = \"allow\"\nredundant_closure_for_method_calls = \"allow\"\nreturn_self_not_must_use = \"allow\"\nshould_panic_without_expect = \"allow\"\nsimilar_names = \"allow\"\nstruct_excessive_bools = \"allow\"\nstruct_field_names = \"allow\"\ntoo_many_lines = \"allow\"\ntrivially_copy_pass_by_ref = \"allow\"\nunreadable_literal = \"allow\"\nused_underscore_binding = \"allow\"\nassigning_clones = \"allow\"\nmanual_range_contains = \"allow\"\nmap_unwrap_or = \"allow\"\nmultiple_crate_versions = \"allow\"\nwildcard_imports = \"allow\"\nlet_underscore_must_use = \"allow\"\nlet_underscore_untyped = \"allow\"\nself_named_module_files = \"allow\"\nsignificant_drop_tightening = \"allow\"\n\n[lints.clippy.all]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.cargo]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.pedantic]\nlevel = \"warn\"\npriority = -1\n\n[features]\ndefault = [\"clipboard\", \"clipboard-image\", \"links\", \"wayland\", \"winit/default\", \"x11\"]\naccesskit = [\"dep:accesskit_winit\"]\nandroid-game-activity = [\"winit/android-game-activity\"]\nandroid-native-activity = [\"winit/android-native-activity\"]\nbytemuck = [\"egui/bytemuck\", \"dep:bytemuck\"]\nclipboard = [\"arboard\", \"bytemuck\", \"smithay-clipboard\"]\nclipboard-image = [\"clipboard\", \"dep:image\", \"dep:parking_lot\"]\nlinks = [\"webbrowser\"]\nserde = [\"egui/serde\", \"dep:serde\"]\nwayland = [\"winit/wayland\", \"bytemuck\", \"arboard?/wayland-data-control\"]\nx11 = [\"winit/x11\", \"winit/rwh_06\", \"bytemuck\"]\n\n[dependencies]\nraw-window-handle = \"0.6.2\"\nweb-time = \"1.1\"\n\n[dependencies.egui]\ndefault-features = false\nversion = \"0.37.0\"\npath = \"crates/egui\"\n\n[dependencies.log]\nversion = \"0.4.34\"\nfeatures = [\"std\"]\n\n[dependencies.profiling]\nversion = \"1.0\"\ndefault-features = false\n\n[dependencies.winit]\ndefault-features = false\nversion = \"0.30.13\"\n\n[dependencies.accesskit_winit]\noptional = true\nversion = \"0.34.0\"\n\n[dependencies.bytemuck]\noptional = true\nversion = \"1.25\"\n\n[dependencies.document-features]\noptional = true\nversion = \"0.2.12\"\n\n[dependencies.serde]\noptional = true\nversion = \"1.0\"\nfeatures = [\"derive\"]\n\n[dependencies.webbrowser]\noptional = true\nversion = \"1.2.4\"\n\n[dependencies.image]\ndefault-features = false\nfeatures = [\"png\"]\noptional = true\nversion = \"0.25.10\"\n\n[target.\"cfg(target_os = \\\"macos\\\")\".dependencies]\nblock2 = \"0.6.2\"\nobjc2 = \"0.6.4\"\n\n[target.\"cfg(target_os = \\\"macos\\\")\".dependencies.objc2-app-kit]\ndefault-features = false\nfeatures = [\"std\", \"block2\", \"NSEvent\", \"NSResponder\"]\nversion = \"0.3.2\"\n\n[target.\"cfg(target_os = \\\"ios\\\")\".dependencies]\nobjc2 = \"0.6.4\"\n\n[target.\"cfg(target_os = \\\"ios\\\")\".dependencies.objc2-foundation]\nfeatures = [\"std\", \"NSThread\"]\nversion = \"0.3.2\"\ndefault-features = false\n\n[target.\"cfg(target_os = \\\"ios\\\")\".dependencies.objc2-ui-kit]\nfeatures = [\"std\", \"objc2-core-foundation\", \"UIApplication\", \"UIGeometry\", \"UIResponder\", \"UIScene\", \"UISceneDefinitions\", \"UIView\", \"UIWindow\", \"UIWindowScene\"]\nversion = \"0.3.2\"\ndefault-features = false\n\n[target.\"cfg(target_os = \\\"windows\\\")\".dependencies.windows-sys]\nfeatures = [\"Win32_Foundation\", \"Win32_Graphics_Dwm\", \"Win32_UI_Input_KeyboardAndMouse\", \"Win32_UI_WindowsAndMessaging\"]\nversion = \"0.61.2\"\n\n[target.\"cfg(any(target_os=\\\"linux\\\", target_os=\\\"dragonfly\\\", target_os=\\\"freebsd\\\", target_os=\\\"netbsd\\\", target_os=\\\"openbsd\\\"))\".dependencies.smithay-clipboard]\noptional = true\nversion = \"0.7.2\"\n\n[target.\"cfg(any(target_os=\\\"linux\\\", target_os=\\\"dragonfly\\\", target_os=\\\"freebsd\\\", target_os=\\\"netbsd\\\", target_os=\\\"openbsd\\\"))\".dependencies.parking_lot]\noptional = true\nversion = \"0.12.5\"\n\n[target.\"cfg(any(target_os=\\\"linux\\\", target_os=\\\"dragonfly\\\", target_os=\\\"freebsd\\\", target_os=\\\"netbsd\\\", target_os=\\\"openbsd\\\"))\".dependencies.wayland-cursor]\noptional = true\nversion = \"0.31.14\"\ndefault-features = false\n\n[target.\"cfg(not(target_os = \\\"android\\\"))\".dependencies.arboard]\noptional = true\nfeatures = [\"image-data\"]\nversion = \"3.6\"\ndefault-features = false\n\n[target.\"cfg(target_os = \\\"linux\\\")\".dev-dependencies.softbuffer]\nversion = \"0.4.8\"\ndefault-features = false\nfeatures = [\"wayland\", \"wayland-dlopen\"]\n\n[[example]]\nname = \"clipboard_image_probe\"\nrequired-features = [\"wayland\", \"clipboard-image\"]\n", - "dest": "cargo/vendor/egui-winit", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui-winit", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/egui-winit", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui-winit", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/egui_extras\" \"cargo/vendor/egui_extras\"" + "mkdir -p \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6\" && cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/egui_extras\" \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui_extras\"" ] }, { "type": "inline", "contents": "[package]\nname = \"egui_extras\"\nversion = \"0.37.0\"\nauthors = [\"Dominik R\u00f6ssler \", \"Emil Ernerfeldt \", \"Ren\u00e9 R\u00f6ssler \"]\ndescription = \"Extra functionality and widgets for the egui GUI library\"\nedition = \"2024\"\nrust-version = \"1.95\"\nhomepage = \"https://github.com/emilk/egui\"\nlicense = \"MIT OR Apache-2.0\"\nreadme = \"README.md\"\nrepository = \"https://github.com/emilk/egui\"\ncategories = [\"gui\", \"game-development\"]\nkeywords = [\"gui\", \"imgui\", \"immediate\", \"portable\", \"gamedev\"]\ninclude = [\"../../LICENSE-APACHE\", \"../../LICENSE-MIT\", \"**/*.rs\", \"Cargo.toml\"]\n\n[package.metadata.docs.rs]\nall-features = true\nrustdoc-args = [\"--generate-link-to-definition\"]\n\n[lints.rust]\nunsafe_code = \"deny\"\ntrivial_numeric_casts = \"warn\"\nunused_import_braces = \"warn\"\nunused_lifetimes = \"warn\"\ntrivial_casts = \"allow\"\nunused_qualifications = \"allow\"\n\n[lints.rust.future_incompatible]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.nonstandard_style]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.rust_2018_idioms]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(web_sys_unstable_apis)\"]\n\n[lints.rustdoc]\nall = \"warn\"\n\n[lints.clippy]\nallow_attributes = \"warn\"\nas_ptr_cast_mut = \"warn\"\nbranches_sharing_code = \"warn\"\nclear_with_drain = \"warn\"\nclone_on_ref_ptr = \"warn\"\ncoerce_container_to_any = \"warn\"\ndbg_macro = \"warn\"\ndebug_assert_with_mut_call = \"warn\"\ndefault_union_representation = \"warn\"\nderive_partial_eq_without_eq = \"warn\"\ndisallowed_script_idents = \"warn\"\ndoc_include_without_cfg = \"warn\"\nempty_enum_variants_with_brackets = \"warn\"\nequatable_if_let = \"warn\"\nexit = \"warn\"\nfallible_impl_from = \"warn\"\nfloat_cmp_const = \"warn\"\nfn_to_numeric_cast_any = \"warn\"\nget_unwrap = \"warn\"\nimprecise_flops = \"warn\"\ninfinite_loop = \"warn\"\niter_on_empty_collections = \"warn\"\niter_on_single_items = \"warn\"\niter_over_hash_type = \"warn\"\nlarge_include_file = \"warn\"\nlarge_stack_frames = \"warn\"\nliteral_string_with_formatting_args = \"warn\"\nlossy_float_literal = \"warn\"\nmap_err_ignore = \"warn\"\nmem_forget = \"warn\"\nmissing_assert_message = \"warn\"\nmutex_integer = \"warn\"\nneedless_pass_by_ref_mut = \"warn\"\nneedless_type_cast = \"warn\"\nnon_zero_suggestions = \"warn\"\nnonstandard_macro_braces = \"warn\"\nor_fun_call = \"warn\"\npath_buf_push_overwrite = \"warn\"\npathbuf_init_then_push = \"warn\"\nprecedence_bits = \"warn\"\nprint_stderr = \"warn\"\nprint_stdout = \"warn\"\npub_without_shorthand = \"warn\"\nrc_mutex = \"warn\"\nredundant_type_annotations = \"warn\"\nref_patterns = \"warn\"\nrest_pat_in_fully_bound_structs = \"warn\"\nreturn_and_then = \"warn\"\nset_contains_or_insert = \"warn\"\nsingle_option_map = \"warn\"\nstd_instead_of_core = \"warn\"\nstr_to_string = \"warn\"\nstring_add = \"warn\"\nstring_lit_as_bytes = \"warn\"\nstring_lit_chars_any = \"warn\"\nsuspicious_xor_used_as_pow = \"warn\"\ntodo = \"warn\"\ntoo_long_first_doc_paragraph = \"warn\"\ntrailing_empty_array = \"warn\"\ntrait_duplication_in_bounds = \"warn\"\ntuple_array_conversions = \"warn\"\nundocumented_unsafe_blocks = \"warn\"\nunimplemented = \"warn\"\nuninhabited_references = \"warn\"\nunnecessary_safety_comment = \"warn\"\nunnecessary_safety_doc = \"warn\"\nunnecessary_self_imports = \"warn\"\nunnecessary_struct_initialization = \"warn\"\nunused_peekable = \"warn\"\nunused_rounding = \"warn\"\nunused_trait_names = \"warn\"\nunwrap_used = \"warn\"\nuse_self = \"warn\"\nuseless_let_if_seq = \"warn\"\nverbose_file_reads = \"warn\"\ncast_lossless = \"allow\"\ncast_possible_truncation = \"allow\"\ncast_possible_wrap = \"allow\"\ncast_precision_loss = \"allow\"\ncast_sign_loss = \"allow\"\ncomparison_chain = \"allow\"\ndefault_trait_access = \"allow\"\nfloat_cmp = \"allow\"\ninline_always = \"allow\"\nitems_after_statements = \"allow\"\nmany_single_char_names = \"allow\"\nmissing_panics_doc = \"allow\"\nmust_use_candidate = \"allow\"\nredundant_closure_for_method_calls = \"allow\"\nreturn_self_not_must_use = \"allow\"\nshould_panic_without_expect = \"allow\"\nsimilar_names = \"allow\"\nstruct_excessive_bools = \"allow\"\nstruct_field_names = \"allow\"\ntoo_many_lines = \"allow\"\ntrivially_copy_pass_by_ref = \"allow\"\nunreadable_literal = \"allow\"\nused_underscore_binding = \"allow\"\nassigning_clones = \"allow\"\nmanual_range_contains = \"allow\"\nmap_unwrap_or = \"allow\"\nmultiple_crate_versions = \"allow\"\nwildcard_imports = \"allow\"\nlet_underscore_must_use = \"allow\"\nlet_underscore_untyped = \"allow\"\nself_named_module_files = \"allow\"\nsignificant_drop_tightening = \"allow\"\n\n[lints.clippy.all]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.cargo]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.pedantic]\nlevel = \"warn\"\npriority = -1\n\n[lib]\n\n[features]\ndefault = [\"dep:mime_guess2\"]\nall_loaders = [\"file\", \"http\", \"image\", \"svg\", \"gif\", \"webp\"]\ndatepicker = [\"jiff\"]\nfile = [\"dep:mime_guess2\"]\ngif = [\"image\", \"image/gif\"]\nwebp = [\"image\", \"image/webp\"]\nhttp = [\"dep:ehttp\"]\nimage = [\"dep:image\"]\nserde = [\"egui/serde\", \"enum-map/serde\", \"dep:serde\"]\nsvg = [\"resvg\"]\nsvg_text = [\"svg\", \"resvg/text\", \"resvg/system-fonts\"]\nsvg_images = [\"svg\", \"resvg/raster-images\"]\nsyntect = [\"dep:syntect\"]\n\n[dependencies]\nenum-map = \"3.1\"\nitertools = \"0.15.0\"\n\n[dependencies.egui]\ndefault-features = false\nversion = \"0.37.0\"\npath = \"crates/egui\"\n\n[dependencies.ahash]\nversion = \"0.8.12\"\ndefault-features = false\nfeatures = [\"no-rng\", \"std\"]\n\n[dependencies.log]\nversion = \"0.4.34\"\nfeatures = [\"std\"]\n\n[dependencies.profiling]\nversion = \"1.0\"\ndefault-features = false\n\n[dependencies.serde]\noptional = true\nversion = \"1.0\"\nfeatures = [\"derive\"]\n\n[dependencies.jiff]\noptional = true\nfeatures = [\"std\", \"tz-system\", \"js\"]\nversion = \"0.2.35\"\ndefault-features = false\n\n[dependencies.document-features]\noptional = true\nversion = \"0.2.12\"\n\n[dependencies.image]\noptional = true\nversion = \"0.25.10\"\ndefault-features = false\n\n[dependencies.mime_guess2]\noptional = true\nversion = \"2.3\"\ndefault-features = false\n\n[dependencies.syntect]\noptional = true\nfeatures = [\"default-fancy\"]\nversion = \"5.3\"\ndefault-features = false\n\n[dependencies.resvg]\noptional = true\nversion = \"0.45.1\"\ndefault-features = false\n\n[dependencies.ehttp]\noptional = true\nversion = \"0.7.1\"\ndefault-features = false\n\n[dev-dependencies]\ntempfile = \"3.27\"\n\n[dev-dependencies.egui]\nfeatures = [\"default_fonts\"]\nversion = \"0.37.0\"\npath = \"crates/egui\"\ndefault-features = false\n\n[dev-dependencies.egui_kittest]\npath = \"../egui_kittest\"\nfeatures = [\"snapshot\", \"wgpu\"]\n", - "dest": "cargo/vendor/egui_extras", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui_extras", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/egui_extras", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui_extras", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/egui_glow\" \"cargo/vendor/egui_glow\"" + "mkdir -p \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6\" && cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/egui_glow\" \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui_glow\"" ] }, { "type": "inline", "contents": "[package]\nname = \"egui_glow\"\nversion = \"0.37.0\"\nauthors = [\"Emil Ernerfeldt \"]\ndescription = \"Bindings for using egui natively using the glow library\"\nedition = \"2024\"\nrust-version = \"1.95\"\nhomepage = \"https://github.com/emilk/egui/tree/main/crates/egui_glow\"\nlicense = \"MIT OR Apache-2.0\"\nreadme = \"README.md\"\nrepository = \"https://github.com/emilk/egui/tree/main/crates/egui_glow\"\ncategories = [\"gui\", \"game-development\"]\nkeywords = [\"glow\", \"egui\", \"gui\", \"gamedev\"]\ninclude = [\"../../LICENSE-APACHE\", \"../../LICENSE-MIT\", \"**/*.rs\", \"Cargo.toml\", \"src/shader/*.glsl\"]\n\n[package.metadata.docs.rs]\nall-features = true\nrustdoc-args = [\"--generate-link-to-definition\"]\n\n[lints.rust]\nunsafe_code = \"deny\"\ntrivial_numeric_casts = \"warn\"\nunused_import_braces = \"warn\"\nunused_lifetimes = \"warn\"\ntrivial_casts = \"allow\"\nunused_qualifications = \"allow\"\n\n[lints.rust.future_incompatible]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.nonstandard_style]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.rust_2018_idioms]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(web_sys_unstable_apis)\"]\n\n[lints.rustdoc]\nall = \"warn\"\n\n[lints.clippy]\nallow_attributes = \"warn\"\nas_ptr_cast_mut = \"warn\"\nbranches_sharing_code = \"warn\"\nclear_with_drain = \"warn\"\nclone_on_ref_ptr = \"warn\"\ncoerce_container_to_any = \"warn\"\ndbg_macro = \"warn\"\ndebug_assert_with_mut_call = \"warn\"\ndefault_union_representation = \"warn\"\nderive_partial_eq_without_eq = \"warn\"\ndisallowed_script_idents = \"warn\"\ndoc_include_without_cfg = \"warn\"\nempty_enum_variants_with_brackets = \"warn\"\nequatable_if_let = \"warn\"\nexit = \"warn\"\nfallible_impl_from = \"warn\"\nfloat_cmp_const = \"warn\"\nfn_to_numeric_cast_any = \"warn\"\nget_unwrap = \"warn\"\nimprecise_flops = \"warn\"\ninfinite_loop = \"warn\"\niter_on_empty_collections = \"warn\"\niter_on_single_items = \"warn\"\niter_over_hash_type = \"warn\"\nlarge_include_file = \"warn\"\nlarge_stack_frames = \"warn\"\nliteral_string_with_formatting_args = \"warn\"\nlossy_float_literal = \"warn\"\nmap_err_ignore = \"warn\"\nmem_forget = \"warn\"\nmissing_assert_message = \"warn\"\nmutex_integer = \"warn\"\nneedless_pass_by_ref_mut = \"warn\"\nneedless_type_cast = \"warn\"\nnon_zero_suggestions = \"warn\"\nnonstandard_macro_braces = \"warn\"\nor_fun_call = \"warn\"\npath_buf_push_overwrite = \"warn\"\npathbuf_init_then_push = \"warn\"\nprecedence_bits = \"warn\"\nprint_stderr = \"warn\"\nprint_stdout = \"warn\"\npub_without_shorthand = \"warn\"\nrc_mutex = \"warn\"\nredundant_type_annotations = \"warn\"\nref_patterns = \"warn\"\nrest_pat_in_fully_bound_structs = \"warn\"\nreturn_and_then = \"warn\"\nset_contains_or_insert = \"warn\"\nsingle_option_map = \"warn\"\nstd_instead_of_core = \"warn\"\nstr_to_string = \"warn\"\nstring_add = \"warn\"\nstring_lit_as_bytes = \"warn\"\nstring_lit_chars_any = \"warn\"\nsuspicious_xor_used_as_pow = \"warn\"\ntodo = \"warn\"\ntoo_long_first_doc_paragraph = \"warn\"\ntrailing_empty_array = \"warn\"\ntrait_duplication_in_bounds = \"warn\"\ntuple_array_conversions = \"warn\"\nundocumented_unsafe_blocks = \"warn\"\nunimplemented = \"warn\"\nuninhabited_references = \"warn\"\nunnecessary_safety_comment = \"warn\"\nunnecessary_safety_doc = \"warn\"\nunnecessary_self_imports = \"warn\"\nunnecessary_struct_initialization = \"warn\"\nunused_peekable = \"warn\"\nunused_rounding = \"warn\"\nunused_trait_names = \"warn\"\nunwrap_used = \"warn\"\nuse_self = \"warn\"\nuseless_let_if_seq = \"warn\"\nverbose_file_reads = \"warn\"\ncast_lossless = \"allow\"\ncast_possible_truncation = \"allow\"\ncast_possible_wrap = \"allow\"\ncast_precision_loss = \"allow\"\ncast_sign_loss = \"allow\"\ncomparison_chain = \"allow\"\ndefault_trait_access = \"allow\"\nfloat_cmp = \"allow\"\ninline_always = \"allow\"\nitems_after_statements = \"allow\"\nmany_single_char_names = \"allow\"\nmissing_panics_doc = \"allow\"\nmust_use_candidate = \"allow\"\nredundant_closure_for_method_calls = \"allow\"\nreturn_self_not_must_use = \"allow\"\nshould_panic_without_expect = \"allow\"\nsimilar_names = \"allow\"\nstruct_excessive_bools = \"allow\"\nstruct_field_names = \"allow\"\ntoo_many_lines = \"allow\"\ntrivially_copy_pass_by_ref = \"allow\"\nunreadable_literal = \"allow\"\nused_underscore_binding = \"allow\"\nassigning_clones = \"allow\"\nmanual_range_contains = \"allow\"\nmap_unwrap_or = \"allow\"\nmultiple_crate_versions = \"allow\"\nwildcard_imports = \"allow\"\nlet_underscore_must_use = \"allow\"\nlet_underscore_untyped = \"allow\"\nself_named_module_files = \"allow\"\nsignificant_drop_tightening = \"allow\"\n\n[lints.clippy.all]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.cargo]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.pedantic]\nlevel = \"warn\"\npriority = -1\n\n[features]\ndefault = []\nclipboard = [\"egui-winit?/clipboard\"]\nlinks = [\"egui-winit?/links\"]\nwinit = [\"egui-winit\", \"dep:winit\"]\nwayland = [\"winit?/wayland\"]\nx11 = [\"winit?/x11\"]\n\n[dependencies]\nbytemuck = \"1.25\"\nglow = \"0.17.0\"\n\n[dependencies.egui]\ndefault-features = false\nfeatures = [\"bytemuck\"]\nversion = \"0.37.0\"\npath = \"crates/egui\"\n\n[dependencies.egui-winit]\noptional = true\ndefault-features = false\nversion = \"0.37.0\"\npath = \"crates/egui-winit\"\n\n[dependencies.log]\nversion = \"0.4.34\"\nfeatures = [\"std\"]\n\n[dependencies.profiling]\nversion = \"1.0\"\ndefault-features = false\n\n[dependencies.document-features]\noptional = true\nversion = \"0.2.12\"\n\n[dependencies.winit]\noptional = true\ndefault-features = false\nfeatures = [\"rwh_06\"]\nversion = \"0.30.13\"\n\n[dev-dependencies.glutin]\ndefault-features = false\nversion = \"0.32.3\"\n\n[dev-dependencies.glutin-winit]\ndefault-features = false\nversion = \"0.5.0\"\n\n[[example]]\nname = \"pure_glow\"\nrequired-features = [\"winit\", \"egui/default_fonts\"]\n", - "dest": "cargo/vendor/egui_glow", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui_glow", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/egui_glow", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui_glow", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/egui_kittest\" \"cargo/vendor/egui_kittest\"" + "mkdir -p \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6\" && cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/egui_kittest\" \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui_kittest\"" ] }, { "type": "inline", "contents": "[package]\nname = \"egui_kittest\"\nversion = \"0.37.0\"\nauthors = [\"Lucas Meurer \", \"Emil Ernerfeldt \"]\ndescription = \"Testing library for egui based on kittest and AccessKit\"\nedition = \"2024\"\nrust-version = \"1.95\"\nhomepage = \"https://github.com/emilk/egui\"\nlicense = \"MIT OR Apache-2.0\"\nreadme = \"./README.md\"\nrepository = \"https://github.com/emilk/egui\"\ncategories = [\"gui\", \"development-tools::testing\", \"accessibility\"]\nkeywords = [\"gui\", \"immediate\", \"egui\", \"testing\", \"accesskit\"]\ninclude = [\"../../LICENSE-APACHE\", \"../../LICENSE-MIT\", \"**/*.rs\", \"Cargo.toml\"]\n\n[package.metadata.docs.rs]\nall-features = true\nrustdoc-args = [\"--generate-link-to-definition\"]\n\n[features]\nwgpu = [\"dep:egui-wgpu\", \"dep:pollster\", \"dep:image\", \"dep:wgpu\", \"eframe?/wgpu\"]\nsnapshot = [\"dep:dify\", \"dep:image\", \"dep:open\", \"dep:tempfile\", \"image/png\"]\nvideo = [\"snapshot\"]\neframe = [\"dep:eframe\", \"eframe/accesskit\"]\nx11 = [\"eframe?/x11\"]\n\n[dependencies.egui]\nversion = \"0.37.0\"\npath = \"crates/egui\"\ndefault-features = false\n\n[dependencies.eframe]\noptional = true\nversion = \"0.37.0\"\npath = \"crates/eframe\"\ndefault-features = false\n\n[dependencies.kittest]\nversion = \"0.5.0\"\n\n[dependencies.log]\nversion = \"0.4.34\"\nfeatures = [\"std\"]\n\n[dependencies.serde]\nversion = \"1.0\"\nfeatures = [\"derive\"]\n\n[dependencies.toml]\nfeatures = [\"parse\", \"serde\"]\nversion = \"1.1\"\ndefault-features = false\n\n[dependencies.egui-wgpu]\noptional = true\nversion = \"0.37.0\"\npath = \"crates/egui-wgpu\"\ndefault-features = false\n\n[dependencies.pollster]\noptional = true\nversion = \"1.0\"\n\n[dependencies.image]\noptional = true\nversion = \"0.25.10\"\ndefault-features = false\n\n[dependencies.wgpu]\nfeatures = [\"metal\", \"dx12\", \"vulkan\", \"gles\", \"std\"]\noptional = true\nversion = \"30.0\"\ndefault-features = false\n\n[dependencies.dify]\noptional = true\nversion = \"0.8.0\"\ndefault-features = false\n\n[dependencies.document-features]\noptional = true\nversion = \"0.2.12\"\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies.open]\noptional = true\nversion = \"5.4\"\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dependencies.tempfile]\noptional = true\nversion = \"3.27\"\n\n[dev-dependencies]\ntempfile = \"3.27\"\n\n[dev-dependencies.egui]\nfeatures = [\"default_fonts\", \"monochrome_emoji_fonts\"]\nversion = \"0.37.0\"\npath = \"crates/egui\"\ndefault-features = false\n\n[dev-dependencies.image]\nfeatures = [\"png\"]\nversion = \"0.25.10\"\ndefault-features = false\n\n[dev-dependencies.egui_extras]\nfeatures = [\"image\", \"http\"]\nversion = \"0.37.0\"\npath = \"crates/egui_extras\"\ndefault-features = false\n\n[lints.rust]\nunsafe_code = \"deny\"\ntrivial_numeric_casts = \"warn\"\nunused_import_braces = \"warn\"\nunused_lifetimes = \"warn\"\ntrivial_casts = \"allow\"\nunused_qualifications = \"allow\"\n\n[lints.rust.future_incompatible]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.nonstandard_style]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.rust_2018_idioms]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(web_sys_unstable_apis)\"]\n\n[lints.rustdoc]\nall = \"warn\"\n\n[lints.clippy]\nallow_attributes = \"warn\"\nas_ptr_cast_mut = \"warn\"\nbranches_sharing_code = \"warn\"\nclear_with_drain = \"warn\"\nclone_on_ref_ptr = \"warn\"\ncoerce_container_to_any = \"warn\"\ndbg_macro = \"warn\"\ndebug_assert_with_mut_call = \"warn\"\ndefault_union_representation = \"warn\"\nderive_partial_eq_without_eq = \"warn\"\ndisallowed_script_idents = \"warn\"\ndoc_include_without_cfg = \"warn\"\nempty_enum_variants_with_brackets = \"warn\"\nequatable_if_let = \"warn\"\nexit = \"warn\"\nfallible_impl_from = \"warn\"\nfloat_cmp_const = \"warn\"\nfn_to_numeric_cast_any = \"warn\"\nget_unwrap = \"warn\"\nimprecise_flops = \"warn\"\ninfinite_loop = \"warn\"\niter_on_empty_collections = \"warn\"\niter_on_single_items = \"warn\"\niter_over_hash_type = \"warn\"\nlarge_include_file = \"warn\"\nlarge_stack_frames = \"warn\"\nliteral_string_with_formatting_args = \"warn\"\nlossy_float_literal = \"warn\"\nmap_err_ignore = \"warn\"\nmem_forget = \"warn\"\nmissing_assert_message = \"warn\"\nmutex_integer = \"warn\"\nneedless_pass_by_ref_mut = \"warn\"\nneedless_type_cast = \"warn\"\nnon_zero_suggestions = \"warn\"\nnonstandard_macro_braces = \"warn\"\nor_fun_call = \"warn\"\npath_buf_push_overwrite = \"warn\"\npathbuf_init_then_push = \"warn\"\nprecedence_bits = \"warn\"\nprint_stderr = \"warn\"\nprint_stdout = \"warn\"\npub_without_shorthand = \"warn\"\nrc_mutex = \"warn\"\nredundant_type_annotations = \"warn\"\nref_patterns = \"warn\"\nrest_pat_in_fully_bound_structs = \"warn\"\nreturn_and_then = \"warn\"\nset_contains_or_insert = \"warn\"\nsingle_option_map = \"warn\"\nstd_instead_of_core = \"warn\"\nstr_to_string = \"warn\"\nstring_add = \"warn\"\nstring_lit_as_bytes = \"warn\"\nstring_lit_chars_any = \"warn\"\nsuspicious_xor_used_as_pow = \"warn\"\ntodo = \"warn\"\ntoo_long_first_doc_paragraph = \"warn\"\ntrailing_empty_array = \"warn\"\ntrait_duplication_in_bounds = \"warn\"\ntuple_array_conversions = \"warn\"\nundocumented_unsafe_blocks = \"warn\"\nunimplemented = \"warn\"\nuninhabited_references = \"warn\"\nunnecessary_safety_comment = \"warn\"\nunnecessary_safety_doc = \"warn\"\nunnecessary_self_imports = \"warn\"\nunnecessary_struct_initialization = \"warn\"\nunused_peekable = \"warn\"\nunused_rounding = \"warn\"\nunused_trait_names = \"warn\"\nunwrap_used = \"warn\"\nuse_self = \"warn\"\nuseless_let_if_seq = \"warn\"\nverbose_file_reads = \"warn\"\ncast_lossless = \"allow\"\ncast_possible_truncation = \"allow\"\ncast_possible_wrap = \"allow\"\ncast_precision_loss = \"allow\"\ncast_sign_loss = \"allow\"\ncomparison_chain = \"allow\"\ndefault_trait_access = \"allow\"\nfloat_cmp = \"allow\"\ninline_always = \"allow\"\nitems_after_statements = \"allow\"\nmany_single_char_names = \"allow\"\nmissing_panics_doc = \"allow\"\nmust_use_candidate = \"allow\"\nredundant_closure_for_method_calls = \"allow\"\nreturn_self_not_must_use = \"allow\"\nshould_panic_without_expect = \"allow\"\nsimilar_names = \"allow\"\nstruct_excessive_bools = \"allow\"\nstruct_field_names = \"allow\"\ntoo_many_lines = \"allow\"\ntrivially_copy_pass_by_ref = \"allow\"\nunreadable_literal = \"allow\"\nused_underscore_binding = \"allow\"\nassigning_clones = \"allow\"\nmanual_range_contains = \"allow\"\nmap_unwrap_or = \"allow\"\nmultiple_crate_versions = \"allow\"\nwildcard_imports = \"allow\"\nlet_underscore_must_use = \"allow\"\nlet_underscore_untyped = \"allow\"\nself_named_module_files = \"allow\"\nsignificant_drop_tightening = \"allow\"\n\n[lints.clippy.all]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.cargo]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.pedantic]\nlevel = \"warn\"\npriority = -1\n", - "dest": "cargo/vendor/egui_kittest", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui_kittest", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/egui_kittest", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui_kittest", "dest-filename": ".cargo-checksum.json" }, { @@ -2575,19 +2575,19 @@ { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/emath\" \"cargo/vendor/emath\"" + "mkdir -p \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6\" && cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/emath\" \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/emath\"" ] }, { "type": "inline", "contents": "[package]\nname = \"emath\"\nversion = \"0.37.0\"\nauthors = [\"Emil Ernerfeldt \"]\ndescription = \"Minimal 2D math library for GUI work\"\nedition = \"2024\"\nrust-version = \"1.95\"\nhomepage = \"https://github.com/emilk/egui/tree/main/crates/emath\"\nlicense = \"MIT OR Apache-2.0\"\nreadme = \"README.md\"\nrepository = \"https://github.com/emilk/egui/tree/main/crates/emath\"\ncategories = [\"mathematics\", \"gui\"]\nkeywords = [\"math\", \"gui\"]\ninclude = [\"../../LICENSE-APACHE\", \"../../LICENSE-MIT\", \"**/*.rs\", \"Cargo.toml\"]\n\n[package.metadata.docs.rs]\nall-features = true\nrustdoc-args = [\"--generate-link-to-definition\"]\n\n[lints.rust]\nunsafe_code = \"deny\"\ntrivial_numeric_casts = \"warn\"\nunused_import_braces = \"warn\"\nunused_lifetimes = \"warn\"\ntrivial_casts = \"allow\"\nunused_qualifications = \"allow\"\n\n[lints.rust.future_incompatible]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.nonstandard_style]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.rust_2018_idioms]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(web_sys_unstable_apis)\"]\n\n[lints.rustdoc]\nall = \"warn\"\n\n[lints.clippy]\nallow_attributes = \"warn\"\nas_ptr_cast_mut = \"warn\"\nbranches_sharing_code = \"warn\"\nclear_with_drain = \"warn\"\nclone_on_ref_ptr = \"warn\"\ncoerce_container_to_any = \"warn\"\ndbg_macro = \"warn\"\ndebug_assert_with_mut_call = \"warn\"\ndefault_union_representation = \"warn\"\nderive_partial_eq_without_eq = \"warn\"\ndisallowed_script_idents = \"warn\"\ndoc_include_without_cfg = \"warn\"\nempty_enum_variants_with_brackets = \"warn\"\nequatable_if_let = \"warn\"\nexit = \"warn\"\nfallible_impl_from = \"warn\"\nfloat_cmp_const = \"warn\"\nfn_to_numeric_cast_any = \"warn\"\nget_unwrap = \"warn\"\nimprecise_flops = \"warn\"\ninfinite_loop = \"warn\"\niter_on_empty_collections = \"warn\"\niter_on_single_items = \"warn\"\niter_over_hash_type = \"warn\"\nlarge_include_file = \"warn\"\nlarge_stack_frames = \"warn\"\nliteral_string_with_formatting_args = \"warn\"\nlossy_float_literal = \"warn\"\nmap_err_ignore = \"warn\"\nmem_forget = \"warn\"\nmissing_assert_message = \"warn\"\nmutex_integer = \"warn\"\nneedless_pass_by_ref_mut = \"warn\"\nneedless_type_cast = \"warn\"\nnon_zero_suggestions = \"warn\"\nnonstandard_macro_braces = \"warn\"\nor_fun_call = \"warn\"\npath_buf_push_overwrite = \"warn\"\npathbuf_init_then_push = \"warn\"\nprecedence_bits = \"warn\"\nprint_stderr = \"warn\"\nprint_stdout = \"warn\"\npub_without_shorthand = \"warn\"\nrc_mutex = \"warn\"\nredundant_type_annotations = \"warn\"\nref_patterns = \"warn\"\nrest_pat_in_fully_bound_structs = \"warn\"\nreturn_and_then = \"warn\"\nset_contains_or_insert = \"warn\"\nsingle_option_map = \"warn\"\nstd_instead_of_core = \"warn\"\nstr_to_string = \"warn\"\nstring_add = \"warn\"\nstring_lit_as_bytes = \"warn\"\nstring_lit_chars_any = \"warn\"\nsuspicious_xor_used_as_pow = \"warn\"\ntodo = \"warn\"\ntoo_long_first_doc_paragraph = \"warn\"\ntrailing_empty_array = \"warn\"\ntrait_duplication_in_bounds = \"warn\"\ntuple_array_conversions = \"warn\"\nundocumented_unsafe_blocks = \"warn\"\nunimplemented = \"warn\"\nuninhabited_references = \"warn\"\nunnecessary_safety_comment = \"warn\"\nunnecessary_safety_doc = \"warn\"\nunnecessary_self_imports = \"warn\"\nunnecessary_struct_initialization = \"warn\"\nunused_peekable = \"warn\"\nunused_rounding = \"warn\"\nunused_trait_names = \"warn\"\nunwrap_used = \"warn\"\nuse_self = \"warn\"\nuseless_let_if_seq = \"warn\"\nverbose_file_reads = \"warn\"\ncast_lossless = \"allow\"\ncast_possible_truncation = \"allow\"\ncast_possible_wrap = \"allow\"\ncast_precision_loss = \"allow\"\ncast_sign_loss = \"allow\"\ncomparison_chain = \"allow\"\ndefault_trait_access = \"allow\"\nfloat_cmp = \"allow\"\ninline_always = \"allow\"\nitems_after_statements = \"allow\"\nmany_single_char_names = \"allow\"\nmissing_panics_doc = \"allow\"\nmust_use_candidate = \"allow\"\nredundant_closure_for_method_calls = \"allow\"\nreturn_self_not_must_use = \"allow\"\nshould_panic_without_expect = \"allow\"\nsimilar_names = \"allow\"\nstruct_excessive_bools = \"allow\"\nstruct_field_names = \"allow\"\ntoo_many_lines = \"allow\"\ntrivially_copy_pass_by_ref = \"allow\"\nunreadable_literal = \"allow\"\nused_underscore_binding = \"allow\"\nassigning_clones = \"allow\"\nmanual_range_contains = \"allow\"\nmap_unwrap_or = \"allow\"\nmultiple_crate_versions = \"allow\"\nwildcard_imports = \"allow\"\nlet_underscore_must_use = \"allow\"\nlet_underscore_untyped = \"allow\"\nself_named_module_files = \"allow\"\nsignificant_drop_tightening = \"allow\"\n\n[lints.clippy.all]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.cargo]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.pedantic]\nlevel = \"warn\"\npriority = -1\n\n[lib]\n\n[features]\ndefault = []\n\n[dependencies.bytemuck]\noptional = true\nfeatures = [\"derive\"]\nversion = \"1.25\"\n\n[dependencies.document-features]\noptional = true\nversion = \"0.2.12\"\n\n[dependencies.mint]\noptional = true\nversion = \"0.5.9\"\n\n[dependencies.serde]\noptional = true\nversion = \"1.0\"\nfeatures = [\"derive\"]\n", - "dest": "cargo/vendor/emath", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/emath", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/emath", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/emath", "dest-filename": ".cargo-checksum.json" }, { @@ -2684,37 +2684,37 @@ { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/epaint\" \"cargo/vendor/epaint\"" + "mkdir -p \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6\" && cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/epaint\" \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/epaint\"" ] }, { "type": "inline", "contents": "[package]\nname = \"epaint\"\nversion = \"0.37.0\"\nauthors = [\"Emil Ernerfeldt \"]\ndescription = \"Minimal 2D graphics library for GUI work\"\nedition = \"2024\"\nrust-version = \"1.95\"\nhomepage = \"https://github.com/emilk/egui/tree/main/crates/epaint\"\nlicense = \"MIT OR Apache-2.0\"\nreadme = \"README.md\"\nrepository = \"https://github.com/emilk/egui/tree/main/crates/epaint\"\ncategories = [\"graphics\", \"gui\"]\nkeywords = [\"graphics\", \"gui\", \"egui\"]\ninclude = [\"../../LICENSE-APACHE\", \"../../LICENSE-MIT\", \"**/*.rs\", \"Cargo.toml\"]\n\n[package.metadata.docs.rs]\nall-features = true\nrustdoc-args = [\"--generate-link-to-definition\"]\n\n[lints.rust]\nunsafe_code = \"deny\"\ntrivial_numeric_casts = \"warn\"\nunused_import_braces = \"warn\"\nunused_lifetimes = \"warn\"\ntrivial_casts = \"allow\"\nunused_qualifications = \"allow\"\n\n[lints.rust.future_incompatible]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.nonstandard_style]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.rust_2018_idioms]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(web_sys_unstable_apis)\"]\n\n[lints.rustdoc]\nall = \"warn\"\n\n[lints.clippy]\nallow_attributes = \"warn\"\nas_ptr_cast_mut = \"warn\"\nbranches_sharing_code = \"warn\"\nclear_with_drain = \"warn\"\nclone_on_ref_ptr = \"warn\"\ncoerce_container_to_any = \"warn\"\ndbg_macro = \"warn\"\ndebug_assert_with_mut_call = \"warn\"\ndefault_union_representation = \"warn\"\nderive_partial_eq_without_eq = \"warn\"\ndisallowed_script_idents = \"warn\"\ndoc_include_without_cfg = \"warn\"\nempty_enum_variants_with_brackets = \"warn\"\nequatable_if_let = \"warn\"\nexit = \"warn\"\nfallible_impl_from = \"warn\"\nfloat_cmp_const = \"warn\"\nfn_to_numeric_cast_any = \"warn\"\nget_unwrap = \"warn\"\nimprecise_flops = \"warn\"\ninfinite_loop = \"warn\"\niter_on_empty_collections = \"warn\"\niter_on_single_items = \"warn\"\niter_over_hash_type = \"warn\"\nlarge_include_file = \"warn\"\nlarge_stack_frames = \"warn\"\nliteral_string_with_formatting_args = \"warn\"\nlossy_float_literal = \"warn\"\nmap_err_ignore = \"warn\"\nmem_forget = \"warn\"\nmissing_assert_message = \"warn\"\nmutex_integer = \"warn\"\nneedless_pass_by_ref_mut = \"warn\"\nneedless_type_cast = \"warn\"\nnon_zero_suggestions = \"warn\"\nnonstandard_macro_braces = \"warn\"\nor_fun_call = \"warn\"\npath_buf_push_overwrite = \"warn\"\npathbuf_init_then_push = \"warn\"\nprecedence_bits = \"warn\"\nprint_stderr = \"warn\"\nprint_stdout = \"warn\"\npub_without_shorthand = \"warn\"\nrc_mutex = \"warn\"\nredundant_type_annotations = \"warn\"\nref_patterns = \"warn\"\nrest_pat_in_fully_bound_structs = \"warn\"\nreturn_and_then = \"warn\"\nset_contains_or_insert = \"warn\"\nsingle_option_map = \"warn\"\nstd_instead_of_core = \"warn\"\nstr_to_string = \"warn\"\nstring_add = \"warn\"\nstring_lit_as_bytes = \"warn\"\nstring_lit_chars_any = \"warn\"\nsuspicious_xor_used_as_pow = \"warn\"\ntodo = \"warn\"\ntoo_long_first_doc_paragraph = \"warn\"\ntrailing_empty_array = \"warn\"\ntrait_duplication_in_bounds = \"warn\"\ntuple_array_conversions = \"warn\"\nundocumented_unsafe_blocks = \"warn\"\nunimplemented = \"warn\"\nuninhabited_references = \"warn\"\nunnecessary_safety_comment = \"warn\"\nunnecessary_safety_doc = \"warn\"\nunnecessary_self_imports = \"warn\"\nunnecessary_struct_initialization = \"warn\"\nunused_peekable = \"warn\"\nunused_rounding = \"warn\"\nunused_trait_names = \"warn\"\nunwrap_used = \"warn\"\nuse_self = \"warn\"\nuseless_let_if_seq = \"warn\"\nverbose_file_reads = \"warn\"\ncast_lossless = \"allow\"\ncast_possible_truncation = \"allow\"\ncast_possible_wrap = \"allow\"\ncast_precision_loss = \"allow\"\ncast_sign_loss = \"allow\"\ncomparison_chain = \"allow\"\ndefault_trait_access = \"allow\"\nfloat_cmp = \"allow\"\ninline_always = \"allow\"\nitems_after_statements = \"allow\"\nmany_single_char_names = \"allow\"\nmissing_panics_doc = \"allow\"\nmust_use_candidate = \"allow\"\nredundant_closure_for_method_calls = \"allow\"\nreturn_self_not_must_use = \"allow\"\nshould_panic_without_expect = \"allow\"\nsimilar_names = \"allow\"\nstruct_excessive_bools = \"allow\"\nstruct_field_names = \"allow\"\ntoo_many_lines = \"allow\"\ntrivially_copy_pass_by_ref = \"allow\"\nunreadable_literal = \"allow\"\nused_underscore_binding = \"allow\"\nassigning_clones = \"allow\"\nmanual_range_contains = \"allow\"\nmap_unwrap_or = \"allow\"\nmultiple_crate_versions = \"allow\"\nwildcard_imports = \"allow\"\nlet_underscore_must_use = \"allow\"\nlet_underscore_untyped = \"allow\"\nself_named_module_files = \"allow\"\nsignificant_drop_tightening = \"allow\"\n\n[lints.clippy.all]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.cargo]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.pedantic]\nlevel = \"warn\"\npriority = -1\n\n[lib]\n\n[features]\ndefault = []\nbytemuck = [\"dep:bytemuck\", \"emath/bytemuck\", \"ecolor/bytemuck\"]\ncint = [\"ecolor/cint\"]\ncolor-hex = [\"ecolor/color-hex\"]\ncolor_fonts = [\"vello_cpu/png\", \"vello_cpu/text\"]\ndefault_fonts = [\"epaint_default_fonts\"]\nmint = [\"emath/mint\"]\nmonochrome_emoji_fonts = [\"default_fonts\", \"epaint_default_fonts/monochrome_emoji_fonts\"]\nrayon = [\"dep:rayon\"]\nserde = [\"dep:serde\", \"ahash/serde\", \"ecolor/serde\", \"emath/serde\", \"font-types/serde\", \"smallvec/serde\"]\nunity = []\n_override_unity = []\n\n[dependencies]\nharfrust = \"0.12.0\"\nnohash-hasher = \"0.2.0\"\nparking_lot = \"0.12.5\"\nself_cell = \"1.3\"\nsmallvec = \"1.16\"\nunicode-general-category = \"1.1\"\nunicode-segmentation = \"1.13\"\n\n[dependencies.emath]\nversion = \"0.37.0\"\npath = \"crates/emath\"\ndefault-features = false\n\n[dependencies.ecolor]\nversion = \"0.37.0\"\npath = \"crates/ecolor\"\ndefault-features = false\n\n[dependencies.ahash]\nversion = \"0.8.12\"\ndefault-features = false\nfeatures = [\"no-rng\", \"std\"]\n\n[dependencies.font-types]\nversion = \"0.12.4\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dependencies.log]\nversion = \"0.4.34\"\nfeatures = [\"std\"]\n\n[dependencies.profiling]\nversion = \"1.0\"\ndefault-features = false\n\n[dependencies.skrifa]\nversion = \"0.44.0\"\ndefault-features = false\nfeatures = [\"std\", \"autohint_shaping\"]\n\n[dependencies.unicode-bidi]\nversion = \"0.3.18\"\ndefault-features = false\nfeatures = [\"hardcoded-data\", \"std\"]\n\n[dependencies.unicode-properties]\nversion = \"0.1.4\"\ndefault-features = false\nfeatures = [\"emoji\"]\n\n[dependencies.vello_cpu]\nversion = \"0.2.0\"\ndefault-features = false\nfeatures = [\"std\", \"u8_pipeline\", \"f32_pipeline\"]\n\n[dependencies.bytemuck]\noptional = true\nfeatures = [\"derive\"]\nversion = \"1.25\"\n\n[dependencies.document-features]\noptional = true\nversion = \"0.2.12\"\n\n[dependencies.rayon]\noptional = true\nversion = \"1.12\"\n\n[dependencies.serde]\noptional = true\nfeatures = [\"derive\", \"rc\", \"derive\"]\nversion = \"1.0\"\n\n[dependencies.epaint_default_fonts]\noptional = true\nversion = \"0.37.0\"\npath = \"crates/epaint_default_fonts\"\n\n[dev-dependencies]\nmimalloc = \"0.1.52\"\nsimilar-asserts = \"2.0\"\n\n[dev-dependencies.criterion]\nversion = \"0.8.2\"\ndefault-features = false\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dev-dependencies.vello_cpu]\nfeatures = [\"multithreading\", \"std\", \"u8_pipeline\", \"f32_pipeline\"]\nversion = \"0.2.0\"\ndefault-features = false\n\n[[bench]]\nname = \"benchmark\"\nharness = false\n", - "dest": "cargo/vendor/epaint", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/epaint", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/epaint", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/epaint", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/epaint_default_fonts\" \"cargo/vendor/epaint_default_fonts\"" + "mkdir -p \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6\" && cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/epaint_default_fonts\" \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/epaint_default_fonts\"" ] }, { "type": "inline", "contents": "[package]\nname = \"epaint_default_fonts\"\nversion = \"0.37.0\"\nauthors = [\"Emil Ernerfeldt \"]\ndescription = \"Default fonts for use in epaint / egui\"\nedition = \"2024\"\nrust-version = \"1.95\"\nhomepage = \"https://github.com/emilk/egui/tree/main/crates/epaint_default_fonts\"\nlicense = \"(MIT OR Apache-2.0) AND OFL-1.1 AND Ubuntu-font-1.0\"\nreadme = \"README.md\"\nrepository = \"https://github.com/emilk/egui/tree/main/crates/epaint_default_fonts\"\ncategories = [\"graphics\", \"gui\"]\nkeywords = [\"graphics\", \"gui\", \"egui\"]\ninclude = [\"../../LICENSE-APACHE\", \"../../LICENSE-MIT\", \"**/*.rs\", \"Cargo.toml\", \"fonts/*.ttf\", \"fonts/*.txt\", \"fonts/OFL.txt\", \"fonts/UFL.txt\"]\n\n[package.metadata.docs.rs]\nall-features = true\nrustdoc-args = [\"--generate-link-to-definition\"]\n\n[lints.rust]\nunsafe_code = \"deny\"\ntrivial_numeric_casts = \"warn\"\nunused_import_braces = \"warn\"\nunused_lifetimes = \"warn\"\ntrivial_casts = \"allow\"\nunused_qualifications = \"allow\"\n\n[lints.rust.future_incompatible]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.nonstandard_style]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.rust_2018_idioms]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(web_sys_unstable_apis)\"]\n\n[lints.rustdoc]\nall = \"warn\"\n\n[lints.clippy]\nallow_attributes = \"warn\"\nas_ptr_cast_mut = \"warn\"\nbranches_sharing_code = \"warn\"\nclear_with_drain = \"warn\"\nclone_on_ref_ptr = \"warn\"\ncoerce_container_to_any = \"warn\"\ndbg_macro = \"warn\"\ndebug_assert_with_mut_call = \"warn\"\ndefault_union_representation = \"warn\"\nderive_partial_eq_without_eq = \"warn\"\ndisallowed_script_idents = \"warn\"\ndoc_include_without_cfg = \"warn\"\nempty_enum_variants_with_brackets = \"warn\"\nequatable_if_let = \"warn\"\nexit = \"warn\"\nfallible_impl_from = \"warn\"\nfloat_cmp_const = \"warn\"\nfn_to_numeric_cast_any = \"warn\"\nget_unwrap = \"warn\"\nimprecise_flops = \"warn\"\ninfinite_loop = \"warn\"\niter_on_empty_collections = \"warn\"\niter_on_single_items = \"warn\"\niter_over_hash_type = \"warn\"\nlarge_include_file = \"warn\"\nlarge_stack_frames = \"warn\"\nliteral_string_with_formatting_args = \"warn\"\nlossy_float_literal = \"warn\"\nmap_err_ignore = \"warn\"\nmem_forget = \"warn\"\nmissing_assert_message = \"warn\"\nmutex_integer = \"warn\"\nneedless_pass_by_ref_mut = \"warn\"\nneedless_type_cast = \"warn\"\nnon_zero_suggestions = \"warn\"\nnonstandard_macro_braces = \"warn\"\nor_fun_call = \"warn\"\npath_buf_push_overwrite = \"warn\"\npathbuf_init_then_push = \"warn\"\nprecedence_bits = \"warn\"\nprint_stderr = \"warn\"\nprint_stdout = \"warn\"\npub_without_shorthand = \"warn\"\nrc_mutex = \"warn\"\nredundant_type_annotations = \"warn\"\nref_patterns = \"warn\"\nrest_pat_in_fully_bound_structs = \"warn\"\nreturn_and_then = \"warn\"\nset_contains_or_insert = \"warn\"\nsingle_option_map = \"warn\"\nstd_instead_of_core = \"warn\"\nstr_to_string = \"warn\"\nstring_add = \"warn\"\nstring_lit_as_bytes = \"warn\"\nstring_lit_chars_any = \"warn\"\nsuspicious_xor_used_as_pow = \"warn\"\ntodo = \"warn\"\ntoo_long_first_doc_paragraph = \"warn\"\ntrailing_empty_array = \"warn\"\ntrait_duplication_in_bounds = \"warn\"\ntuple_array_conversions = \"warn\"\nundocumented_unsafe_blocks = \"warn\"\nunimplemented = \"warn\"\nuninhabited_references = \"warn\"\nunnecessary_safety_comment = \"warn\"\nunnecessary_safety_doc = \"warn\"\nunnecessary_self_imports = \"warn\"\nunnecessary_struct_initialization = \"warn\"\nunused_peekable = \"warn\"\nunused_rounding = \"warn\"\nunused_trait_names = \"warn\"\nunwrap_used = \"warn\"\nuse_self = \"warn\"\nuseless_let_if_seq = \"warn\"\nverbose_file_reads = \"warn\"\ncast_lossless = \"allow\"\ncast_possible_truncation = \"allow\"\ncast_possible_wrap = \"allow\"\ncast_precision_loss = \"allow\"\ncast_sign_loss = \"allow\"\ncomparison_chain = \"allow\"\ndefault_trait_access = \"allow\"\nfloat_cmp = \"allow\"\ninline_always = \"allow\"\nitems_after_statements = \"allow\"\nmany_single_char_names = \"allow\"\nmissing_panics_doc = \"allow\"\nmust_use_candidate = \"allow\"\nredundant_closure_for_method_calls = \"allow\"\nreturn_self_not_must_use = \"allow\"\nshould_panic_without_expect = \"allow\"\nsimilar_names = \"allow\"\nstruct_excessive_bools = \"allow\"\nstruct_field_names = \"allow\"\ntoo_many_lines = \"allow\"\ntrivially_copy_pass_by_ref = \"allow\"\nunreadable_literal = \"allow\"\nused_underscore_binding = \"allow\"\nassigning_clones = \"allow\"\nmanual_range_contains = \"allow\"\nmap_unwrap_or = \"allow\"\nmultiple_crate_versions = \"allow\"\nwildcard_imports = \"allow\"\nlet_underscore_must_use = \"allow\"\nlet_underscore_untyped = \"allow\"\nself_named_module_files = \"allow\"\nsignificant_drop_tightening = \"allow\"\n\n[lints.clippy.all]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.cargo]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.pedantic]\nlevel = \"warn\"\npriority = -1\n\n[features]\ndefault = []\nmonochrome_emoji_fonts = []\n", - "dest": "cargo/vendor/epaint_default_fonts", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/epaint_default_fonts", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/epaint_default_fonts", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/epaint_default_fonts", "dest-filename": ".cargo-checksum.json" }, { @@ -9376,19 +9376,19 @@ { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/winit-a517b38/.\" \"cargo/vendor/winit\"" + "mkdir -p \"cargo/vendor-git/9c7f809a50c4212d761a5b6359c5e4a02fcf86376d330a441c4ce9d112706ee9\" && cp -r --reflink=auto \"flatpak-cargo/git/winit-a517b38/.\" \"cargo/vendor-git/9c7f809a50c4212d761a5b6359c5e4a02fcf86376d330a441c4ce9d112706ee9/winit\"" ] }, { "type": "inline", "contents": "[package]\nname = \"winit\"\nversion = \"0.30.13\"\nauthors = [\"The winit contributors\", \"Pierre Krieger \"]\ndescription = \"Cross-platform window creation library.\"\nkeywords = [\"windowing\"]\nreadme = \"README.md\"\ndocumentation = \"https://docs.rs/winit\"\ncategories = [\"gui\"]\nrust-version = \"1.70.0\"\nrepository = \"https://github.com/rust-windowing/winit\"\nlicense = \"Apache-2.0\"\nedition = \"2021\"\ninclude = [\"/build.rs\", \"/docs\", \"/examples\", \"/FEATURES.md\", \"/LICENSE\", \"/src\", \"!/src/platform_impl/web/script\", \"/src/platform_impl/web/script/**/*.min.js\", \"/tests\"]\n\n[package.metadata.docs.rs]\nfeatures = [\"rwh_04\", \"rwh_05\", \"rwh_06\", \"serde\", \"mint\", \"android-native-activity\"]\ntargets = [\"i686-pc-windows-msvc\", \"x86_64-pc-windows-msvc\", \"x86_64-apple-darwin\", \"i686-unknown-linux-gnu\", \"x86_64-unknown-linux-gnu\", \"x86_64-apple-ios\", \"aarch64-linux-android\", \"wasm32-unknown-unknown\"]\nrustdoc-args = [\"--cfg\", \"docsrs\"]\n\n[features]\ndefault = [\"rwh_06\", \"x11\", \"wayland\", \"wayland-dlopen\", \"wayland-csd-adwaita\"]\nx11 = [\"x11-dl\", \"bytemuck\", \"percent-encoding\", \"xkbcommon-dl/x11\", \"x11rb\"]\nwayland = [\"wayland-client\", \"wayland-backend\", \"wayland-protocols\", \"wayland-protocols-plasma\", \"sctk\", \"ahash\", \"memmap2\", \"percent-encoding\"]\nwayland-dlopen = [\"wayland-backend/dlopen\"]\nwayland-csd-adwaita = [\"sctk-adwaita\", \"sctk-adwaita/ab_glyph\"]\nwayland-csd-adwaita-crossfont = [\"sctk-adwaita\", \"sctk-adwaita/crossfont\"]\nwayland-csd-adwaita-notitle = [\"sctk-adwaita\"]\nandroid-native-activity = [\"android-activity/native-activity\"]\nandroid-game-activity = [\"android-activity/game-activity\"]\nserde = [\"dep:serde\", \"cursor-icon/serde\", \"smol_str/serde\", \"dpi/serde\"]\nmint = [\"dpi/mint\"]\nrwh_04 = [\"dep:rwh_04\", \"ndk/rwh_04\"]\nrwh_05 = [\"dep:rwh_05\", \"ndk/rwh_05\"]\nrwh_06 = [\"dep:rwh_06\", \"ndk/rwh_06\"]\n\n[build-dependencies]\ncfg_aliases = \"0.2.1\"\n\n[dependencies]\nbitflags = \"2\"\ncursor-icon = \"1.1.0\"\ndpi = \"0.1.1\"\nsmol_str = \"0.2.0\"\n\n[dependencies.rwh_04]\npackage = \"raw-window-handle\"\nversion = \"0.4\"\noptional = true\n\n[dependencies.rwh_05]\npackage = \"raw-window-handle\"\nversion = \"0.5.2\"\nfeatures = [\"std\"]\noptional = true\n\n[dependencies.rwh_06]\npackage = \"raw-window-handle\"\nversion = \"0.6\"\nfeatures = [\"std\"]\noptional = true\n\n[dependencies.serde]\noptional = true\nversion = \"1\"\nfeatures = [\"serde_derive\"]\n\n[dependencies.tracing]\nversion = \"0.1.40\"\ndefault-features = false\n\n[dev-dependencies.image]\nversion = \"0.25.0\"\ndefault-features = false\nfeatures = [\"png\"]\n\n[dev-dependencies.tracing]\nversion = \"0.1.40\"\ndefault-features = false\nfeatures = [\"log\"]\n\n[dev-dependencies.tracing-subscriber]\nversion = \"0.3.18\"\nfeatures = [\"env-filter\"]\n\n[dev-dependencies.winit]\npath = \".\"\nfeatures = [\"rwh_05\"]\n\n[target.\"cfg(not(any(target_os = \\\"android\\\", target_os = \\\"ios\\\")))\".dev-dependencies.softbuffer]\nversion = \"0.4.0\"\ndefault-features = false\nfeatures = [\"x11\", \"x11-dlopen\", \"wayland\", \"wayland-dlopen\"]\n\n[target.\"cfg(target_os = \\\"android\\\")\".dependencies]\nandroid-activity = \"0.6.0\"\n\n[target.\"cfg(target_os = \\\"android\\\")\".dependencies.ndk]\nversion = \"0.9.0\"\ndefault-features = false\n\n[target.\"cfg(any(target_os = \\\"ios\\\", target_os = \\\"macos\\\"))\".dependencies]\nblock2 = \"0.5.1\"\ncore-foundation = \"0.9.3\"\n\n[target.\"cfg(any(target_os = \\\"ios\\\", target_os = \\\"macos\\\"))\".dependencies.objc2]\nversion = \"0.5.2\"\nfeatures = [\"relax-sign-encoding\"]\n\n[target.\"cfg(target_os = \\\"macos\\\")\".dependencies]\ncore-graphics = \"0.23.1\"\n\n[target.\"cfg(target_os = \\\"macos\\\")\".dependencies.objc2-foundation]\nversion = \"0.2.2\"\nfeatures = [\"block2\", \"dispatch\", \"NSArray\", \"NSAttributedString\", \"NSData\", \"NSDictionary\", \"NSDistributedNotificationCenter\", \"NSEnumerator\", \"NSKeyValueObserving\", \"NSNotification\", \"NSObjCRuntime\", \"NSPathUtilities\", \"NSProcessInfo\", \"NSRunLoop\", \"NSString\", \"NSThread\", \"NSValue\"]\n\n[target.\"cfg(target_os = \\\"macos\\\")\".dependencies.objc2-app-kit]\nversion = \"0.2.2\"\nfeatures = [\"NSAppearance\", \"NSApplication\", \"NSBitmapImageRep\", \"NSButton\", \"NSColor\", \"NSControl\", \"NSCursor\", \"NSDragging\", \"NSEvent\", \"NSGraphics\", \"NSGraphicsContext\", \"NSImage\", \"NSImageRep\", \"NSMenu\", \"NSMenuItem\", \"NSOpenGLView\", \"NSPasteboard\", \"NSResponder\", \"NSRunningApplication\", \"NSScreen\", \"NSTextInputClient\", \"NSTextInputContext\", \"NSView\", \"NSWindow\", \"NSWindowScripting\", \"NSWindowTabGroup\"]\n\n[target.\"cfg(target_os = \\\"ios\\\")\".dependencies.objc2-foundation]\nversion = \"0.2.2\"\nfeatures = [\"block2\", \"dispatch\", \"NSArray\", \"NSEnumerator\", \"NSGeometry\", \"NSObjCRuntime\", \"NSOperation\", \"NSString\", \"NSProcessInfo\", \"NSThread\", \"NSSet\"]\n\n[target.\"cfg(target_os = \\\"ios\\\")\".dependencies.objc2-ui-kit]\nversion = \"0.2.2\"\nfeatures = [\"UIApplication\", \"UIDevice\", \"UIEvent\", \"UIGeometry\", \"UIGestureRecognizer\", \"UITextInput\", \"UITextInputTraits\", \"UIOrientation\", \"UIPanGestureRecognizer\", \"UIPinchGestureRecognizer\", \"UIResponder\", \"UIRotationGestureRecognizer\", \"UIScreen\", \"UIScreenMode\", \"UITapGestureRecognizer\", \"UITouch\", \"UITraitCollection\", \"UIView\", \"UIViewController\", \"UIWindow\"]\n\n[target.\"cfg(target_os = \\\"windows\\\")\".dependencies]\nunicode-segmentation = \"1.7.1\"\n\n[target.\"cfg(target_os = \\\"windows\\\")\".dependencies.windows-sys]\nversion = \"0.52.0\"\nfeatures = [\"Win32_Devices_HumanInterfaceDevice\", \"Win32_Foundation\", \"Win32_Globalization\", \"Win32_Graphics_Dwm\", \"Win32_Graphics_Gdi\", \"Win32_Media\", \"Win32_System_Com_StructuredStorage\", \"Win32_System_Com\", \"Win32_System_LibraryLoader\", \"Win32_System_Ole\", \"Win32_Security\", \"Win32_System_SystemInformation\", \"Win32_System_SystemServices\", \"Win32_System_Threading\", \"Win32_System_WindowsProgramming\", \"Win32_UI_Accessibility\", \"Win32_UI_Controls\", \"Win32_UI_HiDpi\", \"Win32_UI_Input_Ime\", \"Win32_UI_Input_KeyboardAndMouse\", \"Win32_UI_Input_Pointer\", \"Win32_UI_Input_Touch\", \"Win32_UI_Shell\", \"Win32_UI_TextServices\", \"Win32_UI_WindowsAndMessaging\"]\n\n[target.\"cfg(all(unix, not(any(target_os = \\\"redox\\\", target_family = \\\"wasm\\\", target_os = \\\"android\\\", target_os = \\\"ios\\\", target_os = \\\"macos\\\"))))\".dependencies]\ncalloop = \"0.13.0\"\nlibc = \"0.2.64\"\nxkbcommon-dl = \"0.4.2\"\n\n[target.\"cfg(all(unix, not(any(target_os = \\\"redox\\\", target_family = \\\"wasm\\\", target_os = \\\"android\\\", target_os = \\\"ios\\\", target_os = \\\"macos\\\"))))\".dependencies.ahash]\nversion = \"0.8.7\"\nfeatures = [\"no-rng\"]\noptional = true\n\n[target.\"cfg(all(unix, not(any(target_os = \\\"redox\\\", target_family = \\\"wasm\\\", target_os = \\\"android\\\", target_os = \\\"ios\\\", target_os = \\\"macos\\\"))))\".dependencies.bytemuck]\nversion = \"1.13.1\"\ndefault-features = false\noptional = true\n\n[target.\"cfg(all(unix, not(any(target_os = \\\"redox\\\", target_family = \\\"wasm\\\", target_os = \\\"android\\\", target_os = \\\"ios\\\", target_os = \\\"macos\\\"))))\".dependencies.memmap2]\nversion = \"0.9.0\"\noptional = true\n\n[target.\"cfg(all(unix, not(any(target_os = \\\"redox\\\", target_family = \\\"wasm\\\", target_os = \\\"android\\\", target_os = \\\"ios\\\", target_os = \\\"macos\\\"))))\".dependencies.percent-encoding]\nversion = \"2.0\"\noptional = true\n\n[target.\"cfg(all(unix, not(any(target_os = \\\"redox\\\", target_family = \\\"wasm\\\", target_os = \\\"android\\\", target_os = \\\"ios\\\", target_os = \\\"macos\\\"))))\".dependencies.rustix]\nversion = \"0.38.4\"\ndefault-features = false\nfeatures = [\"std\", \"system\", \"thread\", \"process\", \"event\", \"fs\", \"pipe\"]\n\n[target.\"cfg(all(unix, not(any(target_os = \\\"redox\\\", target_family = \\\"wasm\\\", target_os = \\\"android\\\", target_os = \\\"ios\\\", target_os = \\\"macos\\\"))))\".dependencies.sctk]\npackage = \"smithay-client-toolkit\"\nversion = \"0.19.2\"\ndefault-features = false\nfeatures = [\"calloop\"]\noptional = true\n\n[target.\"cfg(all(unix, not(any(target_os = \\\"redox\\\", target_family = \\\"wasm\\\", target_os = \\\"android\\\", target_os = \\\"ios\\\", target_os = \\\"macos\\\"))))\".dependencies.sctk-adwaita]\nversion = \"0.10.1\"\ndefault-features = false\noptional = true\n\n[target.\"cfg(all(unix, not(any(target_os = \\\"redox\\\", target_family = \\\"wasm\\\", target_os = \\\"android\\\", target_os = \\\"ios\\\", target_os = \\\"macos\\\"))))\".dependencies.wayland-backend]\nversion = \"0.3.10\"\ndefault-features = false\nfeatures = [\"client_system\"]\noptional = true\n\n[target.\"cfg(all(unix, not(any(target_os = \\\"redox\\\", target_family = \\\"wasm\\\", target_os = \\\"android\\\", target_os = \\\"ios\\\", target_os = \\\"macos\\\"))))\".dependencies.wayland-client]\nversion = \"0.31.10\"\noptional = true\n\n[target.\"cfg(all(unix, not(any(target_os = \\\"redox\\\", target_family = \\\"wasm\\\", target_os = \\\"android\\\", target_os = \\\"ios\\\", target_os = \\\"macos\\\"))))\".dependencies.wayland-protocols]\nversion = \"0.32.8\"\nfeatures = [\"staging\"]\noptional = true\n\n[target.\"cfg(all(unix, not(any(target_os = \\\"redox\\\", target_family = \\\"wasm\\\", target_os = \\\"android\\\", target_os = \\\"ios\\\", target_os = \\\"macos\\\"))))\".dependencies.wayland-protocols-plasma]\nversion = \"0.3.8\"\nfeatures = [\"client\"]\noptional = true\n\n[target.\"cfg(all(unix, not(any(target_os = \\\"redox\\\", target_family = \\\"wasm\\\", target_os = \\\"android\\\", target_os = \\\"ios\\\", target_os = \\\"macos\\\"))))\".dependencies.x11-dl]\nversion = \"2.19.1\"\noptional = true\n\n[target.\"cfg(all(unix, not(any(target_os = \\\"redox\\\", target_family = \\\"wasm\\\", target_os = \\\"android\\\", target_os = \\\"ios\\\", target_os = \\\"macos\\\"))))\".dependencies.x11rb]\nversion = \"0.13.0\"\ndefault-features = false\nfeatures = [\"allow-unsafe-code\", \"dl-libxcb\", \"randr\", \"resource_manager\", \"xinput\", \"xkb\"]\noptional = true\n\n[target.\"cfg(target_os = \\\"redox\\\")\".dependencies]\nredox_syscall = \"0.4.1\"\n\n[target.\"cfg(target_os = \\\"redox\\\")\".dependencies.orbclient]\nversion = \"0.3.47\"\ndefault-features = false\n\n[target.\"cfg(target_family = \\\"wasm\\\")\".dependencies]\njs-sys = \"0.3.70\"\npin-project = \"1\"\nwasm-bindgen = \"0.2.93\"\nwasm-bindgen-futures = \"0.4.43\"\nweb-time = \"1\"\n\n[target.\"cfg(target_family = \\\"wasm\\\")\".dependencies.web_sys]\npackage = \"web-sys\"\nversion = \"0.3.70\"\nfeatures = [\"AbortController\", \"AbortSignal\", \"Blob\", \"BlobPropertyBag\", \"console\", \"CssStyleDeclaration\", \"Document\", \"DomException\", \"DomRect\", \"DomRectReadOnly\", \"Element\", \"Event\", \"EventTarget\", \"FocusEvent\", \"HtmlCanvasElement\", \"HtmlElement\", \"HtmlImageElement\", \"ImageBitmap\", \"ImageBitmapOptions\", \"ImageBitmapRenderingContext\", \"ImageData\", \"IntersectionObserver\", \"IntersectionObserverEntry\", \"KeyboardEvent\", \"MediaQueryList\", \"MessageChannel\", \"MessagePort\", \"Navigator\", \"Node\", \"OrientationLockType\", \"OrientationType\", \"PageTransitionEvent\", \"Permissions\", \"PermissionState\", \"PermissionStatus\", \"PointerEvent\", \"PremultiplyAlpha\", \"ResizeObserver\", \"ResizeObserverBoxOptions\", \"ResizeObserverEntry\", \"ResizeObserverOptions\", \"ResizeObserverSize\", \"Screen\", \"ScreenOrientation\", \"Url\", \"VisibilityState\", \"WheelEvent\", \"Window\", \"Worker\"]\n\n[target.\"cfg(target_family = \\\"wasm\\\")\".dev-dependencies]\nconsole_error_panic_hook = \"0.1\"\ntracing-web = \"0.1\"\n\n[target.\"cfg(all(target_family = \\\"wasm\\\", target_feature = \\\"atomics\\\"))\".dependencies]\natomic-waker = \"1\"\n\n[target.\"cfg(all(target_family = \\\"wasm\\\", target_feature = \\\"atomics\\\"))\".dependencies.concurrent-queue]\nversion = \"2\"\ndefault-features = false\n\n[[example]]\ndoc-scrape-examples = true\nname = \"window\"\n\n[workspace]\nresolver = \"2\"\nmembers = [\"dpi\"]\n\n[workspace.package]\nrust-version = \"1.70.0\"\nrepository = \"https://github.com/rust-windowing/winit\"\nlicense = \"Apache-2.0\"\nedition = \"2021\"\n\n[workspace.dependencies]\nmint = \"0.5.6\"\n\n[workspace.dependencies.serde]\nversion = \"1\"\nfeatures = [\"serde_derive\"]\n\n[[test]]\nname = \"macos_termination\"\npath = \"tests/macos_termination.rs\"\nharness = false\n\n[[test]]\nname = \"ime_reset_dispatch\"\npath = \"tests/ime_reset_dispatch.rs\"\nharness = false\n", - "dest": "cargo/vendor/winit", + "dest": "cargo/vendor-git/9c7f809a50c4212d761a5b6359c5e4a02fcf86376d330a441c4ce9d112706ee9/winit", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/winit", + "dest": "cargo/vendor-git/9c7f809a50c4212d761a5b6359c5e4a02fcf86376d330a441c4ce9d112706ee9/winit", "dest-filename": ".cargo-checksum.json" }, { @@ -10018,60 +10018,60 @@ { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/egui_demo_lib\" \"cargo/vendor/egui_demo_lib\"" + "mkdir -p \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6\" && cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/egui_demo_lib\" \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui_demo_lib\"" ] }, { "type": "inline", "contents": "[package]\nname = \"egui_demo_lib\"\nversion = \"0.37.0\"\nauthors = [\"Emil Ernerfeldt \"]\ndescription = \"Example library for egui\"\nedition = \"2024\"\nrust-version = \"1.95\"\nhomepage = \"https://github.com/emilk/egui/tree/main/crates/egui_demo_lib\"\nlicense = \"MIT OR Apache-2.0\"\nreadme = \"README.md\"\nrepository = \"https://github.com/emilk/egui/tree/main/crates/egui_demo_lib\"\ncategories = [\"gui\", \"graphics\"]\nkeywords = [\"glow\", \"egui\", \"gui\", \"gamedev\"]\ninclude = [\"../../LICENSE-APACHE\", \"../../LICENSE-MIT\", \"**/*.rs\", \"Cargo.toml\", \"data/*\"]\n\n[package.metadata.docs.rs]\nall-features = true\nrustdoc-args = [\"--generate-link-to-definition\"]\n\n[package.metadata.cargo-shear]\nignored = [\"image\"]\n\n[lints.rust]\nunsafe_code = \"deny\"\ntrivial_numeric_casts = \"warn\"\nunused_import_braces = \"warn\"\nunused_lifetimes = \"warn\"\ntrivial_casts = \"allow\"\nunused_qualifications = \"allow\"\n\n[lints.rust.future_incompatible]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.nonstandard_style]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.rust_2018_idioms]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(web_sys_unstable_apis)\"]\n\n[lints.rustdoc]\nall = \"warn\"\n\n[lints.clippy]\nallow_attributes = \"warn\"\nas_ptr_cast_mut = \"warn\"\nbranches_sharing_code = \"warn\"\nclear_with_drain = \"warn\"\nclone_on_ref_ptr = \"warn\"\ncoerce_container_to_any = \"warn\"\ndbg_macro = \"warn\"\ndebug_assert_with_mut_call = \"warn\"\ndefault_union_representation = \"warn\"\nderive_partial_eq_without_eq = \"warn\"\ndisallowed_script_idents = \"warn\"\ndoc_include_without_cfg = \"warn\"\nempty_enum_variants_with_brackets = \"warn\"\nequatable_if_let = \"warn\"\nexit = \"warn\"\nfallible_impl_from = \"warn\"\nfloat_cmp_const = \"warn\"\nfn_to_numeric_cast_any = \"warn\"\nget_unwrap = \"warn\"\nimprecise_flops = \"warn\"\ninfinite_loop = \"warn\"\niter_on_empty_collections = \"warn\"\niter_on_single_items = \"warn\"\niter_over_hash_type = \"warn\"\nlarge_include_file = \"warn\"\nlarge_stack_frames = \"warn\"\nliteral_string_with_formatting_args = \"warn\"\nlossy_float_literal = \"warn\"\nmap_err_ignore = \"warn\"\nmem_forget = \"warn\"\nmissing_assert_message = \"warn\"\nmutex_integer = \"warn\"\nneedless_pass_by_ref_mut = \"warn\"\nneedless_type_cast = \"warn\"\nnon_zero_suggestions = \"warn\"\nnonstandard_macro_braces = \"warn\"\nor_fun_call = \"warn\"\npath_buf_push_overwrite = \"warn\"\npathbuf_init_then_push = \"warn\"\nprecedence_bits = \"warn\"\nprint_stderr = \"warn\"\nprint_stdout = \"warn\"\npub_without_shorthand = \"warn\"\nrc_mutex = \"warn\"\nredundant_type_annotations = \"warn\"\nref_patterns = \"warn\"\nrest_pat_in_fully_bound_structs = \"warn\"\nreturn_and_then = \"warn\"\nset_contains_or_insert = \"warn\"\nsingle_option_map = \"warn\"\nstd_instead_of_core = \"warn\"\nstr_to_string = \"warn\"\nstring_add = \"warn\"\nstring_lit_as_bytes = \"warn\"\nstring_lit_chars_any = \"warn\"\nsuspicious_xor_used_as_pow = \"warn\"\ntodo = \"warn\"\ntoo_long_first_doc_paragraph = \"warn\"\ntrailing_empty_array = \"warn\"\ntrait_duplication_in_bounds = \"warn\"\ntuple_array_conversions = \"warn\"\nundocumented_unsafe_blocks = \"warn\"\nunimplemented = \"warn\"\nuninhabited_references = \"warn\"\nunnecessary_safety_comment = \"warn\"\nunnecessary_safety_doc = \"warn\"\nunnecessary_self_imports = \"warn\"\nunnecessary_struct_initialization = \"warn\"\nunused_peekable = \"warn\"\nunused_rounding = \"warn\"\nunused_trait_names = \"warn\"\nunwrap_used = \"warn\"\nuse_self = \"warn\"\nuseless_let_if_seq = \"warn\"\nverbose_file_reads = \"warn\"\ncast_lossless = \"allow\"\ncast_possible_truncation = \"allow\"\ncast_possible_wrap = \"allow\"\ncast_precision_loss = \"allow\"\ncast_sign_loss = \"allow\"\ncomparison_chain = \"allow\"\ndefault_trait_access = \"allow\"\nfloat_cmp = \"allow\"\ninline_always = \"allow\"\nitems_after_statements = \"allow\"\nmany_single_char_names = \"allow\"\nmissing_panics_doc = \"allow\"\nmust_use_candidate = \"allow\"\nredundant_closure_for_method_calls = \"allow\"\nreturn_self_not_must_use = \"allow\"\nshould_panic_without_expect = \"allow\"\nsimilar_names = \"allow\"\nstruct_excessive_bools = \"allow\"\nstruct_field_names = \"allow\"\ntoo_many_lines = \"allow\"\ntrivially_copy_pass_by_ref = \"allow\"\nunreadable_literal = \"allow\"\nused_underscore_binding = \"allow\"\nassigning_clones = \"allow\"\nmanual_range_contains = \"allow\"\nmap_unwrap_or = \"allow\"\nmultiple_crate_versions = \"allow\"\nwildcard_imports = \"allow\"\nlet_underscore_must_use = \"allow\"\nlet_underscore_untyped = \"allow\"\nself_named_module_files = \"allow\"\nsignificant_drop_tightening = \"allow\"\n\n[lints.clippy.all]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.cargo]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.pedantic]\nlevel = \"warn\"\npriority = -1\n\n[lib]\n\n[features]\ndefault = []\njiff = [\"egui_extras/datepicker\", \"dep:jiff\"]\nserde = [\"egui/serde\", \"dep:serde\", \"egui_extras/serde\"]\nsyntect = [\"egui_extras/syntect\"]\n\n[dependencies.egui]\ndefault-features = false\nfeatures = [\"color-hex\", \"default_fonts\"]\nversion = \"0.37.0\"\npath = \"crates/egui\"\n\n[dependencies.egui_extras]\nfeatures = [\"image\", \"svg\"]\nversion = \"0.37.0\"\npath = \"crates/egui_extras\"\ndefault-features = false\n\n[dependencies.log]\nversion = \"0.4.34\"\nfeatures = [\"std\"]\n\n[dependencies.unicode_names2]\nversion = \"3.1\"\ndefault-features = false\n\n[dependencies.jiff]\noptional = true\nfeatures = [\"std\", \"js\"]\nversion = \"0.2.35\"\ndefault-features = false\n\n[dependencies.document-features]\noptional = true\nversion = \"0.2.12\"\n\n[dependencies.serde]\noptional = true\nversion = \"1.0\"\nfeatures = [\"derive\"]\n\n[dev-dependencies]\nmimalloc = \"0.1.52\"\nrand = \"0.10.2\"\n\n[dev-dependencies.criterion]\nversion = \"0.8.2\"\ndefault-features = false\n\n[dev-dependencies.egui]\nfeatures = [\"default_fonts\", \"monochrome_emoji_fonts\"]\nversion = \"0.37.0\"\npath = \"crates/egui\"\ndefault-features = false\n\n[dev-dependencies.egui_extras]\nfeatures = [\"image\", \"svg\"]\nversion = \"0.37.0\"\npath = \"crates/egui_extras\"\ndefault-features = false\n\n[dev-dependencies.egui_kittest]\nfeatures = [\"wgpu\", \"snapshot\"]\nversion = \"0.37.0\"\npath = \"crates/egui_kittest\"\ndefault-features = false\n\n[dev-dependencies.image]\nfeatures = [\"png\"]\nversion = \"0.25.10\"\ndefault-features = false\n\n[[bench]]\nname = \"benchmark\"\nharness = false\n", - "dest": "cargo/vendor/egui_demo_lib", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui_demo_lib", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/egui_demo_lib", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui_demo_lib", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/egui_inspection\" \"cargo/vendor/egui_inspection\"" + "mkdir -p \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6\" && cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/egui_inspection\" \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui_inspection\"" ] }, { "type": "inline", "contents": "[package]\nname = \"egui_inspection\"\nversion = \"0.37.0\"\nauthors = [\"Lucas Meurer \", \"Emil Ernerfeldt \"]\ndescription = \"Protocol and egui::Plugin for inspection of egui apps\"\nedition = \"2024\"\nrust-version = \"1.95\"\nhomepage = \"https://github.com/emilk/egui\"\nlicense = \"MIT OR Apache-2.0\"\nreadme = \"./README.md\"\nrepository = \"https://github.com/emilk/egui\"\ncategories = [\"gui\", \"development-tools::testing\", \"accessibility\"]\nkeywords = [\"gui\", \"egui\", \"inspector\", \"accesskit\", \"mcp\"]\ninclude = [\"../../LICENSE-APACHE\", \"../../LICENSE-MIT\", \"**/*.rs\", \"Cargo.toml\"]\n\n[package.metadata.docs.rs]\nall-features = true\nrustdoc-args = [\"--generate-link-to-definition\"]\n\n[features]\ndefault = []\npng = [\"dep:image\", \"image/png\", \"egui/bytemuck\"]\nplugin = [\"png\", \"dep:log\"]\n\n[dependencies]\nserde_bytes = \"0.11.19\"\nrmp-serde = \"1.3\"\n\n[dependencies.egui]\nfeatures = [\"serde\"]\nversion = \"0.37.0\"\npath = \"crates/egui\"\ndefault-features = false\n\n[dependencies.serde]\nversion = \"1.0\"\nfeatures = [\"derive\"]\n\n[dependencies.image]\noptional = true\nversion = \"0.25.10\"\ndefault-features = false\n\n[dependencies.log]\noptional = true\nversion = \"0.4.34\"\nfeatures = [\"std\"]\n\n[dependencies.document-features]\noptional = true\nversion = \"0.2.12\"\n\n[lints.rust]\nunsafe_code = \"deny\"\ntrivial_numeric_casts = \"warn\"\nunused_import_braces = \"warn\"\nunused_lifetimes = \"warn\"\ntrivial_casts = \"allow\"\nunused_qualifications = \"allow\"\n\n[lints.rust.future_incompatible]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.nonstandard_style]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.rust_2018_idioms]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(web_sys_unstable_apis)\"]\n\n[lints.rustdoc]\nall = \"warn\"\n\n[lints.clippy]\nallow_attributes = \"warn\"\nas_ptr_cast_mut = \"warn\"\nbranches_sharing_code = \"warn\"\nclear_with_drain = \"warn\"\nclone_on_ref_ptr = \"warn\"\ncoerce_container_to_any = \"warn\"\ndbg_macro = \"warn\"\ndebug_assert_with_mut_call = \"warn\"\ndefault_union_representation = \"warn\"\nderive_partial_eq_without_eq = \"warn\"\ndisallowed_script_idents = \"warn\"\ndoc_include_without_cfg = \"warn\"\nempty_enum_variants_with_brackets = \"warn\"\nequatable_if_let = \"warn\"\nexit = \"warn\"\nfallible_impl_from = \"warn\"\nfloat_cmp_const = \"warn\"\nfn_to_numeric_cast_any = \"warn\"\nget_unwrap = \"warn\"\nimprecise_flops = \"warn\"\ninfinite_loop = \"warn\"\niter_on_empty_collections = \"warn\"\niter_on_single_items = \"warn\"\niter_over_hash_type = \"warn\"\nlarge_include_file = \"warn\"\nlarge_stack_frames = \"warn\"\nliteral_string_with_formatting_args = \"warn\"\nlossy_float_literal = \"warn\"\nmap_err_ignore = \"warn\"\nmem_forget = \"warn\"\nmissing_assert_message = \"warn\"\nmutex_integer = \"warn\"\nneedless_pass_by_ref_mut = \"warn\"\nneedless_type_cast = \"warn\"\nnon_zero_suggestions = \"warn\"\nnonstandard_macro_braces = \"warn\"\nor_fun_call = \"warn\"\npath_buf_push_overwrite = \"warn\"\npathbuf_init_then_push = \"warn\"\nprecedence_bits = \"warn\"\nprint_stderr = \"warn\"\nprint_stdout = \"warn\"\npub_without_shorthand = \"warn\"\nrc_mutex = \"warn\"\nredundant_type_annotations = \"warn\"\nref_patterns = \"warn\"\nrest_pat_in_fully_bound_structs = \"warn\"\nreturn_and_then = \"warn\"\nset_contains_or_insert = \"warn\"\nsingle_option_map = \"warn\"\nstd_instead_of_core = \"warn\"\nstr_to_string = \"warn\"\nstring_add = \"warn\"\nstring_lit_as_bytes = \"warn\"\nstring_lit_chars_any = \"warn\"\nsuspicious_xor_used_as_pow = \"warn\"\ntodo = \"warn\"\ntoo_long_first_doc_paragraph = \"warn\"\ntrailing_empty_array = \"warn\"\ntrait_duplication_in_bounds = \"warn\"\ntuple_array_conversions = \"warn\"\nundocumented_unsafe_blocks = \"warn\"\nunimplemented = \"warn\"\nuninhabited_references = \"warn\"\nunnecessary_safety_comment = \"warn\"\nunnecessary_safety_doc = \"warn\"\nunnecessary_self_imports = \"warn\"\nunnecessary_struct_initialization = \"warn\"\nunused_peekable = \"warn\"\nunused_rounding = \"warn\"\nunused_trait_names = \"warn\"\nunwrap_used = \"warn\"\nuse_self = \"warn\"\nuseless_let_if_seq = \"warn\"\nverbose_file_reads = \"warn\"\ncast_lossless = \"allow\"\ncast_possible_truncation = \"allow\"\ncast_possible_wrap = \"allow\"\ncast_precision_loss = \"allow\"\ncast_sign_loss = \"allow\"\ncomparison_chain = \"allow\"\ndefault_trait_access = \"allow\"\nfloat_cmp = \"allow\"\ninline_always = \"allow\"\nitems_after_statements = \"allow\"\nmany_single_char_names = \"allow\"\nmissing_panics_doc = \"allow\"\nmust_use_candidate = \"allow\"\nredundant_closure_for_method_calls = \"allow\"\nreturn_self_not_must_use = \"allow\"\nshould_panic_without_expect = \"allow\"\nsimilar_names = \"allow\"\nstruct_excessive_bools = \"allow\"\nstruct_field_names = \"allow\"\ntoo_many_lines = \"allow\"\ntrivially_copy_pass_by_ref = \"allow\"\nunreadable_literal = \"allow\"\nused_underscore_binding = \"allow\"\nassigning_clones = \"allow\"\nmanual_range_contains = \"allow\"\nmap_unwrap_or = \"allow\"\nmultiple_crate_versions = \"allow\"\nwildcard_imports = \"allow\"\nlet_underscore_must_use = \"allow\"\nlet_underscore_untyped = \"allow\"\nself_named_module_files = \"allow\"\nsignificant_drop_tightening = \"allow\"\n\n[lints.clippy.all]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.cargo]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.pedantic]\nlevel = \"warn\"\npriority = -1\n", - "dest": "cargo/vendor/egui_inspection", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui_inspection", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/egui_inspection", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui_inspection", "dest-filename": ".cargo-checksum.json" }, { "type": "shell", "commands": [ - "cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/egui_system_font_provider\" \"cargo/vendor/egui_system_font_provider\"" + "mkdir -p \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6\" && cp -r --reflink=auto \"flatpak-cargo/git/egui-6d518fc/crates/egui_system_font_provider\" \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui_system_font_provider\"" ] }, { "type": "inline", "contents": "[package]\nname = \"egui_system_font_provider\"\nversion = \"0.37.0\"\nauthors = [\"Emil Ernerfeldt \"]\ndescription = \"Load system fonts on demand for characters the egui fonts lack\"\nedition = \"2024\"\nrust-version = \"1.95\"\nhomepage = \"https://github.com/emilk/egui/tree/main/crates/egui_system_font_provider\"\nlicense = \"MIT OR Apache-2.0\"\nreadme = \"README.md\"\nrepository = \"https://github.com/emilk/egui/tree/main/crates/egui_system_font_provider\"\ncategories = [\"gui\"]\nkeywords = [\"egui\", \"gui\", \"fonts\", \"text\"]\ninclude = [\"../../LICENSE-APACHE\", \"../../LICENSE-MIT\", \"**/*.rs\", \"Cargo.toml\"]\n\n[package.metadata.docs.rs]\nall-features = true\nrustdoc-args = [\"--generate-link-to-definition\"]\n\n[lints.rust]\nunsafe_code = \"deny\"\ntrivial_numeric_casts = \"warn\"\nunused_import_braces = \"warn\"\nunused_lifetimes = \"warn\"\ntrivial_casts = \"allow\"\nunused_qualifications = \"allow\"\n\n[lints.rust.future_incompatible]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.nonstandard_style]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.rust_2018_idioms]\nlevel = \"warn\"\npriority = -1\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(web_sys_unstable_apis)\"]\n\n[lints.rustdoc]\nall = \"warn\"\n\n[lints.clippy]\nallow_attributes = \"warn\"\nas_ptr_cast_mut = \"warn\"\nbranches_sharing_code = \"warn\"\nclear_with_drain = \"warn\"\nclone_on_ref_ptr = \"warn\"\ncoerce_container_to_any = \"warn\"\ndbg_macro = \"warn\"\ndebug_assert_with_mut_call = \"warn\"\ndefault_union_representation = \"warn\"\nderive_partial_eq_without_eq = \"warn\"\ndisallowed_script_idents = \"warn\"\ndoc_include_without_cfg = \"warn\"\nempty_enum_variants_with_brackets = \"warn\"\nequatable_if_let = \"warn\"\nexit = \"warn\"\nfallible_impl_from = \"warn\"\nfloat_cmp_const = \"warn\"\nfn_to_numeric_cast_any = \"warn\"\nget_unwrap = \"warn\"\nimprecise_flops = \"warn\"\ninfinite_loop = \"warn\"\niter_on_empty_collections = \"warn\"\niter_on_single_items = \"warn\"\niter_over_hash_type = \"warn\"\nlarge_include_file = \"warn\"\nlarge_stack_frames = \"warn\"\nliteral_string_with_formatting_args = \"warn\"\nlossy_float_literal = \"warn\"\nmap_err_ignore = \"warn\"\nmem_forget = \"warn\"\nmissing_assert_message = \"warn\"\nmutex_integer = \"warn\"\nneedless_pass_by_ref_mut = \"warn\"\nneedless_type_cast = \"warn\"\nnon_zero_suggestions = \"warn\"\nnonstandard_macro_braces = \"warn\"\nor_fun_call = \"warn\"\npath_buf_push_overwrite = \"warn\"\npathbuf_init_then_push = \"warn\"\nprecedence_bits = \"warn\"\nprint_stderr = \"warn\"\nprint_stdout = \"warn\"\npub_without_shorthand = \"warn\"\nrc_mutex = \"warn\"\nredundant_type_annotations = \"warn\"\nref_patterns = \"warn\"\nrest_pat_in_fully_bound_structs = \"warn\"\nreturn_and_then = \"warn\"\nset_contains_or_insert = \"warn\"\nsingle_option_map = \"warn\"\nstd_instead_of_core = \"warn\"\nstr_to_string = \"warn\"\nstring_add = \"warn\"\nstring_lit_as_bytes = \"warn\"\nstring_lit_chars_any = \"warn\"\nsuspicious_xor_used_as_pow = \"warn\"\ntodo = \"warn\"\ntoo_long_first_doc_paragraph = \"warn\"\ntrailing_empty_array = \"warn\"\ntrait_duplication_in_bounds = \"warn\"\ntuple_array_conversions = \"warn\"\nundocumented_unsafe_blocks = \"warn\"\nunimplemented = \"warn\"\nuninhabited_references = \"warn\"\nunnecessary_safety_comment = \"warn\"\nunnecessary_safety_doc = \"warn\"\nunnecessary_self_imports = \"warn\"\nunnecessary_struct_initialization = \"warn\"\nunused_peekable = \"warn\"\nunused_rounding = \"warn\"\nunused_trait_names = \"warn\"\nunwrap_used = \"warn\"\nuse_self = \"warn\"\nuseless_let_if_seq = \"warn\"\nverbose_file_reads = \"warn\"\ncast_lossless = \"allow\"\ncast_possible_truncation = \"allow\"\ncast_possible_wrap = \"allow\"\ncast_precision_loss = \"allow\"\ncast_sign_loss = \"allow\"\ncomparison_chain = \"allow\"\ndefault_trait_access = \"allow\"\nfloat_cmp = \"allow\"\ninline_always = \"allow\"\nitems_after_statements = \"allow\"\nmany_single_char_names = \"allow\"\nmissing_panics_doc = \"allow\"\nmust_use_candidate = \"allow\"\nredundant_closure_for_method_calls = \"allow\"\nreturn_self_not_must_use = \"allow\"\nshould_panic_without_expect = \"allow\"\nsimilar_names = \"allow\"\nstruct_excessive_bools = \"allow\"\nstruct_field_names = \"allow\"\ntoo_many_lines = \"allow\"\ntrivially_copy_pass_by_ref = \"allow\"\nunreadable_literal = \"allow\"\nused_underscore_binding = \"allow\"\nassigning_clones = \"allow\"\nmanual_range_contains = \"allow\"\nmap_unwrap_or = \"allow\"\nmultiple_crate_versions = \"allow\"\nwildcard_imports = \"allow\"\nlet_underscore_must_use = \"allow\"\nlet_underscore_untyped = \"allow\"\nself_named_module_files = \"allow\"\nsignificant_drop_tightening = \"allow\"\n\n[lints.clippy.all]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.cargo]\nlevel = \"warn\"\npriority = -1\n\n[lints.clippy.pedantic]\nlevel = \"warn\"\npriority = -1\n\n[lib]\n\n[dependencies]\nsys-locale = \"0.3.2\"\nunicode-script = \"0.5.8\"\n\n[dependencies.epaint]\nfeatures = [\"color_fonts\"]\nversion = \"0.37.0\"\npath = \"crates/epaint\"\ndefault-features = false\n\n[dependencies.fontique]\nversion = \"0.11.1\"\ndefault-features = false\nfeatures = [\"system\", \"fontconfig-dlopen\"]\n\n[dependencies.log]\nversion = \"0.4.34\"\nfeatures = [\"std\"]\n\n[dependencies.poll-promise]\nversion = \"0.3.0\"\ndefault-features = false\n\n[dependencies.skrifa]\nversion = \"0.44.0\"\ndefault-features = false\nfeatures = [\"std\", \"autohint_shaping\"]\n\n[dev-dependencies.egui]\nversion = \"0.37.0\"\npath = \"crates/egui\"\ndefault-features = false\n", - "dest": "cargo/vendor/egui_system_font_provider", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui_system_font_provider", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor/egui_system_font_provider", + "dest": "cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6/egui_system_font_provider", "dest-filename": ".cargo-checksum.json" }, { "type": "inline", - "contents": "[source.vendored-sources]\ndirectory = \"cargo/vendor\"\n\n[source.crates-io]\nreplace-with = \"vendored-sources\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=94777dcf7f8962476e96b049d08d22e25b9330c2\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"vendored-sources\"\nrev = \"94777dcf7f8962476e96b049d08d22e25b9330c2\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"vendored-sources\"\nrev = \"f0f4758c01581d79577b9bf5046c06f4e77b1f18\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=c5a1cbfb5f9049f9270955caffb5bee5997aebf7\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"vendored-sources\"\nrev = \"c5a1cbfb5f9049f9270955caffb5bee5997aebf7\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=9dcbd90c7d16e1a668b3afa057e940e2db328b93\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"vendored-sources\"\nrev = \"9dcbd90c7d16e1a668b3afa057e940e2db328b93\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=b77af389f30bb10de10d8436ca9b39fe94e3bb67\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"vendored-sources\"\nrev = \"b77af389f30bb10de10d8436ca9b39fe94e3bb67\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=478c50560d3c6fad3d613af2a30b35c3bc9f4c0f\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"vendored-sources\"\nrev = \"478c50560d3c6fad3d613af2a30b35c3bc9f4c0f\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=2651dbeb2b13f621db23f65347380e7f26e316f0\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"vendored-sources\"\nrev = \"2651dbeb2b13f621db23f65347380e7f26e316f0\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=6e03f65bf45181db77ba6229716e6624db9eb25b\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"vendored-sources\"\nrev = \"6e03f65bf45181db77ba6229716e6624db9eb25b\"\n\n[source.\"https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a\"]\ngit = \"https://github.com/storytold/egui\"\nreplace-with = \"vendored-sources\"\nrev = \"6d518fc799681571963842f95b55a6b68431b15a\"\n\n[source.\"https://github.com/storytold/winit.git?rev=a517b3846ee8457d84ee4975110bfda6797c44dc\"]\ngit = \"https://github.com/storytold/winit\"\nreplace-with = \"vendored-sources\"\nrev = \"a517b3846ee8457d84ee4975110bfda6797c44dc\"\n", + "contents": "[source.vendored-sources]\ndirectory = \"cargo/vendor\"\n\n[source.crates-io]\nreplace-with = \"vendored-sources\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=94777dcf7f8962476e96b049d08d22e25b9330c2\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"git-vendor-6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1\"\nrev = \"94777dcf7f8962476e96b049d08d22e25b9330c2\"\n\n[source.git-vendor-6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1]\ndirectory = \"cargo/vendor-git/6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"git-vendor-bc00bd22a20692df38f25839a8568cd55b90e379a41719721bbc0f04fe5e29f7\"\nrev = \"f0f4758c01581d79577b9bf5046c06f4e77b1f18\"\n\n[source.git-vendor-bc00bd22a20692df38f25839a8568cd55b90e379a41719721bbc0f04fe5e29f7]\ndirectory = \"cargo/vendor-git/bc00bd22a20692df38f25839a8568cd55b90e379a41719721bbc0f04fe5e29f7\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=c5a1cbfb5f9049f9270955caffb5bee5997aebf7\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"git-vendor-11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298\"\nrev = \"c5a1cbfb5f9049f9270955caffb5bee5997aebf7\"\n\n[source.git-vendor-11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298]\ndirectory = \"cargo/vendor-git/11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=9dcbd90c7d16e1a668b3afa057e940e2db328b93\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"git-vendor-36bf00be069421f8a8a7428c4360efee8b4243207a59d7b566c6f48fc5918f61\"\nrev = \"9dcbd90c7d16e1a668b3afa057e940e2db328b93\"\n\n[source.git-vendor-36bf00be069421f8a8a7428c4360efee8b4243207a59d7b566c6f48fc5918f61]\ndirectory = \"cargo/vendor-git/36bf00be069421f8a8a7428c4360efee8b4243207a59d7b566c6f48fc5918f61\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=b77af389f30bb10de10d8436ca9b39fe94e3bb67\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"git-vendor-a51e2c3f46af71f1caed91009f88b4f9982db0c4152c6659d11967a7731b1ccc\"\nrev = \"b77af389f30bb10de10d8436ca9b39fe94e3bb67\"\n\n[source.git-vendor-a51e2c3f46af71f1caed91009f88b4f9982db0c4152c6659d11967a7731b1ccc]\ndirectory = \"cargo/vendor-git/a51e2c3f46af71f1caed91009f88b4f9982db0c4152c6659d11967a7731b1ccc\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=478c50560d3c6fad3d613af2a30b35c3bc9f4c0f\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"git-vendor-cb31475a7a9d19c00f48b4c43603f2f1a464c6dce15da1d21bba4c653eeba6b2\"\nrev = \"478c50560d3c6fad3d613af2a30b35c3bc9f4c0f\"\n\n[source.git-vendor-cb31475a7a9d19c00f48b4c43603f2f1a464c6dce15da1d21bba4c653eeba6b2]\ndirectory = \"cargo/vendor-git/cb31475a7a9d19c00f48b4c43603f2f1a464c6dce15da1d21bba4c653eeba6b2\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=2651dbeb2b13f621db23f65347380e7f26e316f0\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"git-vendor-677ec4bd11b9c98fb90165eb3a009c5b05f30eee72bbe079c4c936aa3feb3ff9\"\nrev = \"2651dbeb2b13f621db23f65347380e7f26e316f0\"\n\n[source.git-vendor-677ec4bd11b9c98fb90165eb3a009c5b05f30eee72bbe079c4c936aa3feb3ff9]\ndirectory = \"cargo/vendor-git/677ec4bd11b9c98fb90165eb3a009c5b05f30eee72bbe079c4c936aa3feb3ff9\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=6e03f65bf45181db77ba6229716e6624db9eb25b\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"git-vendor-4765c8f813a43ec0005270c9f4b16bff2eb2e09aeb15e4230bcd10e5bba1c4ba\"\nrev = \"6e03f65bf45181db77ba6229716e6624db9eb25b\"\n\n[source.git-vendor-4765c8f813a43ec0005270c9f4b16bff2eb2e09aeb15e4230bcd10e5bba1c4ba]\ndirectory = \"cargo/vendor-git/4765c8f813a43ec0005270c9f4b16bff2eb2e09aeb15e4230bcd10e5bba1c4ba\"\n\n[source.\"https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a\"]\ngit = \"https://github.com/storytold/egui\"\nreplace-with = \"git-vendor-11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6\"\nrev = \"6d518fc799681571963842f95b55a6b68431b15a\"\n\n[source.git-vendor-11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6]\ndirectory = \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6\"\n\n[source.\"https://github.com/storytold/winit.git?rev=a517b3846ee8457d84ee4975110bfda6797c44dc\"]\ngit = \"https://github.com/storytold/winit\"\nreplace-with = \"git-vendor-9c7f809a50c4212d761a5b6359c5e4a02fcf86376d330a441c4ce9d112706ee9\"\nrev = \"a517b3846ee8457d84ee4975110bfda6797c44dc\"\n\n[source.git-vendor-9c7f809a50c4212d761a5b6359c5e4a02fcf86376d330a441c4ce9d112706ee9]\ndirectory = \"cargo/vendor-git/9c7f809a50c4212d761a5b6359c5e4a02fcf86376d330a441c4ce9d112706ee9\"\n", "dest": "cargo", "dest-filename": "config" } diff --git a/packaging/linux/flatpak/generate-cargo-sources.py b/packaging/linux/flatpak/generate-cargo-sources.py index 43ed785a2a..182a1c0390 100755 --- a/packaging/linux/flatpak/generate-cargo-sources.py +++ b/packaging/linux/flatpak/generate-cargo-sources.py @@ -2,13 +2,14 @@ """Regenerate cargo-sources.json for the from-source Flatpak manifest. The upstream flatpak-cargo-generator is downloaded from a pinned commit and -verified before use; the full script is intentionally not vendored here. Two -small, reviewed patches are applied in memory: +verified before use; the full script is intentionally not vendored here. The following +small patches are applied in memory: 1. Key cargo source replacements by the full source URL (including ?rev=...) instead of only the repository URL, so two different revisions of the same repository stay distinct. -2. Include Cargo.lock's [patch.unused] entries, so crates such as egui_demo_lib +2. Isolate Git package directories and replacement sources by locked identity. +3. Include Cargo.lock's [patch.unused] entries, so crates such as egui_demo_lib are vendored even though they are not in the resolved package graph. This only produces and validates the source inventory; a full Flatpak SDK @@ -42,7 +43,7 @@ UPSTREAM_URL = ( f"{UPSTREAM_COMMIT}/cargo/flatpak-cargo-generator.py" ) UPSTREAM_SHA256 = "0a2db6be87d75910facef28ab46d4d6460802e8419ab850d0caa6a364d26b380" -PATCHED_SHA256 = "1e7c61d98d18e88156fb8cd4b91f526e04a6c504b185ae7b12f775ec1dd48512" +PATCHED_SHA256 = "56e06136037ca106a690c3c6d50d5b385462f6567ca63afdd7efb257049efe86" # Allow cold git caches while bounding stalled inventory regeneration. GENERATOR_TIMEOUT_SECONDS = 30 * 60 @@ -85,6 +86,48 @@ PATCHES = ( ), ) +# Isolate same-name/version Git packages by complete locked source identity. +PATCHES += ( + ( + 'isolate Git directory sources', + """ logging.info("Adding package %s from %s", name, repo_url) + git_pkg = git_repo["commits"][commit][name] +""", + """ # Directory sources cannot distinguish equal name/version packages from + # different Git revisions. Isolate both the files and replacement source. + identity = hashlib.sha256(source.encode("utf-8")).hexdigest() + vendor_name = f"git-vendor-{identity}" + vendor_root = f"{CARGO_HOME}/vendor-git/{identity}" + for entry in cargo_vendored_entry.values(): + entry["replace-with"] = vendor_name + cargo_vendored_entry[vendor_name] = {"directory": vendor_root} + + logging.info("Adding package %s from %s", name, repo_url) + git_pkg = git_repo["commits"][commit][name] +""", + ), + ( + 'create isolated Git package directory', + """ f'cp -r --reflink=auto "{pkg_repo_dir}" "{CARGO_CRATES}/{name}"'""", + """ f'mkdir -p "{vendor_root}" && ' + f'cp -r --reflink=auto "{pkg_repo_dir}" "{vendor_root}/{name}"'""", + ), + ( + 'isolate Git Cargo.toml destination', + """ "dest": f"{CARGO_CRATES}/{name}", # -{version}', + "dest-filename": "Cargo.toml",""", + """ "dest": f"{vendor_root}/{name}", + "dest-filename": "Cargo.toml",""", + ), + ( + 'isolate Git .cargo-checksum.json destination', + """ "dest": f"{CARGO_CRATES}/{name}", # -{version}', + "dest-filename": ".cargo-checksum.json",""", + """ "dest": f"{vendor_root}/{name}", + "dest-filename": ".cargo-checksum.json",""", + ), +) + def sha256(data: bytes) -> str: return hashlib.sha256(data).hexdigest() diff --git a/packaging/linux/flatpak/test_generate_cargo_sources.py b/packaging/linux/flatpak/test_generate_cargo_sources.py index cfa38bc38e..aa167ccb81 100644 --- a/packaging/linux/flatpak/test_generate_cargo_sources.py +++ b/packaging/linux/flatpak/test_generate_cargo_sources.py @@ -479,5 +479,49 @@ class InventoryFailures(unittest.TestCase): self.assertEqual(list(root.glob('.sources.json.*.tmp')), []) + +class GitSourceIsolationTests(unittest.TestCase): + """Exercise the identity block inserted into the hash-pinned generator.""" + + def identity(self, source, name='same-crate'): + import logging + import textwrap + from urllib.parse import urlparse + repo = 'https://github.com/example/formats' + commit = urlparse(source).fragment + key = source.removeprefix('git+').split('#', 1)[0] + scope = { + 'hashlib': hashlib, 'source': source, 'CARGO_HOME': 'cargo', + 'cargo_vendored_entry': {key: {'git': repo, 'replace-with': 'vendored-sources'}}, + 'logging': logging, 'name': name, 'repo_url': repo, 'commit': commit, + 'git_repo': {'commits': {commit: {name: object()}}}, + } + block = next(new for label, _, new in wrapper.PATCHES if label == 'isolate Git directory sources') + exec(textwrap.dedent(block), scope) + mapping = scope['cargo_vendored_entry'] + replacement = mapping[key]['replace-with'] + self.assertEqual(mapping[replacement]['directory'], scope['vendor_root']) + self.assertNotEqual(replacement, 'vendored-sources') + return scope['vendor_root'], replacement + + def test_same_package_and_version_at_two_revisions_are_isolated(self): + prefix = 'git+https://github.com/example/formats?rev=' + first = self.identity(prefix + 'a' * 40 + '#' + 'a' * 40) + second = self.identity(prefix + 'b' * 40 + '#' + 'b' * 40) + self.assertNotEqual(first[0], second[0]) + self.assertNotEqual(first[1], second[1]) + self.assertTrue(first[0].startswith('cargo/vendor-git/')) + + def test_packages_from_one_locked_source_share_one_root(self): + source = 'git+https://github.com/example/formats?rev=' + 'a' * 40 + '#' + 'a' * 40 + self.assertEqual(self.identity(source, 'metadata'), self.identity(source, 'tiff')) + + def test_distinct_source_aliases_do_not_repeat_copy_into_same_directory(self): + commit = 'a' * 40 + first = self.identity('git+https://github.com/example/formats?rev=' + commit + '#' + commit) + second = self.identity('git+https://github.com/example/formats?tag=release#' + commit) + self.assertNotEqual(first, second) + + if __name__ == '__main__': unittest.main(verbosity=2) From 2ef3e332a98bf493610504eaddf723232969c625 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 15 Nov 2026 18:51:09 -0500 Subject: [PATCH 18/18] print: pin merged shared raster writer --- Cargo.lock | 2 +- Cargo.toml | 2 +- packaging/linux/flatpak/cargo-sources.json | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f2d6118f8d..0b6247b273 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1349,7 +1349,7 @@ dependencies = [ [[package]] name = "craft-pdf" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=2651dbeb2b13f621db23f65347380e7f26e316f0#2651dbeb2b13f621db23f65347380e7f26e316f0" +source = "git+https://github.com/storytold/craft-libs?rev=0fd30aeb3e02207d9d4c7c601540d9da45abf8de#0fd30aeb3e02207d9d4c7c601540d9da45abf8de" dependencies = [ "flate2", "roxmltree", diff --git a/Cargo.toml b/Cargo.toml index c0ca9ebea3..8e0ce1cbf7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ rust-version = "1.95" repository = "https://github.com/storytold/lightcraft" [workspace.dependencies] -craft-pdf-print = { package = "craft-pdf", git = "https://github.com/storytold/craft-libs", rev = "2651dbeb2b13f621db23f65347380e7f26e316f0", default-features = false, features = ["write-raster"] } +craft-pdf-print = { package = "craft-pdf", git = "https://github.com/storytold/craft-libs", rev = "0fd30aeb3e02207d9d4c7c601540d9da45abf8de", default-features = false, features = ["write-raster"] } craft-ui = { git = "https://github.com/storytold/craft-libs", rev = "c5a1cbfb5f9049f9270955caffb5bee5997aebf7", features = ["serde"] } craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "c5a1cbfb5f9049f9270955caffb5bee5997aebf7" } # Canon CRW decoder shared with the other Craft apps diff --git a/packaging/linux/flatpak/cargo-sources.json b/packaging/linux/flatpak/cargo-sources.json index e36140f1e1..58c13aa3ae 100644 --- a/packaging/linux/flatpak/cargo-sources.json +++ b/packaging/linux/flatpak/cargo-sources.json @@ -38,8 +38,8 @@ { "type": "git", "url": "https://github.com/storytold/craft-libs", - "commit": "2651dbeb2b13f621db23f65347380e7f26e316f0", - "dest": "flatpak-cargo/git/craft-libs-2651dbe" + "commit": "0fd30aeb3e02207d9d4c7c601540d9da45abf8de", + "dest": "flatpak-cargo/git/craft-libs-0fd30ae" }, { "type": "git", @@ -1840,19 +1840,19 @@ { "type": "shell", "commands": [ - "mkdir -p \"cargo/vendor-git/677ec4bd11b9c98fb90165eb3a009c5b05f30eee72bbe079c4c936aa3feb3ff9\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-2651dbe/crates/pdf\" \"cargo/vendor-git/677ec4bd11b9c98fb90165eb3a009c5b05f30eee72bbe079c4c936aa3feb3ff9/craft-pdf\"" + "mkdir -p \"cargo/vendor-git/fafb086755da4e9bf32b4ac1b53a42a6017167d56ec0071462788465fa35eb30\" && cp -r --reflink=auto \"flatpak-cargo/git/craft-libs-0fd30ae/crates/pdf\" \"cargo/vendor-git/fafb086755da4e9bf32b4ac1b53a42a6017167d56ec0071462788465fa35eb30/craft-pdf\"" ] }, { "type": "inline", "contents": "[package]\nname = \"craft-pdf\"\ndescription = \"Shared PDF reading, rendering and optional writing for Craft apps\"\nversion = \"0.1.0\"\nedition = \"2024\"\nlicense = \"MIT OR Apache-2.0\"\nrepository = \"https://github.com/storytold/craft-libs\"\nrust-version = \"1.95\"\n\n[lints.rust]\nunsafe_code = \"forbid\"\nunused_workspace_dependencies = \"allow\"\n\n[lints.rust.unexpected_cfgs]\nlevel = \"warn\"\ncheck-cfg = [\"cfg(craft_pdf_unicode_fixtures)\"]\n\n[lints.clippy]\ncognitive_complexity = \"deny\"\ntoo_many_arguments = \"deny\"\nunused_workspace_dependencies = \"allow\"\nwildcard_imports = \"deny\"\ndbg_macro = \"warn\"\ntodo = \"warn\"\n\n[features]\ndefault = []\nread = [\"dep:hayro-syntax\", \"dep:thiserror\"]\ninterpret = [\"read\", \"dep:hayro-interpret\"]\npaths = [\"interpret\", \"dep:kurbo\"]\nraster = [\"interpret\", \"dep:hayro\", \"dep:bytemuck\"]\nwrite = [\"dep:krilla\", \"dep:thiserror\"]\nwrite-svg = [\"write\", \"dep:craft-svg\", \"dep:krilla-svg\", \"dep:usvg\", \"craft-svg/tree-text\"]\nwrite-pdf = [\"write\", \"krilla/pdf\"]\nwrite-raster = [\"dep:flate2\", \"dep:roxmltree\"]\nwrite-simple-text = [\"write\", \"krilla/simple-text\"]\nfilters = [\"dep:craft-stream-codecs\", \"dep:flate2\", \"dep:thiserror\"]\ncos = [\"crypt\", \"filters\", \"dep:chrono\", \"dep:js-sys\", \"dep:wasm-bindgen\"]\ncrypt = [\"dep:aes\", \"dep:md-5\", \"dep:sha2\", \"dep:stringprep\", \"dep:zeroize\", \"dep:thiserror\"]\n\n[dependencies.hayro-syntax]\noptional = true\nversion = \"=0.7.2\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dependencies.hayro-interpret]\noptional = true\nversion = \"=0.7.0\"\ndefault-features = false\nfeatures = [\"embed-fonts\", \"embed-cmaps\"]\n\n[dependencies.hayro]\noptional = true\nversion = \"=0.7.1\"\ndefault-features = false\n\n[dependencies.bytemuck]\noptional = true\nversion = \"1\"\n\n[dependencies.krilla]\noptional = true\nversion = \"=0.8.2\"\ndefault-features = false\nfeatures = [\"raster-images\"]\n\n[dependencies.craft-svg]\noptional = true\npath = \"crates/svg\"\n\n[dependencies.krilla-svg]\nversion = \"=0.8.1\"\noptional = true\n\n[dependencies.usvg]\nversion = \"=0.47.0\"\nfeatures = [\"text\"]\noptional = true\n\n[dependencies.thiserror]\noptional = true\nversion = \"2\"\n\n[dependencies.flate2]\nversion = \"1.1\"\ndefault-features = false\nfeatures = [\"zlib-rs\"]\noptional = true\n\n[dependencies.roxmltree]\nversion = \"0.21\"\noptional = true\n\n[dependencies.craft-stream-codecs]\noptional = true\npath = \"crates/stream-codecs\"\n\n[dependencies.aes]\nversion = \"0.9\"\noptional = true\n\n[dependencies.md-5]\nversion = \"0.11\"\noptional = true\n\n[dependencies.sha2]\nversion = \"0.11\"\noptional = true\n\n[dependencies.stringprep]\nversion = \"0.1\"\noptional = true\n\n[dependencies.zeroize]\nversion = \"1\"\noptional = true\n\n[dependencies.chrono]\noptional = true\nversion = \"0.4.45\"\ndefault-features = false\nfeatures = [\"std\"]\n\n[dependencies.kurbo]\noptional = true\nversion = \"0.13\"\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dependencies.js-sys]\nversion = \"0.3\"\noptional = true\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dependencies.wasm-bindgen]\nversion = \"0.2\"\noptional = true\n\n[target.\"cfg(target_arch = \\\"wasm32\\\")\".dev-dependencies]\nwasm-bindgen-test = \"0.3\"\n\n[target.\"cfg(not(target_arch = \\\"wasm32\\\"))\".dev-dependencies]\nproptest = \"1\"\n\n[dev-dependencies]\nserde_json = \"1\"\nhayro-syntax = \"=0.7.2\"\nhayro-cmap = \"=0.1.0\"\nkurbo = \"0.13\"\nttf-parser = \"=0.25.1\"\n\n[dev-dependencies.hayro-interpret]\nversion = \"=0.7.0\"\ndefault-features = false\n\n[[example]]\nname = \"cos_info\"\nrequired-features = [\"cos\"]\n\n[[example]]\nname = \"cos_protect\"\nrequired-features = [\"cos\"]\n", - "dest": "cargo/vendor-git/677ec4bd11b9c98fb90165eb3a009c5b05f30eee72bbe079c4c936aa3feb3ff9/craft-pdf", + "dest": "cargo/vendor-git/fafb086755da4e9bf32b4ac1b53a42a6017167d56ec0071462788465fa35eb30/craft-pdf", "dest-filename": "Cargo.toml" }, { "type": "inline", "contents": "{\"package\": null, \"files\": {}}", - "dest": "cargo/vendor-git/677ec4bd11b9c98fb90165eb3a009c5b05f30eee72bbe079c4c936aa3feb3ff9/craft-pdf", + "dest": "cargo/vendor-git/fafb086755da4e9bf32b4ac1b53a42a6017167d56ec0071462788465fa35eb30/craft-pdf", "dest-filename": ".cargo-checksum.json" }, { @@ -10071,7 +10071,7 @@ }, { "type": "inline", - "contents": "[source.vendored-sources]\ndirectory = \"cargo/vendor\"\n\n[source.crates-io]\nreplace-with = \"vendored-sources\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=94777dcf7f8962476e96b049d08d22e25b9330c2\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"git-vendor-6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1\"\nrev = \"94777dcf7f8962476e96b049d08d22e25b9330c2\"\n\n[source.git-vendor-6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1]\ndirectory = \"cargo/vendor-git/6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"git-vendor-bc00bd22a20692df38f25839a8568cd55b90e379a41719721bbc0f04fe5e29f7\"\nrev = \"f0f4758c01581d79577b9bf5046c06f4e77b1f18\"\n\n[source.git-vendor-bc00bd22a20692df38f25839a8568cd55b90e379a41719721bbc0f04fe5e29f7]\ndirectory = \"cargo/vendor-git/bc00bd22a20692df38f25839a8568cd55b90e379a41719721bbc0f04fe5e29f7\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=c5a1cbfb5f9049f9270955caffb5bee5997aebf7\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"git-vendor-11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298\"\nrev = \"c5a1cbfb5f9049f9270955caffb5bee5997aebf7\"\n\n[source.git-vendor-11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298]\ndirectory = \"cargo/vendor-git/11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=9dcbd90c7d16e1a668b3afa057e940e2db328b93\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"git-vendor-36bf00be069421f8a8a7428c4360efee8b4243207a59d7b566c6f48fc5918f61\"\nrev = \"9dcbd90c7d16e1a668b3afa057e940e2db328b93\"\n\n[source.git-vendor-36bf00be069421f8a8a7428c4360efee8b4243207a59d7b566c6f48fc5918f61]\ndirectory = \"cargo/vendor-git/36bf00be069421f8a8a7428c4360efee8b4243207a59d7b566c6f48fc5918f61\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=b77af389f30bb10de10d8436ca9b39fe94e3bb67\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"git-vendor-a51e2c3f46af71f1caed91009f88b4f9982db0c4152c6659d11967a7731b1ccc\"\nrev = \"b77af389f30bb10de10d8436ca9b39fe94e3bb67\"\n\n[source.git-vendor-a51e2c3f46af71f1caed91009f88b4f9982db0c4152c6659d11967a7731b1ccc]\ndirectory = \"cargo/vendor-git/a51e2c3f46af71f1caed91009f88b4f9982db0c4152c6659d11967a7731b1ccc\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=478c50560d3c6fad3d613af2a30b35c3bc9f4c0f\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"git-vendor-cb31475a7a9d19c00f48b4c43603f2f1a464c6dce15da1d21bba4c653eeba6b2\"\nrev = \"478c50560d3c6fad3d613af2a30b35c3bc9f4c0f\"\n\n[source.git-vendor-cb31475a7a9d19c00f48b4c43603f2f1a464c6dce15da1d21bba4c653eeba6b2]\ndirectory = \"cargo/vendor-git/cb31475a7a9d19c00f48b4c43603f2f1a464c6dce15da1d21bba4c653eeba6b2\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=2651dbeb2b13f621db23f65347380e7f26e316f0\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"git-vendor-677ec4bd11b9c98fb90165eb3a009c5b05f30eee72bbe079c4c936aa3feb3ff9\"\nrev = \"2651dbeb2b13f621db23f65347380e7f26e316f0\"\n\n[source.git-vendor-677ec4bd11b9c98fb90165eb3a009c5b05f30eee72bbe079c4c936aa3feb3ff9]\ndirectory = \"cargo/vendor-git/677ec4bd11b9c98fb90165eb3a009c5b05f30eee72bbe079c4c936aa3feb3ff9\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=6e03f65bf45181db77ba6229716e6624db9eb25b\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"git-vendor-4765c8f813a43ec0005270c9f4b16bff2eb2e09aeb15e4230bcd10e5bba1c4ba\"\nrev = \"6e03f65bf45181db77ba6229716e6624db9eb25b\"\n\n[source.git-vendor-4765c8f813a43ec0005270c9f4b16bff2eb2e09aeb15e4230bcd10e5bba1c4ba]\ndirectory = \"cargo/vendor-git/4765c8f813a43ec0005270c9f4b16bff2eb2e09aeb15e4230bcd10e5bba1c4ba\"\n\n[source.\"https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a\"]\ngit = \"https://github.com/storytold/egui\"\nreplace-with = \"git-vendor-11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6\"\nrev = \"6d518fc799681571963842f95b55a6b68431b15a\"\n\n[source.git-vendor-11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6]\ndirectory = \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6\"\n\n[source.\"https://github.com/storytold/winit.git?rev=a517b3846ee8457d84ee4975110bfda6797c44dc\"]\ngit = \"https://github.com/storytold/winit\"\nreplace-with = \"git-vendor-9c7f809a50c4212d761a5b6359c5e4a02fcf86376d330a441c4ce9d112706ee9\"\nrev = \"a517b3846ee8457d84ee4975110bfda6797c44dc\"\n\n[source.git-vendor-9c7f809a50c4212d761a5b6359c5e4a02fcf86376d330a441c4ce9d112706ee9]\ndirectory = \"cargo/vendor-git/9c7f809a50c4212d761a5b6359c5e4a02fcf86376d330a441c4ce9d112706ee9\"\n", + "contents": "[source.vendored-sources]\ndirectory = \"cargo/vendor\"\n\n[source.crates-io]\nreplace-with = \"vendored-sources\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=94777dcf7f8962476e96b049d08d22e25b9330c2\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"git-vendor-6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1\"\nrev = \"94777dcf7f8962476e96b049d08d22e25b9330c2\"\n\n[source.git-vendor-6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1]\ndirectory = \"cargo/vendor-git/6fd0ceba5f4137be1fe00e9c031f810234e38df6f60195003fed7057c96f0aa1\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=f0f4758c01581d79577b9bf5046c06f4e77b1f18\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"git-vendor-bc00bd22a20692df38f25839a8568cd55b90e379a41719721bbc0f04fe5e29f7\"\nrev = \"f0f4758c01581d79577b9bf5046c06f4e77b1f18\"\n\n[source.git-vendor-bc00bd22a20692df38f25839a8568cd55b90e379a41719721bbc0f04fe5e29f7]\ndirectory = \"cargo/vendor-git/bc00bd22a20692df38f25839a8568cd55b90e379a41719721bbc0f04fe5e29f7\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=c5a1cbfb5f9049f9270955caffb5bee5997aebf7\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"git-vendor-11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298\"\nrev = \"c5a1cbfb5f9049f9270955caffb5bee5997aebf7\"\n\n[source.git-vendor-11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298]\ndirectory = \"cargo/vendor-git/11a22760e699d74db2deeccbdb390b343ad010ce425dcb15451f0e14e45ff298\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=9dcbd90c7d16e1a668b3afa057e940e2db328b93\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"git-vendor-36bf00be069421f8a8a7428c4360efee8b4243207a59d7b566c6f48fc5918f61\"\nrev = \"9dcbd90c7d16e1a668b3afa057e940e2db328b93\"\n\n[source.git-vendor-36bf00be069421f8a8a7428c4360efee8b4243207a59d7b566c6f48fc5918f61]\ndirectory = \"cargo/vendor-git/36bf00be069421f8a8a7428c4360efee8b4243207a59d7b566c6f48fc5918f61\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=b77af389f30bb10de10d8436ca9b39fe94e3bb67\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"git-vendor-a51e2c3f46af71f1caed91009f88b4f9982db0c4152c6659d11967a7731b1ccc\"\nrev = \"b77af389f30bb10de10d8436ca9b39fe94e3bb67\"\n\n[source.git-vendor-a51e2c3f46af71f1caed91009f88b4f9982db0c4152c6659d11967a7731b1ccc]\ndirectory = \"cargo/vendor-git/a51e2c3f46af71f1caed91009f88b4f9982db0c4152c6659d11967a7731b1ccc\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=478c50560d3c6fad3d613af2a30b35c3bc9f4c0f\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"git-vendor-cb31475a7a9d19c00f48b4c43603f2f1a464c6dce15da1d21bba4c653eeba6b2\"\nrev = \"478c50560d3c6fad3d613af2a30b35c3bc9f4c0f\"\n\n[source.git-vendor-cb31475a7a9d19c00f48b4c43603f2f1a464c6dce15da1d21bba4c653eeba6b2]\ndirectory = \"cargo/vendor-git/cb31475a7a9d19c00f48b4c43603f2f1a464c6dce15da1d21bba4c653eeba6b2\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=0fd30aeb3e02207d9d4c7c601540d9da45abf8de\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"git-vendor-fafb086755da4e9bf32b4ac1b53a42a6017167d56ec0071462788465fa35eb30\"\nrev = \"0fd30aeb3e02207d9d4c7c601540d9da45abf8de\"\n\n[source.git-vendor-fafb086755da4e9bf32b4ac1b53a42a6017167d56ec0071462788465fa35eb30]\ndirectory = \"cargo/vendor-git/fafb086755da4e9bf32b4ac1b53a42a6017167d56ec0071462788465fa35eb30\"\n\n[source.\"https://github.com/storytold/craft-libs?rev=6e03f65bf45181db77ba6229716e6624db9eb25b\"]\ngit = \"https://github.com/storytold/craft-libs\"\nreplace-with = \"git-vendor-4765c8f813a43ec0005270c9f4b16bff2eb2e09aeb15e4230bcd10e5bba1c4ba\"\nrev = \"6e03f65bf45181db77ba6229716e6624db9eb25b\"\n\n[source.git-vendor-4765c8f813a43ec0005270c9f4b16bff2eb2e09aeb15e4230bcd10e5bba1c4ba]\ndirectory = \"cargo/vendor-git/4765c8f813a43ec0005270c9f4b16bff2eb2e09aeb15e4230bcd10e5bba1c4ba\"\n\n[source.\"https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a\"]\ngit = \"https://github.com/storytold/egui\"\nreplace-with = \"git-vendor-11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6\"\nrev = \"6d518fc799681571963842f95b55a6b68431b15a\"\n\n[source.git-vendor-11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6]\ndirectory = \"cargo/vendor-git/11e349eb0774eb3ab9192b38c47d748bf18abba91a0e3952d8f196513da96ee6\"\n\n[source.\"https://github.com/storytold/winit.git?rev=a517b3846ee8457d84ee4975110bfda6797c44dc\"]\ngit = \"https://github.com/storytold/winit\"\nreplace-with = \"git-vendor-9c7f809a50c4212d761a5b6359c5e4a02fcf86376d330a441c4ce9d112706ee9\"\nrev = \"a517b3846ee8457d84ee4975110bfda6797c44dc\"\n\n[source.git-vendor-9c7f809a50c4212d761a5b6359c5e4a02fcf86376d330a441c4ce9d112706ee9]\ndirectory = \"cargo/vendor-git/9c7f809a50c4212d761a5b6359c5e4a02fcf86376d330a441c4ce9d112706ee9\"\n", "dest": "cargo", "dest-filename": "config" }