Skip to content

Update dependencies to latest versions - #42

Merged
caesay merged 1 commit into
masterfrom
chore/update-dependencies
Jul 4, 2026
Merged

Update dependencies to latest versions#42
caesay merged 1 commit into
masterfrom
chore/update-dependencies

Conversation

@caesay

@caesay caesay commented Jul 4, 2026

Copy link
Copy Markdown
Member

Updates all Cargo.toml dependencies to their latest versions and refreshes Cargo.lock with cargo update.

Manifest changes

Only two crates weren't already on their latest major.minor line (so only these needed a version-string bump); everything else just moved forward at the patch level in the lockfile:

  • cosmic-text 0.120.19
  • sysinfo 0.330.39 (pulled in only under the skia-instrumentation feature)

Code changes

Migrated the skia text backend (src/backends/skia/text.rs) to the cosmic-text 0.19 API:

  • Buffer::set_size / set_text no longer take &mut FontSystem; set_text now takes &Attrs and a trailing Option<Align>.
  • Buffer::draw now requires &mut self, so render_text and CachedLayout::get return &mut TextLayout.

sysinfo 0.39 required no code changes. The rendering semantics are unchanged (identical draw callback shape and Color accessors).

Verification

Type-checked all three platform targets from the Windows dev machine:

  • Windows — full cargo build --all-targets
  • Linuxcargo check --lib (including --features skia-instrumentation)
  • macOScargo check --lib

Note: 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 (xcapkhronos-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

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>
@caesay
caesay merged commit db5427a into master Jul 4, 2026
28 checks passed
@caesay
caesay deleted the chore/update-dependencies branch July 4, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant