WidgetKit
language: English, Russian
Modular Rust library for building desktop widgets.
Current scope: software 2D rendering on Windows with a demand-driven redraw model and an internal render pipeline
behind the public Canvas API.
Core assembly: Widget + Canvas + WindowsHost + WidgetApp.
For the full release history, see CHANGELOG.md.
Overview
Canvas— public drawing API- rendering goes through an internal command pipeline
- the runtime owns widget lifecycle, scheduler, tasks, and redraw invalidation
- the Windows host supports decorated and frameless windows
Quick Start
use *;
Example Widget
use *;
;
Examples
With the Tokio-backed task runtime:
Features
canvaswindowsruntime-tokio
[]
= { = "0.2.1", = false, = ["windows", "canvas"] }
Workspace Layout
widgetkit/
crates/
widgetkit
widgetkit-core
widgetkit-runtime
widgetkit-render
widgetkit-host-windows
widgetkit- top-level facade cratewidgetkit-core- geometry, colors, ids, errors, host eventswidgetkit-runtime- lifecycle, scheduler, tasks, redraw coordinationwidgetkit-render-Canvas, text styles, software rendererwidgetkit-host-windows- Windows host built onwinitandsoftbuffer
Roadmap
- stable window sizing and configuration APIs
- richer image and text pipelines
- declarative UI and layout
- broader input model
- GPU renderer backend
- hybrid and web-backed integration paths
License
MIT