diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cec8fdd..f172b46 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,8 @@ jobs: - run: cargo +${{ matrix.rust }} test --locked - run: cargo +${{ matrix.rust }} run --locked --example retry_command - run: cargo +${{ matrix.rust }} run --locked --example context_walkthrough + - run: cargo +${{ matrix.rust }} run --locked --example nested_cancel + - run: cargo +${{ matrix.rust }} run --locked --example canonical_save - run: python3 tools/context_evidence.py --check - run: cargo +${{ matrix.rust }} fmt --check - run: cargo +${{ matrix.rust }} clippy --locked --all-targets -- -D warnings @@ -23,3 +25,15 @@ jobs: run: | crate_version=$(python3 -c "import tomllib; print(tomllib.load(open('Cargo.toml', 'rb'))['package']['version'])") cargo +${{ matrix.rust }} test --locked --manifest-path "target/package/edit-session-$crate_version/Cargo.toml" + toolkit-boundaries: + name: Published toolkit boundary recipes + runs-on: ubuntu-24.04 + timeout-minutes: 20 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - run: rustup toolchain install 1.99.1 --profile minimal --component rustfmt,clippy + - name: Install the Slint recipe font dependency + run: sudo apt-get update && sudo apt-get install -y libfontconfig1-dev + - run: cargo +1.99.1 test --locked --manifest-path examples/toolkit-boundaries/Cargo.toml --all-features --jobs 2 + - run: cargo +1.99.1 fmt --manifest-path examples/toolkit-boundaries/Cargo.toml --check + - run: cargo +1.99.1 clippy --locked --manifest-path examples/toolkit-boundaries/Cargo.toml --all-features --all-targets -- -D warnings diff --git a/Cargo.toml b/Cargo.toml index 305a1fa..152f39a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,6 +20,18 @@ test = true name = "helper_comparison" test = true +[[example]] +name = "nested_cancel" +test = true + +[[example]] +name = "canonical_save" +test = true + +[[example]] +name = "request_generation" +test = true + [lints.rust] unsafe_code = "forbid" diff --git a/README.md b/README.md index f50f155..1c1772a 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,8 @@ library: `no_std`, zero runtime dependencies, Rust 1.88+. **[First example](#same-value-different-edit)** · **[Try recovery](#retry-after-a-rejected-command)** · **[Install](#use-from-another-project)** · **[Evidence](#evidence-and-trade-offs)** · **[License](#license)** +[Toolkit boundary recipes](examples/toolkit-boundaries/README.md) exercise the published crate with eight Rust UI ecosystems: local drafts, stale callbacks, recycled IDs and effect previews. Each recipe states what its native tests do and do not cover. + ## Same value, different edit ![An executable example: an old draft starts at revision 42. Another edit changes the value from 100 to 120; Undo restores 100 at revision 44. The old draft remains stale, including after Reset.](docs/assets/context-walkthrough.svg) @@ -84,6 +86,10 @@ with your revision and a short sequence of calls, or read the [1.x compatibility ## Retry after a rejected command +[Two more host boundaries](docs/DRAFT_BOUNDARIES.md) cover Cancel inside a parent +form and reloading the canonical value after a successful save. They include a +local-helper comparison and ten model tests; they do not claim upstream adoption. + [Run the recovery example](docs/RECOVERY.md): it keeps the draft and raw fields open when a host command is denied, checks freshness again on retry, and closes only after success or a checked no-op. **Eight example tests pass** alongside the 16 lifecycle @@ -322,3 +328,7 @@ Licensed under either the [MIT license](LICENSE-MIT) or the [Apache License, Version 2.0](LICENSE-APACHE), at your option. Unless explicitly stated otherwise, contributions submitted for inclusion are offered under the same dual license. + +[Request generation and draft context](docs/request-generation.md) separates late +background results from stale document commits. It includes eight model tests +and explains when a local ticket guard is sufficient without this dependency. diff --git a/docs/DRAFT_BOUNDARIES.md b/docs/DRAFT_BOUNDARIES.md new file mode 100644 index 0000000..1d6f827 --- /dev/null +++ b/docs/DRAFT_BOUNDARIES.md @@ -0,0 +1,71 @@ +# Nested Cancel and canonical saves + +Two runnable host models exercise existing `edit-session` APIs. They are not GUI +tests of the applications below, accepted integrations, or evidence that a new +dependency is better than a small local helper. No library API was added. + +## Cancel the confirmation, keep the parent form + +[COSMIC Settings #1718](https://github.com/pop-os/cosmic-settings/issues/1718) +reports losing a new shortcut's name and command when cancelling a replacement +confirmation. At [the inspected source](https://github.com/pop-os/cosmic-settings/blob/6aaf30d69ec3ed64eeb1d441ef5fe0a2017b3fe6/cosmic-settings/src/pages/input/keyboard/shortcuts/custom.rs), +`ReplaceCancel` resets the parent `add_shortcut` state. + +```sh +cargo run --locked --example nested_cancel +cargo test --locked --example nested_cancel +``` + +The [example](../examples/nested_cancel.rs) separates three decisions: + +1. Cancel replacement: retain name and command, clear the disputed combination, + and leave the parent draft open for another combination. +2. Cancel the whole form: discard the draft without a host write. +3. Confirm: check the current value and configuration revision immediately before + the serialized host command. A stale draft stays open and does not overwrite. + +Tests exercise both `EditSession` and a correct local helper against the same host. +Both must behave identically. The library does not decide which dialog was +cancelled: application state still owns that distinction. The separate reported +Reassign problem is not claimed fixed by this model. For a new-target workflow, +the host must additionally own target allocation and binding-conflict resolution; +this example models one fixed settings target. + +## Display what the host actually saved + +[spotatui #1063](https://github.com/LargeModGames/spotatui/issues/1063) describes +visible settings that differ from the accepted configuration after clamping or +rejection. [PR #1092](https://github.com/LargeModGames/spotatui/pull/1092) already +addresses the application; this example is not a competing patch. + +```sh +cargo run --locked --example canonical_save +cargo run --locked --example canonical_save -- --interactive +cargo test --locked --example canonical_save +``` + +In the terminal form, enter `edit`, then `set 90 +`. The saved fields still show +`10` and `>`. Enter `cancel` to discard that draft. Open it again with `edit`, +enter `set 500 +`, then `save`. The host clamps the increment to 100. The saved +fields and the next draft both show `100` and `+`. Enter `quit` from the saved view. + +The [example](../examples/canonical_save.rs) keeps raw fields until the host accepts +the write. On success it reloads the canonical value: entering `500` produces a +saved and displayed `100`. A rejected icon or failed write keeps the draft and +the previous saved snapshot. A retry checks freshness again. A successful save +starts an explicitly new session against the new revision; Reset is not used to +silently rebase a stale proposal. + +The host model only accepts one printable ASCII icon and simulates an atomic +write. It does not implement terminal character width or a filesystem transaction. +A real host must handle partial storage failures, permissions and rollback itself. +Using `finish` before a fallible command would consume the draft too early here; +the example borrows `preview` after `check` and rebuilds only after success. + +## Acceptance and cost + +The two examples add ten tests, separate from existing lifecycle/consumer tests. +These are model-level regressions, not a reproduction of either application UI. +Keep the native application regression even if adopting the crate. First try a +local helper; sharing a lifecycle across several forms may justify the dependency, +but less code or faster execution has not been measured here. diff --git a/docs/request-generation.md b/docs/request-generation.md new file mode 100644 index 0000000..e17b3b8 --- /dev/null +++ b/docs/request-generation.md @@ -0,0 +1,37 @@ +# Request generation and draft context + +A background job has two independent questions: + +1. Does this result belong to the request still shown by the UI? +2. Is the document still the one on which the draft was based? + +[`request_generation.rs`](../examples/request_generation.rs) uses a host-owned +monotonic ticket for the first question and `EditSession` context for the second. +Cancel closes the request. Starting another request gets a new ticket, even if +its path and initial value are identical. Both stale successes and stale errors +are discarded before they can change the replacement draft. A matching result +cannot authorize a later commit after a document switch or Undo. + +```sh +cargo test --locked --example request_generation +cargo run --locked --example request_generation +cargo test --locked --example helper_comparison +``` + +Eight deterministic model tests cover cancellation, replacement, late success, +late failure, duplicate results, document/revision changes, no-op confirmation, +and counter exhaustion. No worker, filesystem, archive installer or application +GUI runs here. These tests are not evidence that a third-party application bug +has been fixed. + +The essential request filter can be a small local enum and counter. Edit-session +does not manage worker cancellation, route result messages, close host +transactions, refresh a painter's render cache, or roll back external effects. +Use the existing host command/history engine for those jobs. If stale worker +results are the only problem, a new dependency is unnecessary. + +For a draft that also needs validation, preview and context checks, the library +can provide that separate lifecycle. [`helper_comparison.rs`](../examples/helper_comparison.rs) +checks the same commit/Cancel behavior with a local helper and with edit-session. +[`retry_command.rs`](../examples/retry_command.rs) shows how to retain a draft +when the host rejects a command. No performance or code-size advantage is claimed. diff --git a/examples/canonical_save.rs b/examples/canonical_save.rs new file mode 100644 index 0000000..da356c6 --- /dev/null +++ b/examples/canonical_save.rs @@ -0,0 +1,229 @@ +//! The host publishes the canonical value only after an atomic successful write. +use edit_session::EditSession; +use std::io::{self, BufRead, Write}; + +#[derive(Clone, Debug, PartialEq, Eq)] +struct Settings { + increment: u16, + icon: String, +} +#[derive(Debug)] +struct Host { + saved: Settings, + revision: u64, + reject_write: bool, + writes: usize, +} +impl Host { + fn new() -> Self { + Self { + saved: Settings { + increment: 10, + icon: ">".into(), + }, + revision: 0, + reject_write: false, + writes: 0, + } + } + fn commit(&mut self, value: &Settings) -> Result<(), &'static str> { + // This tiny example accepts one printable ASCII icon, not full terminal-width rules. + if value.icon.len() != 1 || !value.icon.bytes().all(|b| b.is_ascii_graphic()) { + return Err("invalid icon"); + } + let canonical = Settings { + increment: value.increment.clamp(1, 100), + icon: value.icon.clone(), + }; + if canonical == self.saved { + return Ok(()); + } + if self.reject_write { + return Err("write failed"); + } + let revision = self.revision.checked_add(1).ok_or("revision exhausted")?; + // A real host must make storage and memory commit atomic or supply rollback. + self.saved = canonical; + self.revision = revision; + self.writes += 1; + Ok(()) + } +} +struct Form { + raw_increment: String, + raw_icon: String, + saved_snapshot: Settings, + draft: EditSession, +} +impl Form { + fn open(host: &Host) -> Self { + Self { + raw_increment: host.saved.increment.to_string(), + raw_icon: host.saved.icon.clone(), + saved_snapshot: host.saved.clone(), + draft: EditSession::new(host.saved.clone(), host.revision), + } + } + fn edit(&mut self, number: &str, icon: &str) -> Result<(), &'static str> { + self.raw_increment = number.into(); + self.raw_icon = icon.into(); + self.draft.propose( + number + .parse() + .map(|increment| Settings { + increment, + icon: icon.into(), + }) + .map_err(|_| "invalid number"), + ) + } + fn save(&mut self, host: &mut Host) -> Result<(), &'static str> { + self.draft + .check(&host.saved, &host.revision) + .map_err(|_| "invalid or stale draft")?; + host.commit(self.draft.preview())?; + // Reload the accepted value. Rebuilding the draft after success is an explicit new session. + *self = Self::open(host); + Ok(()) + } + fn cancel(self) { + self.draft.cancel(); + } +} +/// Keep the saved settings visible while the user edits a separate draft. +fn interactive(input: impl BufRead, mut output: impl Write) -> io::Result<()> { + let mut host = Host::new(); + let mut form = None; + let mut lines = input.lines(); + loop { + writeln!( + output, + "Saved increment={} icon={}", + host.saved.increment, host.saved.icon + )?; + if let Some(Form { + raw_increment, + raw_icon, + .. + }) = &form + { + writeln!(output, "Draft increment={raw_increment} icon={raw_icon}")?; + write!(output, "set | save | cancel > ")?; + } else { + write!(output, "edit | quit > ")?; + } + output.flush()?; + let Some(line) = lines.next().transpose()? else { + return Ok(()); + }; + let fields: Vec<_> = line.split_whitespace().collect(); + match (form.as_mut(), fields.as_slice()) { + (None, ["edit"]) => form = Some(Form::open(&host)), + (None, ["quit"]) => return Ok(()), + (Some(draft), ["set", number, icon]) => { + if let Err(message) = draft.edit(number, icon) { + writeln!(output, "{message}")?; + } + } + (Some(draft), ["save"]) => match draft.save(&mut host) { + Ok(()) => form = None, + Err(message) => writeln!(output, "{message}")?, + }, + (Some(_), ["cancel"]) => { + if let Some(draft) = form.take() { + draft.cancel(); + } + } + _ => writeln!(output, "Choose one of the commands shown above.")?, + } + } +} + +fn main() -> Result<(), Box> { + if std::env::args().nth(1).as_deref() == Some("--interactive") { + return Ok(interactive(io::stdin().lock(), io::stdout().lock())?); + } + let mut host = Host::new(); + let mut form = Form::open(&host); + form.edit("500", ">")?; + form.save(&mut host)?; + assert_eq!(form.raw_increment, "100"); + assert_eq!(form.saved_snapshot, host.saved); + form.cancel(); + println!("500 was normalized to 100; the visible fields and saved snapshot both show 100."); + Ok(()) +} +#[cfg(test)] +mod tests { + use super::*; + #[test] + fn interactive_cancel_and_save_show_the_persisted_value() -> io::Result<()> { + let keys = b"edit\nset 90 +\ncancel\nedit\nset bad >\nsave\nset 500 +\nsave\nquit\n"; + let mut transcript = Vec::new(); + interactive(&keys[..], &mut transcript)?; + let text = String::from_utf8_lossy(&transcript); + assert!(text.contains("Draft increment=90 icon=+")); + assert!(!text.contains("Saved increment=90")); + assert!(text.contains("invalid or stale draft")); + assert!(text.contains("Saved increment=100 icon=+")); + Ok(()) + } + #[test] + fn normalization_reloads_fields_and_saved_snapshot() { + let mut host = Host::new(); + let mut form = Form::open(&host); + assert_eq!(form.edit("500", ">"), Ok(())); + assert_eq!(form.save(&mut host), Ok(())); + assert_eq!(form.raw_increment, "100"); + assert_eq!(form.saved_snapshot, host.saved); + assert_eq!(form.save(&mut host), Ok(())); + assert_eq!(host.writes, 1); + } + #[test] + fn rejection_preserves_raw_input_and_never_promotes_it_to_saved() { + let mut host = Host::new(); + let mut form = Form::open(&host); + let before = host.saved.clone(); + assert_eq!(form.edit("500", ">>"), Ok(())); + assert_eq!(form.save(&mut host), Err("invalid icon")); + assert_eq!(form.raw_icon, ">>"); + assert_eq!(form.raw_increment, "500"); + assert_eq!(form.saved_snapshot, before); + assert_eq!(host.saved, before); + assert_eq!(host.writes, 0); + form.cancel(); + assert_eq!(host.saved, before); + } + #[test] + fn failed_write_can_retry_without_losing_draft() { + let mut host = Host::new(); + let mut form = Form::open(&host); + host.reject_write = true; + assert_eq!(form.edit("500", ">"), Ok(())); + assert_eq!(form.save(&mut host), Err("write failed")); + assert_eq!(host.saved.increment, 10); + assert_eq!(form.raw_increment, "500"); + host.reject_write = false; + assert_eq!(form.save(&mut host), Ok(())); + assert_eq!(host.writes, 1); + } + #[test] + fn retry_checks_freshness_instead_of_rebasing_a_stale_proposal() { + let mut host = Host::new(); + let mut form = Form::open(&host); + assert_eq!(form.edit("50", ">"), Ok(())); + host.revision += 1; + assert_eq!(form.save(&mut host), Err("invalid or stale draft")); + assert_eq!(host.writes, 0); + } + #[test] + fn invalid_number_requires_correction_before_save() { + let mut host = Host::new(); + let mut form = Form::open(&host); + assert_eq!(form.edit("many", ">"), Err("invalid number")); + assert_eq!(form.save(&mut host), Err("invalid or stale draft")); + assert_eq!(host.writes, 0); + assert_eq!(form.edit("25", ">"), Ok(())); + assert_eq!(form.save(&mut host), Ok(())); + } +} diff --git a/examples/nested_cancel.rs b/examples/nested_cancel.rs new file mode 100644 index 0000000..eb1c2b0 --- /dev/null +++ b/examples/nested_cancel.rs @@ -0,0 +1,247 @@ +//! Host model of a nested confirmation. Not a COSMIC GUI test or upstream patch. +use edit_session::EditSession; + +#[derive(Clone, Debug, Default, PartialEq, Eq)] +struct Shortcut { + name: String, + command: String, + binding: String, +} + +// A correct small local helper is a valid alternative to the library. +enum Draft { + Library(EditSession), + Local { + original: Shortcut, + proposal: Shortcut, + revision: u64, + }, +} +impl Draft { + fn open(library: bool, host: &Host) -> Self { + if library { + Self::Library(EditSession::new(host.value.clone(), host.revision)) + } else { + Self::Local { + original: host.value.clone(), + proposal: host.value.clone(), + revision: host.revision, + } + } + } + fn propose(&mut self, value: Shortcut) -> Result<(), &'static str> { + match self { + Self::Library(draft) => draft.propose(Ok(value)), + Self::Local { proposal, .. } => { + *proposal = value; + Ok(()) + } + } + } + fn check(&self, host: &Host) -> Result<&Shortcut, &'static str> { + match self { + Self::Library(draft) => { + draft + .check(&host.value, &host.revision) + .map_err(|_| "stale draft")?; + Ok(draft.preview()) + } + Self::Local { + original, + proposal, + revision, + } => { + if *revision != host.revision || *original != host.value { + Err("stale draft") + } else { + Ok(proposal) + } + } + } + } +} + +#[derive(Debug, Default)] +struct Host { + value: Shortcut, + revision: u64, + writes: usize, +} +struct Form { + fields: Shortcut, + draft: Option, + replace_pending: bool, +} +impl Form { + fn open(library: bool, host: &Host) -> Self { + Self { + fields: host.value.clone(), + draft: Some(Draft::open(library, host)), + replace_pending: false, + } + } + fn edit( + &mut self, + name: &str, + command: &str, + binding: &str, + occupied: bool, + ) -> Result<(), &'static str> { + let draft = self.draft.as_mut().ok_or("closed")?; + self.fields = Shortcut { + name: name.into(), + command: command.into(), + binding: binding.into(), + }; + draft.propose(self.fields.clone())?; + self.replace_pending = occupied; + Ok(()) + } + fn cancel_replace(&mut self) { + // Only the child confirmation ends. Keep the parent draft and raw fields. + self.replace_pending = false; + self.fields.binding.clear(); + if let Some(draft) = self.draft.as_mut() { + let _ = draft.propose(self.fields.clone()); + } + } + fn cancel_form(&mut self) { + self.draft = None; + self.replace_pending = false; + } + fn accept_replace(&mut self) { + self.replace_pending = false; + } + fn confirm(&mut self, host: &mut Host) -> Result<(), &'static str> { + if self.replace_pending { + return Err("replacement needs confirmation"); + } + let value = self.draft.as_ref().ok_or("closed")?.check(host)?; + if value.name.trim().is_empty() + || value.command.trim().is_empty() + || value.binding.is_empty() + { + return Err("complete the fields"); + } + if *value != host.value { + let revision = host.revision.checked_add(1).ok_or("revision exhausted")?; + // Serialized host command: no callback/await between check and write. + host.value = value.clone(); + host.revision = revision; + host.writes += 1; + } + self.cancel_form(); + Ok(()) + } +} + +fn main() -> Result<(), &'static str> { + let mut host = Host::default(); + let mut form = Form::open(true, &host); + form.edit("Terminal", "terminal", "Super+H", true)?; + form.cancel_replace(); + assert_eq!(form.fields.name, "Terminal"); + assert_eq!(form.fields.command, "terminal"); + form.edit("Terminal", "terminal", "Super+T", false)?; + form.confirm(&mut host)?; + assert_eq!(host.writes, 1); + let mut replacement = Form::open(true, &host); + replacement.edit("Terminal", "terminal", "Super+H", true)?; + replacement.accept_replace(); + replacement.confirm(&mut host)?; + assert_eq!(host.writes, 2); + println!("Child Cancel retained the parent fields; choosing another binding committed once."); + Ok(()) +} + +#[cfg(test)] +mod tests { + use super::*; + #[test] + fn library_and_local_helper_preserve_parent_fields_on_child_cancel() { + for library in [false, true] { + let mut host = Host::default(); + let mut form = Form::open(library, &host); + assert_eq!(form.edit("Terminal", "terminal", "Super+H", true), Ok(())); + assert_eq!( + form.confirm(&mut host), + Err("replacement needs confirmation") + ); + form.cancel_replace(); + assert_eq!( + (&*form.fields.name, &*form.fields.command), + ("Terminal", "terminal") + ); + assert_eq!(host.value, Shortcut::default()); + assert_eq!(host.writes, 0); + assert_eq!(form.confirm(&mut host), Err("complete the fields")); + assert_eq!(form.edit("Terminal", "terminal", "Super+T", false), Ok(())); + assert_eq!(form.confirm(&mut host), Ok(())); + assert_eq!(host.value.binding, "Super+T"); + assert_eq!(host.writes, 1); + assert_eq!(form.confirm(&mut host), Err("closed")); + } + } + #[test] + fn cancel_entire_form_never_writes() { + for library in [false, true] { + let mut host = Host::default(); + let mut form = Form::open(library, &host); + assert_eq!(form.edit("Terminal", "terminal", "Super+H", true), Ok(())); + form.cancel_form(); + assert_eq!(form.confirm(&mut host), Err("closed")); + assert_eq!(host.value, Shortcut::default()); + assert_eq!(host.writes, 0); + } + } + #[test] + fn confirmation_rechecks_revision_and_current_target_value() { + for library in [false, true] { + for change_revision in [false, true] { + let mut host = Host::default(); + let mut form = Form::open(library, &host); + assert_eq!(form.edit("Terminal", "terminal", "Super+H", true), Ok(())); + if change_revision { + host.revision += 1; + } else { + host.value.command = "other".into(); + } + let before = host.value.clone(); + form.accept_replace(); + assert_eq!(form.confirm(&mut host), Err("stale draft")); + assert_eq!(host.value, before); + assert_eq!(host.writes, 0); + assert!(form.draft.is_some()); + } + } + } + #[test] + fn accepted_replacement_is_one_host_commit() { + for library in [false, true] { + let mut host = Host::default(); + let mut form = Form::open(library, &host); + assert_eq!(form.edit("Terminal", "terminal", "Super+H", true), Ok(())); + form.accept_replace(); + assert_eq!(form.confirm(&mut host), Ok(())); + assert_eq!(host.writes, 1); + assert_eq!(host.value.binding, "Super+H"); + } + } + #[test] + fn returning_to_an_equal_configuration_does_not_make_an_old_confirmation_fresh() { + for library in [false, true] { + let mut host = Host::default(); + let mut form = Form::open(library, &host); + assert_eq!(form.edit("Terminal", "terminal", "Super+H", true), Ok(())); + let original = host.value.clone(); + host.value.command = "external".into(); + host.revision += 1; + host.value = original; + host.revision += 1; + form.accept_replace(); + assert_eq!(form.confirm(&mut host), Err("stale draft")); + assert_eq!(host.writes, 0); + assert_eq!(form.fields.command, "terminal"); + } + } +} diff --git a/examples/request_generation.rs b/examples/request_generation.rs new file mode 100644 index 0000000..2da4528 --- /dev/null +++ b/examples/request_generation.rs @@ -0,0 +1,214 @@ +//! Request identity and draft context protect different boundaries. +//! This model performs no I/O and is not an upstream application reproduction. +use edit_session::{EditSession, FinishError}; + +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +struct Context { + document: u64, + revision: u64, +} +#[derive(Debug, PartialEq, Eq)] +enum State { + Closed, + Planning(u64), + Ready(String), + Failed(String), +} +struct Panel { + generation: u64, + state: State, + draft: Option>, +} +impl Panel { + fn new() -> Self { + Self { + generation: 0, + state: State::Closed, + draft: None, + } + } + fn start(&mut self, value: &str, context: Context) -> Result { + // Exhaustion fails before changing the current request or draft. + let ticket = self + .generation + .checked_add(1) + .ok_or("generation exhausted")?; + self.cancel(); + self.generation = ticket; + self.state = State::Planning(ticket); + self.draft = Some(EditSession::new(value.to_owned(), context)); + Ok(ticket) + } + fn receive(&mut self, ticket: u64, result: Result) -> bool { + // Reject stale success AND failure before proposing into a replacement draft. + if self.state != State::Planning(ticket) { + return false; + } + self.state = match result { + Ok(value) => { + if let Some(draft) = &mut self.draft { + let _: Result<(), ()> = draft.propose(Ok(value.clone())); + } + State::Ready(value) + } + Err(error) => State::Failed(error), + }; + true + } + fn confirm(&mut self, live: &mut String, context: &Context) -> Result { + if !matches!(self.state, State::Ready(_)) { + return Err(FinishError::InvalidProposal); + } + let Some(draft) = self.draft.as_ref() else { + return Err(FinishError::InvalidProposal); + }; + draft.check(live, context)?; + let changed = draft.preview() != live; + // A real host dispatches its atomic command here, on the serialized edit path. + // Fallible commands should use retry_command.rs and retain the draft on error. + if changed { + *live = draft.preview().clone(); + } + self.cancel(); + Ok(changed) + } + fn cancel(&mut self) { + if let Some(draft) = self.draft.take() { + draft.cancel(); + } + self.state = State::Closed; + } +} +fn main() -> Result<(), &'static str> { + let context = Context { + document: 1, + revision: 1, + }; + let mut panel = Panel::new(); + let old = panel.start("original", context)?; + panel.cancel(); + let current = panel.start("original", context)?; + assert!(!panel.receive(old, Ok("stale".into()))); + assert!(panel.receive(current, Ok("current".into()))); + let mut live = "original".into(); + assert_eq!(panel.confirm(&mut live, &context), Ok(true)); + assert_eq!(live, "current"); + println!("The current request committed once after document context validation."); + Ok(()) +} +#[cfg(test)] +mod tests { + use super::*; + fn context() -> Context { + Context { + document: 1, + revision: 7, + } + } + #[test] + fn stale_success_and_failure_cannot_replace_new_request() -> Result<(), &'static str> { + for result in [Ok("old plan".into()), Err("old error".into())] { + let mut p = Panel::new(); + let old = p.start("original", context())?; + p.cancel(); + let next = p.start("original", context())?; + assert!(!p.receive(old, result)); + assert_eq!(p.state, State::Planning(next)); + assert!(p.receive(next, Ok("new plan".into()))); + let mut live = "original".into(); + assert_eq!(p.confirm(&mut live, &context()), Ok(true)); + assert_eq!(live, "new plan"); + assert_eq!(p.state, State::Closed); + } + Ok(()) + } + #[test] + fn closing_without_reopening_discards_worker_result() -> Result<(), &'static str> { + let mut p = Panel::new(); + let ticket = p.start("original", context())?; + p.cancel(); + assert!(!p.receive(ticket, Ok("late".into()))); + assert_eq!(p.state, State::Closed); + Ok(()) + } + #[test] + fn same_value_on_another_document_is_stale() -> Result<(), &'static str> { + let mut p = Panel::new(); + let ticket = p.start("original", context())?; + assert!(p.receive(ticket, Ok("proposal".into()))); + let mut live = "original".into(); + let other = Context { + document: 2, + ..context() + }; + assert_eq!( + p.confirm(&mut live, &other), + Err(FinishError::ContextChanged) + ); + assert_eq!(live, "original"); + Ok(()) + } + #[test] + fn undo_back_to_original_value_does_not_restore_revision() -> Result<(), &'static str> { + let mut p = Panel::new(); + let ticket = p.start("original", context())?; + assert!(p.receive(ticket, Ok("proposal".into()))); + let mut live = "original".into(); + let after_undo = Context { + revision: 9, + ..context() + }; + assert_eq!( + p.confirm(&mut live, &after_undo), + Err(FinishError::ContextChanged) + ); + assert_eq!(live, "original"); + Ok(()) + } + #[test] + fn matching_ticket_does_not_allow_confirmation_after_failed_plan() -> Result<(), &'static str> { + let mut p = Panel::new(); + let ticket = p.start("original", context())?; + assert!(p.receive(ticket, Err("bad archive".into()))); + let mut live = "original".into(); + assert_eq!( + p.confirm(&mut live, &context()), + Err(FinishError::InvalidProposal) + ); + assert_eq!(live, "original"); + Ok(()) + } + #[test] + fn duplicate_result_and_duplicate_confirmation_are_rejected() -> Result<(), &'static str> { + let mut p = Panel::new(); + let ticket = p.start("original", context())?; + assert!(p.receive(ticket, Ok("proposal".into()))); + assert!(!p.receive(ticket, Ok("duplicate".into()))); + let mut live = "original".into(); + assert_eq!(p.confirm(&mut live, &context()), Ok(true)); + assert_eq!( + p.confirm(&mut live, &context()), + Err(FinishError::InvalidProposal) + ); + assert_eq!(live, "proposal"); + Ok(()) + } + #[test] + fn no_op_produces_no_change() -> Result<(), &'static str> { + let mut p = Panel::new(); + let ticket = p.start("original", context())?; + p.receive(ticket, Ok("original".into())); + let mut live = "original".into(); + assert_eq!(p.confirm(&mut live, &context()), Ok(false)); + Ok(()) + } + #[test] + fn generation_exhaustion_preserves_current_request() -> Result<(), &'static str> { + let mut p = Panel::new(); + let ticket = p.start("original", context())?; + p.generation = u64::MAX; + assert_eq!(p.start("other", context()), Err("generation exhausted")); + assert_eq!(p.state, State::Planning(ticket)); + Ok(()) + } +} diff --git a/examples/toolkit-boundaries/Cargo.lock b/examples/toolkit-boundaries/Cargo.lock new file mode 100644 index 0000000..3616fcf --- /dev/null +++ b/examples/toolkit-boundaries/Cargo.lock @@ -0,0 +1,3638 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "aho-corasick" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" +dependencies = [ + "memchr", +] + +[[package]] +name = "allocator-api2" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" + +[[package]] +name = "android_system_properties" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae221649c9976a6f6c56ae1facf410f3ddb33cc661c4b7b61020a912d4237fbc" +dependencies = [ + "libc", +] + +[[package]] +name = "annotate-snippets" +version = "0.12.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0258346f92c78dbc5b336b9a5b27c64447aa10643bc64e651db2edb145361564" +dependencies = [ + "anstyle", + "memchr", + "unicode-width", +] + +[[package]] +name = "anstyle" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000" + +[[package]] +name = "anyhow" +version = "1.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" + +[[package]] +name = "approx" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6" +dependencies = [ + "num-traits", +] + +[[package]] +name = "arrayvec" +version = "0.7.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56" + +[[package]] +name = "autocfg" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" + +[[package]] +name = "bincode" +version = "1.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" +dependencies = [ + "serde", +] + +[[package]] +name = "bincode" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36eaf5d7b090263e8150820482d5d93cd964a81e4019913c972f4edcc6edb740" +dependencies = [ + "serde", + "unty", +] + +[[package]] +name = "bitflags" +version = "2.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06" + +[[package]] +name = "bon" +version = "3.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a05442cd7005532d0cfedec676b5b9333d2b4c7c3afabe2b1a9ce2742fbe2ee6" +dependencies = [ + "bon-macros", +] + +[[package]] +name = "bon-macros" +version = "3.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93833e97ac7c46ba97045afcf247238c27057538fcf2f06344662ddd5f567be6" +dependencies = [ + "darling", + "ident_case", + "prettyplease 0.3.0", + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "borsh" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "553c5d846a6ba5150c65e3b1b8ec073bcf1abc20f9b7220de384a4443ea4e20a" +dependencies = [ + "bytes", + "cfg_aliases", +] + +[[package]] +name = "bumpalo" +version = "3.20.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87a0cf66fd1eb2fb7b822cb78370d82303750809bc6ba855f3f58e517d3238db" + +[[package]] +name = "by_address" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64fa3c856b712db6612c019f14756e64e4bcea13337a6b33b696333a9eaa2d06" + +[[package]] +name = "bytemuck" +version = "1.25.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797" +dependencies = [ + "bytemuck_derive", +] + +[[package]] +name = "bytemuck_derive" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a1f896587b6f2c069c73d2f0913e2d590c3990285cd2f0b6aa02b786b4c679c" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "byteorder-lite" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" + +[[package]] +name = "bytes" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" + +[[package]] +name = "castaway" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dec551ab6e7578819132c713a93c022a05d60159dc86e7a7050223577484c55a" +dependencies = [ + "rustversion", +] + +[[package]] +name = "cc" +version = "1.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33ef9e3e8154a45c7a95cff4c1299702106ad94062d7bb85fdc5d3a5afd91d45" +dependencies = [ + "find-msvc-tools", + "shlex", +] + +[[package]] +name = "cfg-if" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" + +[[package]] +name = "cfg_aliases" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527" + +[[package]] +name = "chrono" +version = "0.4.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327" +dependencies = [ + "iana-time-zone", + "js-sys", + "num-traits", + "wasm-bindgen", + "windows-link", +] + +[[package]] +name = "clru" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "197fd99cb113a8d5d9b6376f3aa817f32c1078f2343b714fff7d2ca44fdf67d5" +dependencies = [ + "hashbrown 0.16.1", +] + +[[package]] +name = "compact_str" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9dfdd1c2274d9aa354115b09dc9a901d6c5576818cdf70d14cae2bdb47df00ab" +dependencies = [ + "castaway", + "cfg-if", + "itoa", + "rustversion", + "ryu", + "static_assertions", +] + +[[package]] +name = "compact_str" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "79fcda08c33bb58b97008b2cdada6622500e949e060f5913361763121abd2416" +dependencies = [ + "castaway", + "cfg-if", + "itoa", + "static_assertions", + "zmij", +] + +[[package]] +name = "console_error_panic_hook" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a06aeb73f470f66dcdbf7223caeebb85984942f22f1adb2a088cf9668146bbbc" +dependencies = [ + "cfg-if", + "wasm-bindgen", +] + +[[package]] +name = "const-field-offset" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d535c69e75b4e3c69e17205b5b37a91936c54086cecd339b70071500786acb9c" +dependencies = [ + "const-field-offset-macro", + "field-offset", +] + +[[package]] +name = "const-field-offset-macro" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93d5848843a221ac268cfdd6bfd14e68d5d3dfa79d52c880aafab93f9517fb74" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "const_format" +version = "0.2.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3decb4d6965448659923544a634a0571ba44cede4e11ef15a5a317126840454" +dependencies = [ + "const_format_proc_macros", + "konst", +] + +[[package]] +name = "const_format_proc_macros" +version = "0.2.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "941b570269a642506f08cb5b688c04bfa6cfd41a26f8bcdc49db8fd00c0ab659" +dependencies = [ + "proc-macro2", + "quote", + "unicode-xid", +] + +[[package]] +name = "convert_case" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "633458d4ef8c78b72454de2d54fd6ab2e60f9e02be22f3c6104cdc8a4e0fceb9" +dependencies = [ + "unicode-segmentation", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "countme" +version = "3.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7704b5fdd17b18ae31c4c1da5a2e0305a2bf17b5249300a9ee9ed7b72114c636" + +[[package]] +name = "crc32fast" +version = "1.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b929dd2a135771f40afabd1073f85eed59c800b7c61901e5c254270497dad64" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "critical-section" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "790eea4361631c5e7d22598ecd5723ff611904e3344ce8720784c93e3d83d40b" + +[[package]] +name = "crossterm" +version = "0.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8b9f2e4c67f833b660cdb0a3523065869fb35570177239812ed4c905aeff87b" +dependencies = [ + "bitflags", + "crossterm_winapi", + "derive_more", + "document-features", + "mio", + "parking_lot", + "rustix", + "signal-hook", + "signal-hook-mio", + "winapi", +] + +[[package]] +name = "crossterm_winapi" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b" +dependencies = [ + "winapi", +] + +[[package]] +name = "darling" +version = "0.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed17f5901b6630b993ca003def43f2f8ef4014fc13b047b57aad617ff32bc2ec" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6837e2cf7485aaae18f86181d2f0e9a7ed297a025e220aeabf63fdebd3a2ddff" +dependencies = [ + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn 3.0.10", +] + +[[package]] +name = "darling_macro" +version = "0.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ac7135c3ef02b2f7833bbeb1be5ba7f966dcde8a87c6b87f65a778d71a02785" +dependencies = [ + "darling_core", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "data-url" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be1e0bca6c3637f992fc1cc7cbc52a78c1ef6db076dbf1059c4323d6a2048376" + +[[package]] +name = "deranged" +version = "0.5.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e9de72ce2ad1f90dc62fa25f0f430ef85eb4b0d8fa0be4f30373bc40a21d28e" + +[[package]] +name = "derive_more" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d751e9e49156b02b44f9c1815bcb94b984cdcc4396ecc32521c739452808b134" +dependencies = [ + "derive_more-impl", +] + +[[package]] +name = "derive_more-impl" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb" +dependencies = [ + "convert_case", + "proc-macro2", + "quote", + "rustc_version", + "syn 2.0.119", + "unicode-xid", +] + +[[package]] +name = "dioxus-core" +version = "0.7.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b232228ada232c0adc151e41ebd9ef70cc04683db097fa0dc6015979fa01722" +dependencies = [ + "anyhow", + "const_format", + "dioxus-core-types", + "futures-channel", + "futures-util", + "generational-box", + "longest-increasing-subsequence", + "rustc-hash 2.1.3", + "rustversion", + "slab", + "slotmap", + "subsecond", + "tracing", +] + +[[package]] +name = "dioxus-core-types" +version = "0.7.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96007ed6cbad951dfed82d83c581aabd95bc591f351f5666d454ddbe7845b324" + +[[package]] +name = "dioxus-signals" +version = "0.7.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95d85e36fcaf7abdc986836801bf248776da7d5961f5fac65fdbf5ed491afb4f" +dependencies = [ + "dioxus-core", + "futures-channel", + "futures-util", + "generational-box", + "parking_lot", + "rustc-hash 2.1.3", + "tracing", + "warnings", +] + +[[package]] +name = "dispatch2" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38" +dependencies = [ + "bitflags", + "objc2", +] + +[[package]] +name = "displaydoc" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "dlib" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab8ecd87370524b461f8557c119c405552c396ed91fc0a8eec68679eab26f94a" +dependencies = [ + "libloading", +] + +[[package]] +name = "document-features" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4b8a88685455ed29a21542a33abd9cb6510b6b129abadabdcef0f4c55bc8f61" +dependencies = [ + "litrs", +] + +[[package]] +name = "dyn-clone" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" + +[[package]] +name = "edit-session" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6687ebc3ff5d798d14e39ad9fff545c46f94004d98113ed50168676dd323e4c6" + +[[package]] +name = "edit-session-toolkit-boundaries" +version = "0.0.0" +dependencies = [ + "dioxus-core", + "dioxus-signals", + "edit-session", + "futures", + "iced_runtime", + "ratatui-core", + "slint", + "sycamore-reactive", + "tachyonfx", + "tuirealm", + "vizia_id", + "yew", +] + +[[package]] +name = "either" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be" + +[[package]] +name = "equivalent" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826" + +[[package]] +name = "errno" +version = "0.3.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e35d6e78f4cebb90e51d543db8fe41528851d6deeef6ef21ebd4bfdc1e784776" +dependencies = [ + "libc", + "windows-sys", +] + +[[package]] +name = "euclid" +version = "0.22.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1a05365e3b1c6d1650318537c7460c6923f1abdd272ad6842baa2b509957a06" +dependencies = [ + "num-traits", +] + +[[package]] +name = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "field-offset" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f" +dependencies = [ + "memoffset", + "rustc_version", +] + +[[package]] +name = "find-msvc-tools" +version = "0.1.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48" + +[[package]] +name = "fixed_decimal" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2214fb00f669ee96bee5bb29dfb1ddabe058b2bc426817efc79afa03c9bc55ae" +dependencies = [ + "displaydoc", + "smallvec", + "writeable", +] + +[[package]] +name = "flate2" +version = "1.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "626d4928326b646e70f65ed36fc7cf9f206bdb68a0019ee7c6b4709da4e084c4" +dependencies = [ + "crc32fast", + "miniz_oxide 0.9.1", + "zlib-rs", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + +[[package]] +name = "font-types" +version = "0.12.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "835ae9d781464a79026cde387f9cbc650c9a4909d7cf7e658b127e3c35d2f35d" +dependencies = [ + "bytemuck", +] + +[[package]] +name = "fontique" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbf1df16263783918b7da396077521f92b729ef7c429444dfcf03581f1448b77" +dependencies = [ + "hashbrown 0.17.1", + "linebender_resource_handle", + "memmap2", + "objc2", + "objc2-core-foundation", + "objc2-core-text", + "objc2-foundation", + "parlance", + "read-fonts", + "roxmltree", + "smallvec", + "windows", + "windows-core", + "yeslogic-fontconfig-sys", +] + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "futures" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-channel" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e" + +[[package]] +name = "futures-executor" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "031b47cf1a3c6cc8bc2fc76cd437f521619387907d469316e7c0bc278f1f5432" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed" + +[[package]] +name = "futures-macro" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "futures-sink" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d" + +[[package]] +name = "futures-task" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd" + +[[package]] +name = "futures-util" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "generational-box" +version = "0.7.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8b2dc9b873cd1a8adb80aa5dcef9a8205f781a8a313d5ffb867248cb3bcb764" +dependencies = [ + "parking_lot", + "tracing", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "wasi", + "wasm-bindgen", +] + +[[package]] +name = "glam" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "151665d9be52f9bb40fc7966565d39666f2d1e69233571b71b87791c7e0528b3" + +[[package]] +name = "gloo" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d15282ece24eaf4bd338d73ef580c6714c8615155c4190c781290ee3fa0fd372" +dependencies = [ + "gloo-console", + "gloo-dialogs", + "gloo-events", + "gloo-file", + "gloo-history", + "gloo-net", + "gloo-render", + "gloo-storage", + "gloo-timers", + "gloo-utils", + "gloo-worker", +] + +[[package]] +name = "gloo-console" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a17868f56b4a24f677b17c8cb69958385102fa879418052d60b50bc1727e261" +dependencies = [ + "gloo-utils", + "js-sys", + "serde", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "gloo-dialogs" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf4748e10122b01435750ff530095b1217cf6546173459448b83913ebe7815df" +dependencies = [ + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "gloo-events" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27c26fb45f7c385ba980f5fa87ac677e363949e065a083722697ef1b2cc91e41" +dependencies = [ + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "gloo-file" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97563d71863fb2824b2e974e754a81d19c4a7ec47b09ced8a0e6656b6d54bd1f" +dependencies = [ + "gloo-events", + "js-sys", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "gloo-history" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "903f432be5ba34427eac5e16048ef65604a82061fe93789f2212afc73d8617d6" +dependencies = [ + "getrandom", + "gloo-events", + "gloo-utils", + "serde", + "serde-wasm-bindgen", + "serde_urlencoded", + "thiserror 1.0.69", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "gloo-net" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43aaa242d1239a8822c15c645f02166398da4f8b5c4bae795c1f5b44e9eee173" +dependencies = [ + "futures-channel", + "futures-core", + "futures-sink", + "gloo-utils", + "http", + "js-sys", + "pin-project", + "serde", + "serde_json", + "thiserror 1.0.69", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "gloo-render" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56008b6744713a8e8d98ac3dcb7d06543d5662358c9c805b4ce2167ad4649833" +dependencies = [ + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "gloo-storage" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fbc8031e8c92758af912f9bc08fbbadd3c6f3cfcbf6b64cdf3d6a81f0139277a" +dependencies = [ + "gloo-utils", + "js-sys", + "serde", + "serde_json", + "thiserror 1.0.69", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "gloo-timers" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbb143cf96099802033e0d4f4963b19fd2e0b728bcf076cd9cf7f6634f092994" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "gloo-utils" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b5555354113b18c547c1d3a98fbf7fb32a9ff4f6fa112ce823a21641a0ba3aa" +dependencies = [ + "js-sys", + "serde", + "serde_json", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "gloo-worker" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "085f262d7604911c8150162529cefab3782e91adb20202e8658f7275d2aefe5d" +dependencies = [ + "bincode 1.3.3", + "futures", + "gloo-utils", + "gloo-worker-macros", + "js-sys", + "pinned", + "serde", + "thiserror 1.0.69", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "gloo-worker-macros" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "956caa58d4857bc9941749d55e4bd3000032d8212762586fa5705632967140e7" +dependencies = [ + "proc-macro-crate 1.3.1", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "harfrust" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c03d949a14aa089bbb282f7dd76a498a7f684428e4257202efc119ec010376f9" +dependencies = [ + "bitflags", + "bytemuck", + "read-fonts", + "smallvec", +] + +[[package]] +name = "hashbrown" +version = "0.14.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" + +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" +dependencies = [ + "allocator-api2", + "equivalent", + "foldhash", +] + +[[package]] +name = "hashbrown" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" +dependencies = [ + "allocator-api2", + "equivalent", + "foldhash", +] + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "hermit-abi" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284" + +[[package]] +name = "htmlparser" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48ce8546b993eaf241d69ded33b1be6d205dd9857ec879d9d18bd05d3676e144" + +[[package]] +name = "http" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" +dependencies = [ + "bytes", + "fnv", + "itoa", +] + +[[package]] +name = "i-slint-backend-selector" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b824c2cce2e9f766eb42138a0ac1ec93d095dd9cd45a2dfa650dd3e6558cdfd9" +dependencies = [ + "cfg_aliases", + "i-slint-common", + "i-slint-core", + "i-slint-core-macros", +] + +[[package]] +name = "i-slint-common" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0d03eef528cd0aec45f3cc9d557f4dbe952433f8e29a46576e7e9c36264eeff" +dependencies = [ + "derive_more", + "euclid", + "fontique", + "htmlparser", + "icu_decimal", + "icu_locale_core", + "icu_provider", + "objc2", + "pulldown-cmark", + "skrifa", +] + +[[package]] +name = "i-slint-compiler" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aba9cffaff13694d0123a43f3cb1dad6e6df9ba8fb7dcffad882aaed87e0cef0" +dependencies = [ + "annotate-snippets", + "by_address", + "data-url", + "derive_more", + "either", + "i-slint-common", + "icu_normalizer", + "icu_properties", + "indexmap", + "itertools 0.15.0", + "lyon_extra", + "lyon_path", + "num_enum", + "once_cell", + "proc-macro2", + "quote", + "rowan", + "serde", + "serde_json", + "smol_str 0.3.7", + "strum", + "syn 3.0.10", + "typed-index-collections", + "unicode-segmentation", + "url", +] + +[[package]] +name = "i-slint-core" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9590458a3ba4ad8e66a6b572dbe758cc5d4f84f57e682a097358e4fe0f02b006" +dependencies = [ + "bitflags", + "bytemuck", + "chrono", + "clru", + "const-field-offset", + "derive_more", + "euclid", + "i-slint-common", + "i-slint-core-macros", + "icu_normalizer", + "image", + "js-sys", + "lyon_algorithms", + "lyon_extra", + "lyon_geom", + "lyon_path", + "num-traits", + "objc2", + "objc2-app-kit", + "objc2-foundation", + "once_cell", + "parley", + "pin-project", + "pin-weak", + "portable-atomic", + "raw-window-handle", + "rgb", + "scopeguard", + "skrifa", + "slab", + "strum", + "swash", + "sys-locale", + "taffy", + "unicode-segmentation", + "vtable", + "wasm-bindgen", + "web-sys", + "web-time", + "windows", +] + +[[package]] +name = "i-slint-core-macros" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aeb9b5ef5c97fa81a39f276e6c15c6826b12ada401891501cc5b9ecf36f6f500" +dependencies = [ + "quote", + "serde_json", + "syn 3.0.10", +] + +[[package]] +name = "i-slint-renderer-software" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe9a36048b8873b672454eb0b32b904472561bcbca6648ffaa908ed7d38e0111" +dependencies = [ + "bytemuck", + "clru", + "derive_more", + "euclid", + "i-slint-common", + "i-slint-core", + "lyon_path", + "num-traits", + "skrifa", + "swash", + "zeno", +] + +[[package]] +name = "iana-time-zone" +version = "0.1.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "iced_core" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91ab1937d699403e7e69252ae743a902bcee9f4ab2052cc4c9a46fcf34729d85" +dependencies = [ + "bitflags", + "bytes", + "glam", + "lilt", + "log", + "num-traits", + "rustc-hash 2.1.3", + "smol_str 0.2.2", + "thiserror 2.0.21", + "web-time", +] + +[[package]] +name = "iced_futures" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c0c85ccad42dfbec7293c36c018af0ea0dbcc52d137a4a9a0b0f6822a3fdf0a" +dependencies = [ + "futures", + "iced_core", + "log", + "rustc-hash 2.1.3", + "wasm-bindgen-futures", + "wasmtimer", +] + +[[package]] +name = "iced_runtime" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1889b819ce4c06674183242e336c8d49465665441396914dc07cc86f44fa8d4" +dependencies = [ + "bytes", + "iced_core", + "iced_futures", + "raw-window-handle", + "thiserror 2.0.21", +] + +[[package]] +name = "icu_collections" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe090a42a0d3140fed8c63263ed1fecc02422cb2f4bfe55cd8de2de1b8e105dd" +dependencies = [ + "displaydoc", + "potential_utf", + "utf8_iter", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_decimal" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1150ad5e272740670464934ee76facda43ef2e11f85c27b7ba76ccb33edf2d05" +dependencies = [ + "displaydoc", + "fixed_decimal", + "icu_decimal_data", + "icu_locale_core", + "icu_locale_fallback", + "icu_plurals", + "icu_provider", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_decimal_data" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5595ab78370d48abd24a062f3db115d5108dd0b65634352036cae532aebb0df8" + +[[package]] +name = "icu_locale_core" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25d29b57c17c6528d0dc4c2141cfa2d08200465acb537a3909c8b9b8a4a984c0" +dependencies = [ + "displaydoc", + "litemap", + "serde", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_locale_fallback" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "406e9ae5b95d8aa37db6293405931b766a6172d1848daee22d70eb44aa78a43c" +dependencies = [ + "icu_locale_core", + "icu_locale_fallback_data", + "icu_provider", + "potential_utf", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_locale_fallback_data" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3632ebbd0c5c3637ba1a40bdf8288f2cb9d2268e73441a69d5fc73d7cfbaa87c" + +[[package]] +name = "icu_normalizer" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "404a3b8c486f205c87fe7f23ab6894d84a4ad76d6e4671ae1981ba7def87c599" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20f0088bfb7441f7a37fa0c9e20cb1e9cba1cac6b9ce8cd2a6dc44294f8e8cbc" + +[[package]] +name = "icu_plurals" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ef046647b445acf95ce0f8083fa292467d3df649959fa9a20f3f8abfd957c5d" +dependencies = [ + "fixed_decimal", + "icu_locale_fallback", + "icu_plurals_data", + "icu_provider", + "zerovec", +] + +[[package]] +name = "icu_plurals_data" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d43ff7df2c1a1d41588a6ddcba354d513d4a3e10eec22c06fe56d13c12a848ea" + +[[package]] +name = "icu_properties" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ea83d991c56158f7cf898bf86436c1dfe7c07ee82fe88951f2695c9f37a379f" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b98f29af82d02b163fe50161388350e743bb3107cc8e8c2f7314cb505faddfcf" + +[[package]] +name = "icu_provider" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "413099315636c588ee8f011190b329b971a09a8fae9d157e01dcae8379468514" +dependencies = [ + "displaydoc", + "icu_locale_core", + "serde", + "stable_deref_trait", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_segmenter" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61b195dc605f81aa181bec9b3bd14e26cc71b903e4644f6af578ca9772c7a710" +dependencies = [ + "icu_collections", + "icu_locale_fallback", + "icu_provider", + "icu_segmenter_data", + "potential_utf", + "smallvec", + "utf8_iter", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_segmenter_data" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "913a7d294ad056474749152107309fdee3ec17d2482d1ab70fdc61a81c64b9a3" + +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "image" +version = "0.25.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85ab80394333c02fe689eaf900ab500fbd0c2213da414687ebf995a65d5a6104" +dependencies = [ + "bytemuck", + "byteorder-lite", + "moxcms", + "num-traits", + "png", + "zune-core", + "zune-jpeg", +] + +[[package]] +name = "implicit-clone" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1689b939ee35e3a075b0834b5672efd43aec8a6e81a1c6002b76a5ca2f211ae0" +dependencies = [ + "implicit-clone-derive", + "indexmap", +] + +[[package]] +name = "implicit-clone-derive" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "699c1b6d335e63d0ba5c1e1c7f647371ce989c3bcbe1f7ed2b85fa56e3bd1a21" +dependencies = [ + "quote", + "syn 2.0.119", +] + +[[package]] +name = "indexmap" +version = "2.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855" +dependencies = [ + "equivalent", + "hashbrown 0.17.1", +] + +[[package]] +name = "indoc" +version = "2.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a37b2691796cffeb8a8cd305ac66e65841559f147f4e63231d0eafa4db5384d1" +dependencies = [ + "rustversion", +] + +[[package]] +name = "instability" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c3b5acc1e2fd9375041a388da33d1eb8aed5f7a8c0dd3543e3ea2805adfbe20" +dependencies = [ + "darling", + "indoc", + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "itertools" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285" +dependencies = [ + "either", +] + +[[package]] +name = "itertools" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b4baf93f58d4425749ca49a51c50ebab072c5df6994d08fed93541c331481dc" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "1.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4" + +[[package]] +name = "js-sys" +version = "0.3.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8dc09d2154098bbf4ef54eab6b117a3c24cbbffe94046b16ee6d6d4510584d3a" +dependencies = [ + "cfg-if", + "futures-util", + "wasm-bindgen", +] + +[[package]] +name = "kasuari" +version = "0.4.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72f14c90e40a6133f4805b83542a7ed7364f56070b447f56e7f4e90297122209" +dependencies = [ + "hashbrown 0.17.1", + "portable-atomic", + "thiserror 2.0.21", +] + +[[package]] +name = "konst" +version = "0.2.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "128133ed7824fcd73d6e7b17957c5eb7bacb885649bd8c69708b2331a10bcefb" +dependencies = [ + "konst_macro_rules", +] + +[[package]] +name = "konst_macro_rules" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4933f3f57a8e9d9da04db23fb153356ecaf00cbd14aee46279c33dc80925c37" + +[[package]] +name = "lazy-regex" +version = "3.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0a2cce8a22920a29fdcc8c9170aa5d29edd9fbcf8bea856e24c2cb1c2419f67" +dependencies = [ + "lazy-regex-proc_macros", + "once_cell", + "regex", +] + +[[package]] +name = "lazy-regex-proc_macros" +version = "3.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f1e4b1f1d8c71edb4ff2b2150ec4606445fd2ddf67ddc097655daf59286baa6" +dependencies = [ + "proc-macro2", + "quote", + "regex", + "syn 3.0.10", +] + +[[package]] +name = "libc" +version = "0.2.191" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a" + +[[package]] +name = "libloading" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55" +dependencies = [ + "cfg-if", + "windows-link", +] + +[[package]] +name = "libm" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" + +[[package]] +name = "lilt" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "337d4c256f7d9f2dbd633891d48ace853efa5b1554122d9220b172ad9c03c3a9" +dependencies = [ + "web-time", +] + +[[package]] +name = "line-clipping" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e752191d037c44ad111a8caa762921926658402f01cc1253f7bef2020ece4f5e" +dependencies = [ + "bitflags", +] + +[[package]] +name = "linebender_resource_handle" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4" + +[[package]] +name = "linux-raw-sys" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" + +[[package]] +name = "litemap" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae" + +[[package]] +name = "litrs" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4744e383959f0db86ede514b809b1c53251889093803c05267acc7d4e7030d70" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c" + +[[package]] +name = "longest-increasing-subsequence" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3bd0dd2cd90571056fdb71f6275fada10131182f84899f4b2a916e565d81d86" + +[[package]] +name = "lru" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef9ac18847474e638e3702b76c65d4eb93428471a74778ef0f1be711717f89b5" +dependencies = [ + "hashbrown 0.17.1", +] + +[[package]] +name = "lyon_algorithms" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3a6b9d4e8b48acd531fbf1241ad9b270df6e60b6b92bdea1469f4f40899d805" +dependencies = [ + "lyon_path", + "num-traits", +] + +[[package]] +name = "lyon_extra" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7755f08423275157ad1680aaecc9ccb7e0cc633da3240fea2d1522935cc15c72" +dependencies = [ + "lyon_path", + "thiserror 2.0.21", +] + +[[package]] +name = "lyon_geom" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d82dd26aa4dc0b5b70b9115de59824842bcb43cf4a28e1b1e6d0ad148c93f93e" +dependencies = [ + "arrayvec", + "euclid", + "num-traits", +] + +[[package]] +name = "lyon_path" +version = "1.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c463f9c428b7fc5ec885dcd39ce4aa61e29111d0e33483f6f98c74e89d8621e" +dependencies = [ + "lyon_geom", + "num-traits", +] + +[[package]] +name = "memchr" +version = "2.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" + +[[package]] +name = "memfd" +version = "0.6.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57804b2c9b69967f1536a56f86297e367a33b19e98852ed624b84551cdbc0d90" +dependencies = [ + "rustix", +] + +[[package]] +name = "memmap2" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b0ca1155a9ecc25aa12e8313a119f32edf0255fea2f44839c4ac0a12b2ac157" +dependencies = [ + "libc", +] + +[[package]] +name = "memoffset" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +dependencies = [ + "autocfg", +] + +[[package]] +name = "micromath" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3c8dda44ff03a2f238717214da50f65d5a53b45cd213a7370424ffdb6fae815" + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "miniz_oxide" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "mio" +version = "1.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20521a903f02b0a573cd6840e9d0a5a0cc043d361fe924092cd70f8556cc9c4a" +dependencies = [ + "libc", + "log", + "wasi", + "windows-sys", +] + +[[package]] +name = "moxcms" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb85c154ba489f01b25c0d36ae69a87e4a1c73a72631fc6c0eb6dde34a73e44b" +dependencies = [ + "num-traits", + "pxfm", +] + +[[package]] +name = "num-conv" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441" + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", + "libm", +] + +[[package]] +name = "num_cpus" +version = "1.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91df4bbde75afed763b708b7eee1e8e7651e02d97f6d5dd763e89367e957b23b" +dependencies = [ + "hermit-abi", + "libc", +] + +[[package]] +name = "num_enum" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26" +dependencies = [ + "num_enum_derive", + "rustversion", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8" +dependencies = [ + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "num_threads" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cabcc654086861f9e1bc5115258de62ef92c79b20f4615a1b0cc57c4e82027d4" +dependencies = [ + "libc", +] + +[[package]] +name = "objc2" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08849bbd4767dfae9457696856ae1c84fe4e0281bbe4a7abff2d0e06fb7981f8" +dependencies = [ + "objc2-encode", +] + +[[package]] +name = "objc2-app-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c" +dependencies = [ + "bitflags", + "objc2", + "objc2-core-foundation", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" +dependencies = [ + "bitflags", + "dispatch2", + "objc2", +] + +[[package]] +name = "objc2-core-text" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d" +dependencies = [ + "bitflags", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-encode" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33" + +[[package]] +name = "objc2-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" +dependencies = [ + "bitflags", + "objc2", + "objc2-core-foundation", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" +dependencies = [ + "critical-section", + "portable-atomic", +] + +[[package]] +name = "palette" +version = "0.7.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddeed8580d347d2abf3dcf06a5f0b3dc020258338526b277847cd4248a70fc64" +dependencies = [ + "approx", + "libm", + "palette_derive", + "palette_math", +] + +[[package]] +name = "palette_derive" +version = "0.7.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88537020289b719d81be994ccf1bbf4990f477e2f69ee52fe3e45f43a02e56be" +dependencies = [ + "by_address", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "palette_math" +version = "0.7.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e6eb142958d64335fb0e345c5b9ead2ecd6fc438c307e9d7d3c4fd428dbaf12" +dependencies = [ + "libm", +] + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-link", +] + +[[package]] +name = "parlance" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73072a9470554c8e794778acece2312661218aaabb635600957d952cf01c716e" +dependencies = [ + "bytemuck", +] + +[[package]] +name = "parley" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61bd0c0c1737f0b3d3726dc06b225083af213b61913e4fbae1670613a106c6ce" +dependencies = [ + "fontique", + "hashbrown 0.17.1", + "linebender_resource_handle", + "parlance", + "parley_engine", + "smallvec", +] + +[[package]] +name = "parley_data" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c43b63f808f6cc8f4a3b07de0d62a977bddd2e0bb5c232bd9e93ba8ef92e5e4b" +dependencies = [ + "icu_collections", + "icu_properties", +] + +[[package]] +name = "parley_emoji" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c4482d912d7671a7cd2089794f90ef3bb5f5f8c738230fb0fcd50fa020f0ed3" + +[[package]] +name = "parley_engine" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b74c0d373e462e504ad4436710a39f099e18e848e1ee711f70cd2dcd5a69b290" +dependencies = [ + "fontique", + "harfrust", + "hashbrown 0.17.1", + "icu_locale_core", + "icu_normalizer", + "icu_properties", + "icu_segmenter", + "linebender_resource_handle", + "parlance", + "parley_data", + "parley_emoji", + "skrifa", +] + +[[package]] +name = "paste" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "pin-project" +version = "1.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2466b2336ed02bcdca6b294417127b90ec92038d1d5c4fbeac971a922e0e0924" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c96395f0a926bc13b1c17622aaddda1ecb55d49c8f1bf9777e4d877800a43f8b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "pin-utils" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13bee6c73da26345c729282832b60b0363cf3dd9f4bfd81d8551b7a1c889a113" + +[[package]] +name = "pin-weak" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b330c9d1b92dfe68442ca20b009c717d5f0b1e3cf4965e62f704c3c6e95a1305" + +[[package]] +name = "pinned" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a829027bd95e54cfe13e3e258a1ae7b645960553fb82b75ff852c29688ee595b" +dependencies = [ + "futures", + "rustversion", + "thiserror 1.0.69", +] + +[[package]] +name = "pkg-config" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548" + +[[package]] +name = "png" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61" +dependencies = [ + "bitflags", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide 0.8.9", +] + +[[package]] +name = "portable-atomic" +version = "1.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85" +dependencies = [ + "critical-section", +] + +[[package]] +name = "potential_utf" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661" +dependencies = [ + "serde_core", + "writeable", + "zerovec", +] + +[[package]] +name = "powerfmt" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a6394b9e965e73d0a289ee54f589087e2c676aedf60885baf52c76b771e4958" + +[[package]] +name = "prettyplease" +version = "0.2.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" +dependencies = [ + "proc-macro2", + "syn 2.0.119", +] + +[[package]] +name = "prettyplease" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bfe0f4c752e450fc2faf62654f1c134747922825d5b04ca717b8874f41a40c0" +dependencies = [ + "proc-macro2", + "syn 3.0.10", +] + +[[package]] +name = "proc-macro-crate" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" +dependencies = [ + "once_cell", + "toml_edit 0.19.15", +] + +[[package]] +name = "proc-macro-crate" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" +dependencies = [ + "toml_edit 0.25.19+spec-1.1.0", +] + +[[package]] +name = "proc-macro-error" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" +dependencies = [ + "proc-macro-error-attr", + "proc-macro2", + "quote", + "syn 1.0.109", + "version_check", +] + +[[package]] +name = "proc-macro-error-attr" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +dependencies = [ + "proc-macro2", + "quote", + "version_check", +] + +[[package]] +name = "proc-macro2" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "pulldown-cmark" +version = "0.13.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3db2be46835f013dd3f4fa7f5f7402c537787b54ebb6fe2b94bbdd7e2669bb7b" +dependencies = [ + "bitflags", + "memchr", + "unicase", +] + +[[package]] +name = "pxfm" +version = "0.1.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d55d956fa96f5ec02be2e13af0e20391a5aa83d6a074e3ad368959d0fab299ea" + +[[package]] +name = "quote" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "ratatui" +version = "0.30.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3274ba0a2c5e1bcad2a2005d20f4dc59dad26b2eb0940fb094500dba4099d57d" +dependencies = [ + "instability", + "ratatui-core", + "ratatui-crossterm", + "ratatui-widgets", + "serde", +] + +[[package]] +name = "ratatui-core" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cbb175c433c8e28a809d1f5773a2ae96e68c0ce40db865cbab1020bf33ae479c" +dependencies = [ + "bitflags", + "compact_str 0.9.1", + "critical-section", + "hashbrown 0.17.1", + "itertools 0.14.0", + "kasuari", + "lru", + "palette", + "serde", + "strum", + "thiserror 2.0.21", + "unicode-segmentation", + "unicode-truncate", + "unicode-width", +] + +[[package]] +name = "ratatui-crossterm" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "567584a3b0e6a8203c23de40b4861497266725eb5363dbfd18a1edd603cca9f0" +dependencies = [ + "cfg-if", + "crossterm", + "instability", + "ratatui-core", +] + +[[package]] +name = "ratatui-widgets" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66e3d19bcc9130ca376277d93b60767ff121ace3be06f5f95f81dd68956407d1" +dependencies = [ + "bitflags", + "hashbrown 0.17.1", + "indoc", + "instability", + "itertools 0.14.0", + "line-clipping", + "ratatui-core", + "serde", + "strum", + "time", + "unicode-segmentation", + "unicode-width", +] + +[[package]] +name = "raw-window-handle" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539" + +[[package]] +name = "read-fonts" +version = "0.41.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "046a7d674daf459825b32f5062056d6882db0d2f5a479fbd76ccfc870ac18709" +dependencies = [ + "bytemuck", + "font-types", + "once_cell", +] + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags", +] + +[[package]] +name = "regex" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" + +[[package]] +name = "rgb" +version = "0.8.53" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47b34b781b31e5d73e9fbc8689c70551fd1ade9a19e3e28cfec8580a79290cc4" +dependencies = [ + "bytemuck", +] + +[[package]] +name = "rowan" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14b574c58582fa59fa43a2feb6608b8744184659f08a2e0117e4b8224d95ed61" +dependencies = [ + "countme", + "hashbrown 0.14.5", + "memoffset", + "rustc-hash 1.1.0", + "text-size", +] + +[[package]] +name = "roxmltree" +version = "0.21.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9da7f59328b09405b181fee1018925fad50f157afb43c0c0f5c522c256dd5907" +dependencies = [ + "memchr", +] + +[[package]] +name = "rustc-hash" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" + +[[package]] +name = "rustc-hash" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d" + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "rustix" +version = "1.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa" +dependencies = [ + "bitflags", + "errno", + "libc", + "linux-raw-sys", + "windows-sys", +] + +[[package]] +name = "rustversion" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" + +[[package]] +name = "ryu" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "semver" +version = "1.0.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" + +[[package]] +name = "serde" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde-wasm-bindgen" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8302e169f0eddcc139c70f139d19d6467353af16f9fce27e8c30158036a1e16b" +dependencies = [ + "js-sys", + "serde", + "wasm-bindgen", +] + +[[package]] +name = "serde_core" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "serde_json" +version = "1.0.154" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_urlencoded" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" +dependencies = [ + "form_urlencoded", + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "shlex" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" + +[[package]] +name = "signal-hook" +version = "0.3.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d881a16cf4426aa584979d30bd82cb33429027e42122b169753d6ef1085ed6e2" +dependencies = [ + "libc", + "signal-hook-registry", +] + +[[package]] +name = "signal-hook-mio" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b75a19a7a740b25bc7944bdee6172368f988763b744e3d4dfe753f6b4ece40cc" +dependencies = [ + "libc", + "mio", + "signal-hook", +] + +[[package]] +name = "signal-hook-registry" +version = "1.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" +dependencies = [ + "errno", + "libc", +] + +[[package]] +name = "simd-adler32" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea" + +[[package]] +name = "skrifa" +version = "0.44.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819ab7d62b1d3e72d9d9dea5650bac30424f9111364bb94928dbf5ecad1baa68" +dependencies = [ + "bytemuck", + "read-fonts", +] + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "slint" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19d806f1d4638f4e147cdf6bc038731b77793d4c30bd617f5e615b88b9f8d28b" +dependencies = [ + "const-field-offset", + "i-slint-backend-selector", + "i-slint-common", + "i-slint-core", + "i-slint-core-macros", + "i-slint-renderer-software", + "once_cell", + "pin-weak", + "slint-macros", + "vtable", +] + +[[package]] +name = "slint-macros" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15de34ced1ebc40ec5633253dea490fde282e37183571771dc45a690b2e741bb" +dependencies = [ + "i-slint-compiler", + "proc-macro2", + "quote", + "spin_on", +] + +[[package]] +name = "slotmap" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdd58c3c93c3d278ca835519292445cb4b0d4dc59ccfdf7ceadaab3f8aeb4038" +dependencies = [ + "serde", + "version_check", +] + +[[package]] +name = "smallvec" +version = "1.16.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "149309498a5f7334b12ddae0cad8aba81ce785fe91755068867e017cf98fee46" + +[[package]] +name = "smol_str" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd538fb6910ac1099850255cf94a94df6551fbdd602454387d0adb2d1ca6dead" +dependencies = [ + "serde", +] + +[[package]] +name = "smol_str" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eeb7109d23f319619d4cc0de5464613c8b7b1a09db2774a58101459cf6be2f10" +dependencies = [ + "borsh", + "serde_core", +] + +[[package]] +name = "spin_on" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "076e103ed41b9864aa838287efe5f4e3a7a0362dd00671ae62a212e5e4612da2" +dependencies = [ + "pin-utils", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "strum" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9628de9b8791db39ceda2b119bbe13134770b56c138ec1d3af810d045c04f9bd" +dependencies = [ + "strum_macros", +] + +[[package]] +name = "strum_macros" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab85eea0270ee17587ed4156089e10b9e6880ee688791d45a905f5b1ca36f664" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "subsecond" +version = "0.7.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d350d5788fa94d560d92269266a50efc77b036bfca6675e420b64df7b3211f37" +dependencies = [ + "js-sys", + "libc", + "libloading", + "memfd", + "memmap2", + "serde", + "subsecond-types", + "thiserror 2.0.21", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "subsecond-types" +version = "0.7.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dcf32d66269b5fbb8558334e8d22b657b2f7af0dd2ef56c231541099a862e464" +dependencies = [ + "serde", +] + +[[package]] +name = "swash" +version = "0.2.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c2499c2d826531388872b2268718aed907a39bd785ab0dcfe57fab26283f92e" +dependencies = [ + "skrifa", + "yazi", + "zeno", +] + +[[package]] +name = "sycamore-reactive" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aca468d1209c2d1ae3059fb93aa005e67bbe1f17375a3c0a65135e98a1b58829" +dependencies = [ + "paste", + "slotmap", + "smallvec", +] + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.119" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "3.0.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "synstructure" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "sys-locale" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8eab9a99a024a169fe8a903cf9d4a3b3601109bcc13bd9e3c6fff259138626c4" +dependencies = [ + "js-sys", + "libc", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "tachyonfx" +version = "0.25.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e74555389c0a1c1c20e302994dc6eb478ab8754472b944b79a6558d44f33be3" +dependencies = [ + "bon", + "compact_str 0.10.0", + "micromath", + "ratatui-core", + "thiserror 2.0.21", + "unicode-width", +] + +[[package]] +name = "taffy" +version = "0.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "31f7bd2d97198df05186f93a3a3c306845f40e8b3c22bf9279cdd7e5cf5fea7d" +dependencies = [ + "serde", + "slotmap", +] + +[[package]] +name = "text-size" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f18aa187839b2bdb1ad2fa35ead8c4c2976b64e4363c386d45ac0f7ee85c9233" + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e" +dependencies = [ + "thiserror-impl 2.0.21", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "time" +version = "0.3.55" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdb87b95ec50ddfa440816d227a17b2ccbdda963a316a727fda0fc4334f7d134" +dependencies = [ + "deranged", + "libc", + "num-conv", + "num_threads", + "powerfmt", + "serde_core", + "time-core", +] + +[[package]] +name = "time-core" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109" + +[[package]] +name = "tinystr" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a" +dependencies = [ + "displaydoc", + "serde_core", + "zerovec", +] + +[[package]] +name = "tokio" +version = "1.54.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3" +dependencies = [ + "pin-project-lite", + "tokio-macros", +] + +[[package]] +name = "tokio-macros" +version = "2.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "tokio-stream" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3d06f0b082ba57c26b79407372e57cf2a1e28124f78e9479fe80322cf53420b" +dependencies = [ + "futures-core", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "tokise" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba44a1b36f42a95bd21b5e4acc1468547f75a73e7cf619312408d1f74c7fb687" +dependencies = [ + "futures", + "gloo", + "num_cpus", + "once_cell", + "pin-project", + "pinned", + "tokio", + "tokio-stream", + "wasm-bindgen-futures", +] + +[[package]] +name = "toml_datetime" +version = "0.6.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22cddaf88f4fbc13c51aebbf5f8eceb5c7c5a9da2ac40a13519eb5b0a0e8f11c" + +[[package]] +name = "toml_datetime" +version = "1.1.3+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "173f25c883cd2176a2d8212155638c0a60d484a9d84546d270866f40f56b6e49" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_edit" +version = "0.19.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" +dependencies = [ + "indexmap", + "toml_datetime 0.6.11", + "winnow 0.5.40", +] + +[[package]] +name = "toml_edit" +version = "0.25.19+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd43688c4858d7264ae1cf9a9f874a67c3feb74a883b1cd7bebd6a4ea8307218" +dependencies = [ + "indexmap", + "toml_datetime 1.1.3+spec-1.1.0", + "toml_parser", + "winnow 1.0.5", +] + +[[package]] +name = "toml_parser" +version = "1.1.5+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baa693a8032d7e1cada7d0041e96126df243179ff061456783ac7f12bda4744c" +dependencies = [ + "winnow 1.0.5", +] + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", +] + +[[package]] +name = "tuirealm" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f7d70af0dff16882cfeb423cbec374055e941ac25b205a31f9f5607e831ebac" +dependencies = [ + "bitflags", + "crossterm", + "dyn-clone", + "lazy-regex", + "ratatui", + "thiserror 2.0.21", +] + +[[package]] +name = "typed-index-collections" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "898160f1dfd383b4e92e17f0512a7d62f3c51c44937b23b6ffc3a1614a8eaccd" +dependencies = [ + "bincode 2.0.1", + "serde", +] + +[[package]] +name = "unicase" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "357cc3acc6a036009fd6c973ed009037c732d60d0b4f6c673e9041497482a28f" + +[[package]] +name = "unicode-ident" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" + +[[package]] +name = "unicode-segmentation" +version = "1.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8" + +[[package]] +name = "unicode-truncate" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16b380a1238663e5f8a691f9039c73e1cdae598a30e9855f541d29b08b53e9a5" +dependencies = [ + "itertools 0.14.0", + "unicode-segmentation", + "unicode-width", +] + +[[package]] +name = "unicode-width" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca718471876992059f251e33aafc334346ada08042b7661dd1fe313a9bced557" + +[[package]] +name = "unicode-xid" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" + +[[package]] +name = "unty" +version = "0.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d49784317cd0d1ee7ec5c716dd598ec5b4483ea832a2dced265471cc0f690ae" + +[[package]] +name = "url" +version = "2.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", +] + +[[package]] +name = "utf8_iter" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af3bd9d3e571c26fcce9d033b87ea5ab061b8d2ffe9b7a5675d810d68f03edf0" +dependencies = [ + "utf_types", +] + +[[package]] +name = "utf_types" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "vizia_id" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f37ca95f7c5ac58feb7ddbd9c7b94d57526e8368993d0e3a96902f853fda4373" + +[[package]] +name = "vtable" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b61cfbcacfc3669ee9afb88566e2b5eb7de86ebcf7b81409c3f8a767e0e0e7ce" +dependencies = [ + "const-field-offset", + "portable-atomic", + "stable_deref_trait", + "vtable-macro", +] + +[[package]] +name = "vtable-macro" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66a8daeaea1a2d710306a00be752bda09b11011e4aa0e816ad768348491a1ab6" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "warnings" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64f68998838dab65727c9b30465595c6f7c953313559371ca8bf31759b3680ad" +dependencies = [ + "pin-project", + "tracing", + "warnings-macro", +] + +[[package]] +name = "warnings-macro" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59195a1db0e95b920366d949ba5e0d3fc0e70b67c09be15ce5abb790106b0571" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasm-bindgen" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0181c14ddd6c7b8b0b0132a5f1ea2f32be0d893cd3ea97b6e3b28886b8a3d1c" +dependencies = [ + "cfg-if", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.80" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e14e0327cb5368ad60ccb22d04a9827a693c95a926d8d125e9fa39e0baec501" +dependencies = [ + "js-sys", + "tokio", + "wasm-bindgen", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e931a02a39abdbf66966fc35902b5ed58344750a70885bed4ebb3d8eaf28ed9" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ca4b54280e455bd831e33a6b8e734baf432fe63fbc35c42ac14ce67a043a53a" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 3.0.10", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b1f9c3798725016c6ee5f2f57869ec0831e8bbc0ab0310a86e787e97f41389e" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wasmtimer" +version = "0.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c62b7f338e4397a45d054c15a2b36a93d57cccdda7be11a7d7b045d47b5e70ce" +dependencies = [ + "futures", + "js-sys", + "parking_lot", + "pin-project-lite", + "slab", + "wasm-bindgen", +] + +[[package]] +name = "web-sys" +version = "0.3.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7d179596ff5ec0f6de4db64d54011bde6289cc49603d3a6e4ce3f329207ab88" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web-time" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "windows" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580" +dependencies = [ + "windows-collections", + "windows-core", + "windows-future", + "windows-numerics", +] + +[[package]] +name = "windows-collections" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b2d95af1a8a14a3c7367e1ed4fc9c20e0a26e79551b1454d72583c97cc6610" +dependencies = [ + "windows-core", +] + +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", +] + +[[package]] +name = "windows-future" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb" +dependencies = [ + "windows-core", + "windows-link", + "windows-threading", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-numerics" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26" +dependencies = [ + "windows-core", + "windows-link", +] + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-threading" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37" +dependencies = [ + "windows-link", +] + +[[package]] +name = "winnow" +version = "0.5.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876" +dependencies = [ + "memchr", +] + +[[package]] +name = "winnow" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c3b93199df0ab874cdf0c6a94f0a0dc3423fe41f1cafb62b8bd7b1deb277aef" +dependencies = [ + "memchr", +] + +[[package]] +name = "writeable" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc" + +[[package]] +name = "yazi" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac366ea532fa8ee6a992cec9dea525b1dc284e69702f36c2ab5fbebadc81ec86" + +[[package]] +name = "yeslogic-fontconfig-sys" +version = "6.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d8b8abf912b9a29ff112e1671c97c33636903d13a69712037190e6805af4f76" +dependencies = [ + "dlib", + "once_cell", + "pkg-config", +] + +[[package]] +name = "yew" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c154fadfa97eabdd3f3b79345ceeb9c05ee8f13f76d3d881d17fba618bf558d" +dependencies = [ + "console_error_panic_hook", + "futures", + "gloo", + "implicit-clone", + "indexmap", + "js-sys", + "rustversion", + "serde", + "slab", + "thiserror 2.0.21", + "tokio", + "tokise", + "tracing", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "yew-macro", +] + +[[package]] +name = "yew-macro" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08b883d84a035f57519d057f65a2a07ae25f1884ad485e1a9a523c9d880c1ad" +dependencies = [ + "prettyplease 0.2.37", + "proc-macro-error", + "proc-macro2", + "quote", + "rustversion", + "syn 2.0.119", +] + +[[package]] +name = "yoke" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", + "synstructure", +] + +[[package]] +name = "zeno" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6df3dc4292935e51816d896edcd52aa30bc297907c26167fec31e2b0c6a32524" + +[[package]] +name = "zerofrom" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", + "synstructure", +] + +[[package]] +name = "zerotrie" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "zerovec" +version = "0.11.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40" +dependencies = [ + "serde", + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "zlib-rs" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112" + +[[package]] +name = "zmij" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" + +[[package]] +name = "zune-core" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d56377fd46368984a170bc5aac5567e52ca5da874caa60bea39fcbca78fb658b" + +[[package]] +name = "zune-jpeg" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27bc9d5b815bc103f142aa054f561d9187d191692ec7c2d1e2b4737f8dbd7296" +dependencies = [ + "zune-core", +] diff --git a/examples/toolkit-boundaries/Cargo.toml b/examples/toolkit-boundaries/Cargo.toml new file mode 100644 index 0000000..e4feb23 --- /dev/null +++ b/examples/toolkit-boundaries/Cargo.toml @@ -0,0 +1,70 @@ +[package] +name = "edit-session-toolkit-boundaries" +version = "0.0.0" +edition = "2024" +publish = false + +[workspace] + +[dependencies] +edit-session = "=1.0.0" +dioxus-core = { version = "=0.7.10", optional = true } +dioxus-signals = { version = "=0.7.10", optional = true } +yew = { optional = true, version = "=0.23.0", default-features = false } +sycamore-reactive = { version = "=0.9.4", optional = true } +vizia_id = { version = "=0.4.0", optional = true } +iced_runtime = { version = "=0.14.0", optional = true } +futures = { version = "=0.3.31", optional = true } +slint = { optional = true, version = "=1.19.0", default-features = false, features = ["std", "compat-1-18"] } +tuirealm = { optional = true, version = "=4.1.0", default-features = false, features = ["crossterm"] } + +tachyonfx = { optional = true, version = "=0.25.2", default-features = false, features = ["std"] } +ratatui-core = { version = "=0.1.2", optional = true } + +[features] +default = [] +dioxus = ["dep:dioxus-core", "dep:dioxus-signals"] +yew = ["dep:yew"] +sycamore = ["dep:sycamore-reactive"] +vizia = ["dep:vizia_id"] +iced = ["dep:iced_runtime", "dep:futures"] +slint = ["dep:slint"] +tuirealm = ["dep:tuirealm"] +tachyonfx = ["dep:tachyonfx", "dep:ratatui-core"] + +[[test]] +name = "dioxus" +required-features = ["dioxus"] + +[[test]] +name = "yew" +required-features = ["yew"] + +[[test]] +name = "sycamore" +required-features = ["sycamore"] + +[[test]] +name = "vizia" +required-features = ["vizia"] + +[[test]] +name = "iced" +required-features = ["iced"] + +[[test]] +name = "slint" +required-features = ["slint"] + +[[test]] +name = "tuirealm" +required-features = ["tuirealm"] + +[[test]] +name = "tachyonfx" +required-features = ["tachyonfx"] + +[profile.dev] +debug = 0 +strip = "none" +incremental = false diff --git a/examples/toolkit-boundaries/README.md b/examples/toolkit-boundaries/README.md new file mode 100644 index 0000000..4a349b8 --- /dev/null +++ b/examples/toolkit-boundaries/README.md @@ -0,0 +1,79 @@ +# Toolkit boundaries with the published crate + +This independent workspace uses `edit-session = "=1.0.0"` from crates.io. +Its dependencies are example-only; the main library stays dependency-free. +Run the small host-side recipes without starting a window or terminal: + +```sh +cargo test --locked --manifest-path examples/toolkit-boundaries/Cargo.toml --all-features +cargo clippy --locked --manifest-path examples/toolkit-boundaries/Cargo.toml --all-features --all-targets -- -D warnings +cargo fmt --manifest-path examples/toolkit-boundaries/Cargo.toml --check +``` + +To build only one ecosystem, select its feature, for example: + +```sh +cargo test --locked --manifest-path examples/toolkit-boundaries/Cargo.toml --features tuirealm --test tuirealm +``` + +Available features match the test filenames. None are enabled by default; +`--all-features` explicitly checks all eight. On Ubuntu, the Slint recipe also +requires `libfontconfig1-dev` (`sudo apt-get install libfontconfig1-dev`). The +other recipes do not pull Slint or its system dependency when selected alone. + +Rust 1.99.1 is used for this set of current toolkit versions. This does not change +the core crate's Rust 1.88 minimum. `Cargo.lock` pins the full dependency tree. + +| Recipe | Actual API exercised | Boundary checked | Tests | +| --- | --- | --- | ---: | +| [Dioxus](tests/dioxus.rs), 0.7.10 | `VirtualDom`, `Signal>>`, `with_mut` | Non-Clone draft storage, local Cancel, revision checked at confirmation, single commit | 2 | +| [Yew](tests/yew.rs), 0.23.0 | `Callback::from` / `emit`, `Rc>` host | Duplicate callback cannot reuse a consumed session; late callback reads current revision | 2 | +| [Sycamore](tests/sycamore.rs), reactive 0.9.4 | Reactive root, signals, `update` / `with` | Preview does not publish canonical state; Cancel; commit inside a serial host update | 2 | +| [Vizia](tests/vizia.rs), vizia_id 0.4.0 | `IdManager`, real slot reuse and generation | A recycled slot with equal value is a different target; revision also detects Undo to equal value | 2 | +| [Iced](tests/iced.rs), runtime 0.14.0 | `Task::done`, task stream, `Action::Output` | Carry the unconsumed session through delivery; validate against live state when handling it | 3 | +| [Slint](tests/slint.rs), 1.19.0 | `SharedString`, `VecModel`, `Model::set_row_data` | Independent copy-on-write preview; stable row ID; update the model after acceptance | 3 | +| [tui-realm](tests/tuirealm.rs), 4.1.0 | `Cmd`, `CmdResult`, `State`, `StateValue` | Incomplete text retains the last preview but blocks Submit; Cancel; stale/no-op outcomes | 3 | +| [TachyonFX](tests/tachyonfx.rs), 0.25.2 | `fx::fade_to_fg`, `Effect::process`, real Ratatui buffers | Edit immutable effect settings, render a separate preview, discard it on Cancel, reject a stale selected effect | 3 | + +All 20 native tests pass on macOS ARM. These are executable boundary recipes, +not complete UI applications. Dioxus uses a VirtualDOM scope but no renderer; +Yew does not mount a browser component; Sycamore exercises its reactive engine; +Vizia uses its ID allocator, not its event dispatch. Slint uses no display +backend. Iced tests task delivery without a window/executor loop. tui-realm uses +its public command/state types, not a terminal input driver. TachyonFX compares +actual deterministic buffer output, not human visual preference or frame rate. + +## The host still owns the transaction + +A UI handle is not necessarily a document identity. Store an application-owned +stable ID and revision with the draft. The Vizia allocator example uses a real +recycled ID; the Slint example makes the same point for a row index. The revision +must advance on relevant writes and Undo, even when the value returns to its +original value. These tiny bounded tests use integer increments; production +hosts must handle revision exhaustion and the full document identity. + +`EditSession` is deliberately not Clone. Put it in an `Option` and `take()` it +for confirmation or Cancel; read previews by reference. Share a handle to the +draft slot where needed, not a mutable pointer inside the value snapshot. +Slint's immutable/copy-on-write `SharedString` is tested explicitly. + +Check and apply on the same serialized host path. Do not compute a `Change`, +await a task, then apply it later without checking again. The Iced recipe queues +the session itself and calls `finish` only when its message is delivered. This +is not distributed concurrency control, storage rollback, an Undo stack, or +proof that an external write succeeded. + +## Compare with a local helper + +[`helper_comparison.rs`](../helper_comparison.rs) implements both a local draft +and the library adapter against the same host and behavioral checks: + +```sh +cargo test --locked --example helper_comparison +``` + +A local helper is sufficient for one small editor. The reason to consider this +crate is sharing the same validation/Cancel/staleness rules across several +editors, not a capability unavailable in ordinary Rust. These recipes do not +measure reduced code size, speed, adoption or saved maintenance work. No toolkit +is asked to depend on edit-session, and no framework core changes are required. diff --git a/examples/toolkit-boundaries/tests/dioxus.rs b/examples/toolkit-boundaries/tests/dioxus.rs new file mode 100644 index 0000000..ecf30de --- /dev/null +++ b/examples/toolkit-boundaries/tests/dioxus.rs @@ -0,0 +1,54 @@ +use dioxus_core::{Element, ScopeId, VirtualDom}; +use dioxus_signals::{ReadableExt, Signal, WritableExt}; +use edit_session::{EditSession, FinishError}; +fn app() -> Element { + dioxus_core::VNode::empty() +} +#[test] +fn local_signal_draft_cancel_and_late_confirmation() { + let mut dom = VirtualDom::new(app); + dom.rebuild_in_place(); + dom.in_scope(ScopeId::ROOT, || { + let mut live = Signal::new(("original".to_string(), 0_u64)); + let mut draft = Signal::new(Some(EditSession::new(live.read().0.clone(), 0_u64))); + draft.with_mut(|d| { + d.as_mut() + .unwrap() + .propose::<()>(Ok("preview".into())) + .unwrap() + }); + assert_eq!(live.read().0, "original"); + draft.with_mut(|d| d.take().unwrap().cancel()); + assert_eq!(live.read().0, "original"); + draft.set(Some(EditSession::new(live.read().0.clone(), 0))); + draft.with_mut(|d| { + d.as_mut() + .unwrap() + .propose::<()>(Ok("edited".into())) + .unwrap() + }); + // A background refresh can leave the same value but advance the revision. + live.with_mut(|x| x.1 += 1); + let session = draft.with_mut(|d| d.take().unwrap()); + let result = live.with_mut(|x| session.finish(&x.0, &x.1)); + assert_eq!(result, Err(FinishError::ContextChanged)); + assert_eq!(live.read().0, "original"); + }); +} +#[test] +fn confirm_consumes_non_clone_session_and_publishes_once() { + let dom = VirtualDom::new(app); + dom.in_scope(ScopeId::ROOT, || { + let mut live = Signal::new((10, 0_u64)); + let mut draft = Signal::new(Some(EditSession::new(10, 0_u64))); + draft.with_mut(|d| d.as_mut().unwrap().propose::<()>(Ok(20)).unwrap()); + let session = draft.with_mut(|d| d.take().unwrap()); + live.with_mut(|x| { + let change = session.finish(&x.0, &x.1).unwrap().unwrap(); + x.0 = change.after; + x.1 += 1; + }); + assert_eq!(*live.read(), (20, 1)); + assert!(draft.read().is_none()); + }); +} diff --git a/examples/toolkit-boundaries/tests/iced.rs b/examples/toolkit-boundaries/tests/iced.rs new file mode 100644 index 0000000..ab449d4 --- /dev/null +++ b/examples/toolkit-boundaries/tests/iced.rs @@ -0,0 +1,33 @@ +use edit_session::{EditSession, FinishError}; +use futures::{StreamExt, executor::block_on}; +use iced_runtime::{Action, Task, task}; +fn receive(task: Task>) -> EditSession { + let mut stream = task::into_stream(task).unwrap(); + match block_on(stream.next()).unwrap() { + Action::Output(session) => session, + _ => panic!("unexpected runtime action"), + } +} +#[test] +fn queued_confirmation_checks_at_delivery_not_at_scheduling() { + let mut draft = EditSession::new(10, 0_u64); + draft.propose::<()>(Ok(20)).unwrap(); + let queued = Task::done(draft); + let live = (10, 1); // A refresh occurred before the task's message is handled. + assert_eq!( + receive(queued).finish(&live.0, &live.1), + Err(FinishError::ContextChanged) + ); +} +#[test] +fn unchanged_confirmation_has_no_document_command() { + let queued = Task::done(EditSession::new(10, 0_u64)); + assert_eq!(receive(queued).finish(&10, &0), Ok(None)); +} +#[test] +fn changed_confirmation_commits_once_on_host_path() { + let mut draft = EditSession::new(10, 0_u64); + draft.propose::<()>(Ok(20)).unwrap(); + let c = receive(Task::done(draft)).finish(&10, &0).unwrap().unwrap(); + assert_eq!((c.before, c.after), (10, 20)); +} diff --git a/examples/toolkit-boundaries/tests/slint.rs b/examples/toolkit-boundaries/tests/slint.rs new file mode 100644 index 0000000..353d456 --- /dev/null +++ b/examples/toolkit-boundaries/tests/slint.rs @@ -0,0 +1,38 @@ +use edit_session::{EditSession, FinishError}; +use slint::{Model, SharedString, VecModel}; +#[test] +fn shared_string_preview_does_not_mutate_canonical_model() { + let model = VecModel::from(vec![SharedString::from("original")]); + let mut draft = EditSession::new(model.row_data(0).unwrap(), (7_u64, 0_u64)); + let mut proposal = draft.preview().clone(); + proposal.push_str(" edited"); + draft.propose::<()>(Ok(proposal)).unwrap(); + assert_eq!(model.row_data(0).unwrap(), "original"); + draft.cancel(); + assert_eq!(model.row_data(0).unwrap(), "original"); +} +#[test] +fn same_row_number_does_not_identify_replacement_record() { + let model = VecModel::from(vec![SharedString::from("original")]); + let mut draft = EditSession::new(model.row_data(0).unwrap(), (7_u64, 0_u64)); + draft.propose::<()>(Ok("edited".into())).unwrap(); + // A replacement at row zero can have identical text; its stable ID differs. + model.set_row_data(0, "original".into()); + assert_eq!( + draft.finish(&model.row_data(0).unwrap(), &(8, 0)), + Err(FinishError::ContextChanged) + ); + assert_eq!(model.row_data(0).unwrap(), "original"); +} +#[test] +fn accepted_change_updates_model_after_validation() { + let model = VecModel::from(vec![SharedString::from("original")]); + let mut draft = EditSession::new(model.row_data(0).unwrap(), (7_u64, 0_u64)); + draft.propose::<()>(Ok("edited".into())).unwrap(); + let c = draft + .finish(&model.row_data(0).unwrap(), &(7, 0)) + .unwrap() + .unwrap(); + model.set_row_data(0, c.after); + assert_eq!(model.row_data(0).unwrap(), "edited"); +} diff --git a/examples/toolkit-boundaries/tests/sycamore.rs b/examples/toolkit-boundaries/tests/sycamore.rs new file mode 100644 index 0000000..c0611f6 --- /dev/null +++ b/examples/toolkit-boundaries/tests/sycamore.rs @@ -0,0 +1,39 @@ +use edit_session::{EditSession, FinishError}; +use sycamore_reactive::{create_root, create_signal}; +#[test] +fn draft_signal_updates_do_not_publish_and_cancel_discards() { + let root = create_root(|| { + let live = create_signal((10, 0_u64)); + let draft = create_signal(Some(EditSession::new(10, 0_u64))); + draft.update(|s| s.as_mut().unwrap().propose::<()>(Ok(20)).unwrap()); + assert_eq!(draft.with(|s| *s.as_ref().unwrap().preview()), 20); + assert_eq!(live.get(), (10, 0)); + draft.update(|s| s.take().unwrap().cancel()); + assert!(draft.with(Option::is_none)); + assert_eq!(live.get(), (10, 0)); + }); + root.dispose(); +} +#[test] +fn latest_signal_state_is_checked_inside_serial_update() { + let root = create_root(|| { + let live = create_signal((10, 0_u64)); + let draft = create_signal(Some(EditSession::new(10, 0_u64))); + draft.update(|s| s.as_mut().unwrap().propose::<()>(Ok(20)).unwrap()); + live.update(|s| s.1 += 1); + let s = draft.update(|s| s.take().unwrap()); + assert_eq!( + live.update(|x| s.finish(&x.0, &x.1)), + Err(FinishError::ContextChanged) + ); + let mut fresh = EditSession::new(10, 1); + fresh.propose::<()>(Ok(30)).unwrap(); + live.update(|x| { + let c = fresh.finish(&x.0, &x.1).unwrap().unwrap(); + x.0 = c.after; + x.1 += 1; + }); + assert_eq!(live.get(), (30, 2)); + }); + root.dispose(); +} diff --git a/examples/toolkit-boundaries/tests/tachyonfx.rs b/examples/toolkit-boundaries/tests/tachyonfx.rs new file mode 100644 index 0000000..3122bab --- /dev/null +++ b/examples/toolkit-boundaries/tests/tachyonfx.rs @@ -0,0 +1,76 @@ +use edit_session::{EditSession, FinishError}; +use ratatui_core::{buffer::Buffer, layout::Rect, style::Color}; +use tachyonfx::{Duration, Interpolation, fx}; +#[derive(Clone, Debug, PartialEq)] +struct Settings { + color: Color, + duration_ms: u32, +} +fn render(settings: &Settings, elapsed: u32) -> Buffer { + let area = Rect::new(0, 0, 2, 1); + let mut buf = Buffer::empty(area); + for cell in &mut buf.content { + cell.set_symbol("X"); + cell.set_fg(Color::Rgb(255, 255, 255)); + } + // A preview render starts a separate effect. Do not clone a running timer as the document. + let mut effect = fx::fade_to_fg( + settings.color, + (settings.duration_ms, Interpolation::Linear), + ); + effect.process(Duration::from_millis(elapsed), &mut buf, area); + buf +} +fn original() -> Settings { + Settings { + color: Color::Rgb(255, 0, 0), + duration_ms: 100, + } +} +#[test] +fn preview_uses_separate_effect_and_cancel_restores_canonical_frame() { + let live = original(); + let baseline = render(&live, 100); + let mut draft = EditSession::new(live.clone(), (7, 0)); + draft + .propose::<()>(Ok(Settings { + color: Color::Rgb(0, 0, 255), + duration_ms: 100, + })) + .unwrap(); + let preview = render(draft.preview(), 100); + assert_ne!(preview, baseline); + assert_eq!(preview.content[0].fg, Color::Rgb(0, 0, 255)); + assert_eq!(render(&live, 100), baseline); + draft.cancel(); + assert_eq!(render(&live, 100), baseline); +} +#[test] +fn stale_selected_effect_cannot_be_overwritten() { + let live = original(); + let mut draft = EditSession::new(live.clone(), (7, 0)); + draft + .propose::<()>(Ok(Settings { + color: Color::Rgb(0, 0, 255), + duration_ms: 50, + })) + .unwrap(); + assert_eq!( + draft.finish(&live, &(8, 0)), + Err(FinishError::ContextChanged) + ); +} +#[test] +fn confirm_changes_configuration_before_rebuilding_effect() { + let live = original(); + let mut draft = EditSession::new(live.clone(), (7, 0)); + draft + .propose::<()>(Ok(Settings { + color: Color::Rgb(0, 0, 255), + duration_ms: 50, + })) + .unwrap(); + let c = draft.finish(&live, &(7, 0)).unwrap().unwrap(); + assert_eq!(render(&c.after, 50).content[0].fg, Color::Rgb(0, 0, 255)); + assert_eq!(c.before, original()); +} diff --git a/examples/toolkit-boundaries/tests/tuirealm.rs b/examples/toolkit-boundaries/tests/tuirealm.rs new file mode 100644 index 0000000..530bf98 --- /dev/null +++ b/examples/toolkit-boundaries/tests/tuirealm.rs @@ -0,0 +1,59 @@ +use edit_session::{EditSession, FinishError}; +use tuirealm::{ + command::{Cmd, CmdResult}, + state::{State, StateValue}, +}; +fn propose(draft: &mut EditSession, state: State) -> Result<(), &'static str> { + let value = match state { + State::Single(StateValue::String(s)) => s.parse::().map_err(|_| "invalid number"), + _ => Err("wrong state type"), + }; + draft.propose(value) +} +fn confirm( + draft: EditSession, + live: u16, + revision: u64, +) -> Result { + draft.finish(&live, &revision).map(|c| { + c.map_or(CmdResult::NoChange, |c| { + CmdResult::Submit(State::Single(StateValue::U16(c.after))) + }) + }) +} +#[test] +fn invalid_input_keeps_preview_but_cannot_submit() { + let mut d = EditSession::new(10, 0); + propose(&mut d, State::Single(StateValue::String("20".into()))).unwrap(); + assert_eq!( + propose(&mut d, State::Single(StateValue::String("-".into()))), + Err("invalid number") + ); + assert_eq!(*d.preview(), 20); + assert_eq!(confirm(d, 10, 0), Err(FinishError::InvalidProposal)); +} +#[test] +fn field_commands_map_to_one_submit_or_local_cancel() { + for cmd in [Cmd::Submit, Cmd::Cancel] { + let mut d = EditSession::new(10, 0); + propose(&mut d, State::Single(StateValue::String("20".into()))).unwrap(); + match cmd { + Cmd::Submit => assert_eq!( + confirm(d, 10, 0), + Ok(CmdResult::Submit(State::Single(StateValue::U16(20)))) + ), + Cmd::Cancel => d.cancel(), + _ => unreachable!(), + } + } + assert_eq!( + confirm(EditSession::new(10, 0), 10, 0), + Ok(CmdResult::NoChange) + ); +} +#[test] +fn component_snapshot_does_not_authorize_stale_submit() { + let mut d = EditSession::new(10, 0); + propose(&mut d, State::Single(StateValue::String("20".into()))).unwrap(); + assert_eq!(confirm(d, 10, 1), Err(FinishError::ContextChanged)); +} diff --git a/examples/toolkit-boundaries/tests/vizia.rs b/examples/toolkit-boundaries/tests/vizia.rs new file mode 100644 index 0000000..894c4b9 --- /dev/null +++ b/examples/toolkit-boundaries/tests/vizia.rs @@ -0,0 +1,37 @@ +use edit_session::{EditSession, FinishError}; +use vizia_id::*; +#[derive(Copy, Clone, PartialEq)] +struct Target(u64); +impl_generational_id!(Target); +#[test] +fn reused_slot_is_a_different_edit_target() { + let mut ids = IdManager::::new(); + let old = ids.create(); + let mut draft = EditSession::new(10, (old, 0_u64)); + draft.propose::<()>(Ok(20)).unwrap(); + assert!(ids.destroy(old)); + for _ in 0..4095 { + let id = ids.create(); + assert!(ids.destroy(id)); + } + let replacement = ids.create(); + assert_eq!(old.index(), replacement.index()); + assert_ne!(old.generation(), replacement.generation()); + assert!(!ids.is_alive(old)); + assert!(ids.is_alive(replacement)); + assert_eq!( + draft.finish(&10, &(replacement, 0)), + Err(FinishError::ContextChanged) + ); +} +#[test] +fn undo_to_same_value_still_changes_document_revision() { + let mut ids = IdManager::::new(); + let id = ids.create(); + let mut draft = EditSession::new(10, (id, 4_u64)); + draft.propose::<()>(Ok(20)).unwrap(); + assert_eq!( + draft.finish(&10, &(id, 6)), + Err(FinishError::ContextChanged) + ); +} diff --git a/examples/toolkit-boundaries/tests/yew.rs b/examples/toolkit-boundaries/tests/yew.rs new file mode 100644 index 0000000..0f5def0 --- /dev/null +++ b/examples/toolkit-boundaries/tests/yew.rs @@ -0,0 +1,58 @@ +use edit_session::{EditSession, FinishError}; +use std::{cell::RefCell, rc::Rc}; +use yew::Callback; +#[derive(Default)] +struct Host { + value: u32, + revision: u64, + writes: usize, +} +fn callback( + host: Rc>, + draft: Rc>>>, + results: Rc>>>, +) -> Callback<()> { + Callback::from(move |()| { + if let Some(session) = draft.borrow_mut().take() { + let mut h = host.borrow_mut(); + let outcome = session.finish(&h.value, &h.revision).map(|change| { + if let Some(c) = change { + h.value = c.after; + h.revision += 1; + h.writes += 1; + true + } else { + false + } + }); + results.borrow_mut().push(outcome); + } + }) +} +#[test] +fn duplicate_callback_does_not_commit_twice() { + let h = Rc::new(RefCell::new(Host::default())); + let mut s = EditSession::new(0, 0); + s.propose::<()>(Ok(5)).unwrap(); + let d = Rc::new(RefCell::new(Some(s))); + let r = Rc::new(RefCell::new(Vec::new())); + let cb = callback(h.clone(), d, r.clone()); + cb.emit(()); + cb.emit(()); + assert_eq!(h.borrow().value, 5); + assert_eq!(h.borrow().writes, 1); + assert_eq!(*r.borrow(), [Ok(true)]); +} +#[test] +fn callback_reads_current_host_revision() { + let h = Rc::new(RefCell::new(Host::default())); + let mut s = EditSession::new(0, 0); + s.propose::<()>(Ok(5)).unwrap(); + let d = Rc::new(RefCell::new(Some(s))); + let r = Rc::new(RefCell::new(Vec::new())); + let cb = callback(h.clone(), d, r.clone()); + h.borrow_mut().revision = 1; + cb.emit(()); + assert_eq!(*r.borrow(), [Err(FinishError::ContextChanged)]); + assert_eq!(h.borrow().writes, 0); +}