Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

iced-rs

БесплатноБез исполняемых скриптовНе проверен

Load whenever building or debugging an Iced UI.

vanillagreencomот vanillagreencom★ 93 звезды на GitHub

Об этом скилле

Project Instructions

Problems with a kendex-owned skill go through kendex report; check ownership in the file first.

Iced 0.14

Workflow

  1. Classify the surface with Surface Selection.
  2. Read the canonical example in examples/.
    • Never generate 0.14 code from memory.
  3. Read the guide for that surface.
    • For animated layered UI, read references/guide-animated-layout.md first.
  4. When debugging, check the guide’s failure modes and API notes.
    • For animation or rendering, read the diagnostic checklist.
    • Check event capture, layout invalidation, and the 0.14 event signature.

Bundled resources

references/: API refs and guides

  • Choose guides and references from the index.
  • Look up signatures and feature gates through the Iced 0.14 API page.

Bundled Iced 0.14.0 examples

Need Read first
Custom Widget impl examples/custom_widget/src/main.rs
GPU shader pipeline examples/custom_shader/ (full dir)
Mesh / vector geometry widget examples/geometry/src/main.rs
Canvas 2D drawing examples/bezier_tool, examples/clock, examples/color_palette
Canvas animation examples/solar_system, examples/the_matrix, examples/game_of_life
Arc/ring animation examples/loading_spinners, examples/arc
Modal dialog examples/modal/src/main.rs (stack + opaque)
Toast/notification overlay examples/toast/src/main.rs
Zoom-on-hover with clipped drawing examples/loupe/src/main.rs
Styled components examples/styling/
pane_grid layout examples/pane_grid/
Multi-window examples/multi_window/
WebSocket subscription examples/websocket/
Text editing examples/editor/

iced_wgpu/ and external fallbacks

For shader work, read the renderer source in iced_wgpu/src/.

The bundled iced_wgpu/ and examples/ come from Iced 0.14.0.

  • Read the bundled source to match the example’s API.
  • To run an example, use the upstream workspace at that revision. The skill omits the workspace manifest.

The snapshot's signatures are the authority.

  • For discovery beyond it, run ctx7 docs /websites/iced_rs "<query>".
  • Then check each signature against https://docs.rs/iced/0.14.0/iced/ or the tag's source, since lookups can return master APIs.
  • Never copy code from upstream master.

Breaking changes from Iced 0.13

Implementation rules

Widget tree consistency

  • Keep the wrapper in the widget tree as interaction state changes.
  • Attach the handler only when the interaction is enabled.
// WRONG: conditional wrapping changes tree shape
if dragging { mouse_area(label).into() } else { label.into() }

// RIGHT
let mut area = mouse_area(label);
if enable {
    area = area.on_press(msg);
}
area

view()

  • Keep view() free of side effects, redraw requests, and caches that depend on how often it runs.
  • Change app state in update().
  • Keep persistent widget interaction state in Tree.

Redraw vs rebuild

A redraw request on its own uses the existing widget tree.

  • Keep widget-driven motion in widget::Tree state.
  • Use messages to update app-driven motion.

See Redraw vs rebuild.

Overlay state isolation

Overlay layers (stack children beyond the base) must not affect base-layer widget structure. Never change base-layer construction based on overlay presence.

The one exception is a float popover pushed after its trigger in a column that holds only the trigger, so no child follows the float. See references/widget-float.md § Anchoring to a trigger.

Overlay starvation

Stacked mouse_area(...).interaction(...) layers can block underlying hover/move handlers even without opaque(...).

  • Set Interaction::Grabbing on the real drag target.
  • Reserve opaque(...) for true capture zones.

Hover stability

  • Hover sensors must not wrap content whose size changes during the animation they trigger.
  • Use a stable outer hitbox. See references/guide-custom-widgets.md § "Stable hover hit regions."

Scroll state initialization

Scrollable::on_scroll reports changes to the scroll viewport and can publish during redraw processing.

  • Use Sensor::on_show to observe initial size.
  • Use Sensor::on_resize for subsequent size changes.

Single message per interaction

  • One widget interaction produces one message.
  • Composite actions (tab press becoming a drag) use a state machine in update().
  • W
Полный SKILL.md на GitHub

Установить iced-rs в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdexamples/README.mdexamples/arc/Cargo.tomlexamples/arc/README.mdexamples/arc/src/main.rsexamples/bezier_tool/Cargo.tomlexamples/bezier_tool/README.mdexamples/bezier_tool/src/main.rsexamples/changelog/Cargo.tomlexamples/changelog/src/changelog.rsexamples/changelog/src/icon.rsexamples/changelog/src/main.rsexamples/checkbox/Cargo.tomlexamples/checkbox/README.mdexamples/checkbox/fonts/icons.ttfexamples/checkbox/src/main.rsexamples/clock/Cargo.tomlexamples/clock/README.mdexamples/clock/src/main.rsexamples/color_palette/Cargo.tomlexamples/color_palette/README.mdexamples/color_palette/screenshot.pngexamples/color_palette/src/main.rsexamples/combo_box/Cargo.tomlexamples/combo_box/README.mdexamples/combo_box/combobox.gifexamples/combo_box/src/main.rsexamples/counter/Cargo.tomlexamples/counter/README.mdexamples/counter/index.htmlexamples/counter/src/main.rsexamples/custom_quad/Cargo.tomlexamples/custom_quad/src/main.rsexamples/custom_shader/Cargo.tomlexamples/custom_shader/src/main.rsexamples/custom_shader/src/scene.rsexamples/custom_shader/src/scene/camera.rsexamples/custom_shader/src/scene/pipeline.rsexamples/custom_shader/src/scene/pipeline/buffer.rsexamples/custom_shader/src/scene/pipeline/cube.rs

FAQ

Что делает скилл iced-rs?

Load whenever building or debugging an Iced UI.

Как установить скилл iced-rs?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл iced-rs запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить iced-rs с