Update dependencies to latest versions - #42
Merged
Conversation
Bump manifest requirements to the latest published versions and refresh Cargo.lock via `cargo update`. Only two crates needed a manifest change — the rest were already on their latest major.minor line and just moved forward at the patch level in the lockfile: - cosmic-text 0.12 -> 0.19 - sysinfo 0.33 -> 0.39 (skia-instrumentation only) Migrate the skia text backend to the cosmic-text 0.19 API: - `Buffer::set_size`/`set_text` no longer take `&mut FontSystem`, `set_text` takes `&Attrs` plus a trailing `Option<Align>`. - `Buffer::draw` now needs `&mut self`, so `render_text` and `CachedLayout::get` hand back `&mut TextLayout`. sysinfo 0.39 needed no code changes. Verified on Windows (full build), Linux (lib, incl. skia-instrumentation), and macOS (lib) targets. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates all Cargo.toml dependencies to their latest versions and refreshes
Cargo.lockwithcargo update.Manifest changes
Only two crates weren't already on their latest
major.minorline (so only these needed a version-string bump); everything else just moved forward at the patch level in the lockfile:0.12→0.190.33→0.39(pulled in only under theskia-instrumentationfeature)Code changes
Migrated the skia text backend (
src/backends/skia/text.rs) to the cosmic-text 0.19 API:Buffer::set_size/set_textno longer take&mut FontSystem;set_textnow takes&Attrsand a trailingOption<Align>.Buffer::drawnow requires&mut self, sorender_textandCachedLayout::getreturn&mut TextLayout.sysinfo0.39 required no code changes. The rendering semantics are unchanged (identicaldrawcallback shape andColoraccessors).Verification
Type-checked all three platform targets from the Windows dev machine:
cargo build --all-targetscargo check --lib(including--features skia-instrumentation)cargo check --libNote: the skia text tests only run on the Linux backend and compile but weren't executed locally (no Linux runtime here); CI covers them. Cross-compiling the Linux dev-dependencies (
xcap→khronos-egl) isn't possible from Windows without a pkg-config sysroot, but that's an environment limitation unrelated to these updates — CI builds them on real Linux.🤖 Generated with Claude Code