18 releases (10 breaking)

0.10.3 Apr 20, 2023
0.9.1 Feb 18, 2023
0.7.0 Dec 7, 2022
0.6.1 Nov 10, 2022
0.1.0 Nov 25, 2019

#1218 in GUI

Download history 1467/week @ 2023-12-23 1034/week @ 2023-12-30 1682/week @ 2024-01-06 1995/week @ 2024-01-13 1641/week @ 2024-01-20 1472/week @ 2024-01-27 1202/week @ 2024-02-03 1759/week @ 2024-02-10 2015/week @ 2024-02-17 1715/week @ 2024-02-24 2016/week @ 2024-03-02 2265/week @ 2024-03-09 2253/week @ 2024-03-16 2231/week @ 2024-03-23 2408/week @ 2024-03-30 1396/week @ 2024-04-06

8,437 downloads per month
Used in fewer than 41 crates

MIT license

1MB
22K SLoC

iced_native

Documentation Crates.io License Discord Server

iced_native takes iced_core and builds a native runtime on top of it, featuring:

  • A custom layout engine, greatly inspired by druid
  • Event handling for all the built-in widgets
  • A renderer-agnostic API

To achieve this, it introduces a bunch of reusable interfaces:

  • A Widget trait, which is used to implement new widgets: from layout requirements to event and drawing logic.
  • A bunch of Renderer traits, meant to keep the crate renderer-agnostic.
  • A Windowed trait, leveraging raw-window-handle, which can be implemented by graphical renderers that target windows. Window-based shells (like iced_winit) can use this trait to stay renderer-agnostic.

The native target

Installation

Add iced_native as a dependency in your Cargo.toml:

iced_native = "0.10"

Iced moves fast and the master branch can contain breaking changes! If you want to learn about a specific release, check out the release list.

Dependencies

~3.5–6MB
~113K SLoC