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

#21 in GUI

Download history 2616/week @ 2023-02-14 2758/week @ 2023-02-21 2125/week @ 2023-02-28 2912/week @ 2023-03-07 2482/week @ 2023-03-14 2660/week @ 2023-03-21 2979/week @ 2023-03-28 2579/week @ 2023-04-04 3132/week @ 2023-04-11 2473/week @ 2023-04-18 4437/week @ 2023-04-25 3689/week @ 2023-05-02 3720/week @ 2023-05-09 4585/week @ 2023-05-16 4366/week @ 2023-05-23 5796/week @ 2023-05-30

18,856 downloads per month
Used in 87 crates (49 directly)

MIT license

670KB
17K 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

~4–6MB
~122K SLoC