Registry / other / iced-native

iced-native

JSON →
library0.10.3rscratesunverified

A renderer-agnostic library for building native GUIs with Iced.

# Cargo.toml [dependencies] iced_native = "0.10.3"
INSTALL
IMPORT
SIG · ICED-NATIVE
I
iced-native
otherrustv0.10.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Button
use iced_native::widget::Button;

Create a simple GUI with a button using Iced Native.

use iced_native::widget::Button; use iced_native::{Element, Sandbox, Settings}; struct App; impl Sandbox for App { type Message = (); fn new() -> Self { App } fn title(&self) -> String { "Iced App".into() } fn update(&mut self, _message: ()) {} fn view(&self) -> Element<()> { Button::new("Click me").into() } } fn main() { App::run(Settings::default()).unwrap(); }
Debug
Known issues
gotchaRequires a backend renderer (e.g., `iced_wgpu` or `iced_glutin`) to actually display the GUI.
fix
Add a backend crate like `iced_wgpu` and use `iced::Application` instead.
affects: >=0.1.0
Upgrade
Version history
0.10.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
Meta
2
Resources
iced-native — cargo add iced-native · libregistry