Skip to content

Commit d16b9cf

Browse files
authored
Merge pull request #637 from hecrj/0.2
Release `0.2` — Canvas interactivity, overlay support, a renderer alternative, and more!
2 parents b5c41a8 + f78108a commit d16b9cf

26 files changed

+68
-65
lines changed

Cargo.toml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "iced"
3-
version = "0.1.1"
3+
version = "0.2.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
55
edition = "2018"
66
description = "A cross-platform GUI library inspired by Elm"
@@ -84,18 +84,18 @@ members = [
8484
]
8585

8686
[dependencies]
87-
iced_core = { version = "0.2", path = "core" }
88-
iced_futures = { version = "0.1", path = "futures" }
87+
iced_core = { version = "0.3", path = "core" }
88+
iced_futures = { version = "0.2", path = "futures" }
8989
thiserror = "1.0"
9090

9191
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
92-
iced_winit = { version = "0.1", path = "winit" }
92+
iced_winit = { version = "0.2", path = "winit" }
9393
iced_glutin = { version = "0.1", path = "glutin", optional = true }
94-
iced_wgpu = { version = "0.2", path = "wgpu", optional = true }
94+
iced_wgpu = { version = "0.3", path = "wgpu", optional = true }
9595
iced_glow = { version = "0.1", path = "glow", optional = true}
9696

9797
[target.'cfg(target_arch = "wasm32")'.dependencies]
98-
iced_web = { version = "0.2", path = "web" }
98+
iced_web = { version = "0.3", path = "web" }
9999

100100
[package.metadata.docs.rs]
101101
rustdoc-args = ["--cfg", "docsrs"]

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ __Iced is currently experimental software.__ [Take a look at the roadmap],
5555
Add `iced` as a dependency in your `Cargo.toml`:
5656

5757
```toml
58-
iced = "0.1"
58+
iced = "0.2"
5959
```
6060

6161
__Iced moves fast and the `master` branch can contain breaking changes!__ If

core/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "iced_core"
3-
version = "0.2.1"
3+
version = "0.3.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
55
edition = "2018"
66
description = "The essential concepts of Iced"

core/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This crate is meant to be a starting point for an Iced runtime.
1818
Add `iced_core` as a dependency in your `Cargo.toml`:
1919

2020
```toml
21-
iced_core = "0.2"
21+
iced_core = "0.3"
2222
```
2323

2424
__Iced moves fast and the `master` branch can contain breaking changes!__ If

futures/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "iced_futures"
3-
version = "0.1.2"
3+
version = "0.2.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
55
edition = "2018"
66
description = "Commands, subscriptions, and runtimes for Iced"

futures/src/subscription.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ impl<I, O, H> std::fmt::Debug for Subscription<I, O, H> {
125125
/// - [`stopwatch`], a watch with start/stop and reset buttons showcasing how
126126
/// to listen to time.
127127
///
128-
/// [examples]: https://github.com/hecrj/iced/tree/0.1/examples
129-
/// [`download_progress`]: https://github.com/hecrj/iced/tree/0.1/examples/download_progress
130-
/// [`stopwatch`]: https://github.com/hecrj/iced/tree/0.1/examples/stopwatch
128+
/// [examples]: https://github.com/hecrj/iced/tree/0.2/examples
129+
/// [`download_progress`]: https://github.com/hecrj/iced/tree/0.2/examples/download_progress
130+
/// [`stopwatch`]: https://github.com/hecrj/iced/tree/0.2/examples/stopwatch
131131
pub trait Recipe<Hasher: std::hash::Hasher, Event> {
132132
/// The events that will be produced by a [`Subscription`] with this
133133
/// [`Recipe`].

glow/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ bytemuck = "1.4"
2424
log = "0.4"
2525

2626
[dependencies.iced_native]
27-
version = "0.2"
27+
version = "0.3"
2828
path = "../native"
2929

3030
[dependencies.iced_graphics]

glow/src/widget/pane_grid.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//! The [`pane_grid` example] showcases how to use a [`PaneGrid`] with resizing,
77
//! drag and drop, and hotkey support.
88
//!
9-
//! [`pane_grid` example]: https://github.com/hecrj/iced/tree/0.1/examples/pane_grid
9+
//! [`pane_grid` example]: https://github.com/hecrj/iced/tree/0.2/examples/pane_grid
1010
use crate::Renderer;
1111

1212
pub use iced_native::pane_grid::{

glutin/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ debug = ["iced_winit/debug"]
1717
glutin = "0.25"
1818

1919
[dependencies.iced_native]
20-
version = "0.2"
20+
version = "0.3"
2121
path = "../native"
2222

2323
[dependencies.iced_winit]
24-
version = "0.1"
24+
version = "0.2"
2525
path = "../winit"
2626

2727
[dependencies.iced_graphics]

graphics/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ version = "1.4"
2828
features = ["derive"]
2929

3030
[dependencies.iced_native]
31-
version = "0.2"
31+
version = "0.3"
3232
path = "../native"
3333

3434
[dependencies.iced_style]
35-
version = "0.1"
35+
version = "0.2"
3636
path = "../style"
3737

3838
[dependencies.lyon]

graphics/src/widget/pane_grid.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//! The [`pane_grid` example] showcases how to use a [`PaneGrid`] with resizing,
77
//! drag and drop, and hotkey support.
88
//!
9-
//! [`pane_grid` example]: https://github.com/hecrj/iced/tree/0.1/examples/pane_grid
9+
//! [`pane_grid` example]: https://github.com/hecrj/iced/tree/0.2/examples/pane_grid
1010
use crate::backend::{self, Backend};
1111
use crate::defaults;
1212
use crate::{Primitive, Renderer};

native/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "iced_native"
3-
version = "0.2.2"
3+
version = "0.3.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
55
edition = "2018"
66
description = "A renderer-agnostic library for native GUIs"
@@ -16,10 +16,10 @@ unicode-segmentation = "1.6"
1616
num-traits = "0.2"
1717

1818
[dependencies.iced_core]
19-
version = "0.2"
19+
version = "0.3"
2020
path = "../core"
2121

2222
[dependencies.iced_futures]
23-
version = "0.1"
23+
version = "0.2"
2424
path = "../futures"
2525
features = ["thread-pool"]

native/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ To achieve this, it introduces a bunch of reusable interfaces:
2828
Add `iced_native` as a dependency in your `Cargo.toml`:
2929

3030
```toml
31-
iced_native = "0.2"
31+
iced_native = "0.3"
3232
```
3333

3434
__Iced moves fast and the `master` branch can contain breaking changes!__ If

native/src/user_interface.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use std::hash::Hasher;
1616
/// The [`integration` example] uses a [`UserInterface`] to integrate Iced in
1717
/// an existing graphical application.
1818
///
19-
/// [`integration` example]: https://github.com/hecrj/iced/tree/0.1/examples/integration
19+
/// [`integration` example]: https://github.com/hecrj/iced/tree/0.2/examples/integration
2020
#[allow(missing_debug_implementations)]
2121
pub struct UserInterface<'a, Message, Renderer> {
2222
root: Element<'a, Message, Renderer>,

native/src/widget.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ use crate::{Clipboard, Hasher, Layout, Length, Point, Rectangle};
9393
/// - [`geometry`], a custom widget showcasing how to draw geometry with the
9494
/// `Mesh2D` primitive in [`iced_wgpu`].
9595
///
96-
/// [examples]: https://github.com/hecrj/iced/tree/0.1/examples
97-
/// [`bezier_tool`]: https://github.com/hecrj/iced/tree/0.1/examples/bezier_tool
98-
/// [`custom_widget`]: https://github.com/hecrj/iced/tree/0.1/examples/custom_widget
99-
/// [`geometry`]: https://github.com/hecrj/iced/tree/0.1/examples/geometry
96+
/// [examples]: https://github.com/hecrj/iced/tree/0.2/examples
97+
/// [`bezier_tool`]: https://github.com/hecrj/iced/tree/0.2/examples/bezier_tool
98+
/// [`custom_widget`]: https://github.com/hecrj/iced/tree/0.2/examples/custom_widget
99+
/// [`geometry`]: https://github.com/hecrj/iced/tree/0.2/examples/geometry
100100
/// [`lyon`]: https://github.com/nical/lyon
101-
/// [`iced_wgpu`]: https://github.com/hecrj/iced/tree/0.1/wgpu
101+
/// [`iced_wgpu`]: https://github.com/hecrj/iced/tree/0.2/wgpu
102102
pub trait Widget<Message, Renderer>
103103
where
104104
Renderer: crate::Renderer,

src/application.rs

+11-8
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ use crate::{Color, Command, Element, Executor, Settings, Subscription};
2727
/// a dummy file of 100 MB and tracks the download progress.
2828
/// - [`events`], a log of native events displayed using a conditional
2929
/// [`Subscription`].
30+
/// - [`game_of_life`], an interactive version of the [Game of Life], invented
31+
/// by [John Horton Conway].
3032
/// - [`pokedex`], an application that displays a random Pokédex entry (sprite
3133
/// included!) by using the [PokéAPI].
3234
/// - [`solar_system`], an animated solar system drawn using the [`Canvas`] widget
@@ -35,14 +37,15 @@ use crate::{Color, Command, Element, Executor, Settings, Subscription};
3537
/// to listen to time.
3638
/// - [`todos`], a todos tracker inspired by [TodoMVC].
3739
///
38-
/// [The repository has a bunch of examples]: https://github.com/hecrj/iced/tree/0.1/examples
39-
/// [`clock`]: https://github.com/hecrj/iced/tree/0.1/examples/clock
40-
/// [`download_progress`]: https://github.com/hecrj/iced/tree/0.1/examples/download_progress
41-
/// [`events`]: https://github.com/hecrj/iced/tree/0.1/examples/events
42-
/// [`pokedex`]: https://github.com/hecrj/iced/tree/0.1/examples/pokedex
43-
/// [`solar_system`]: https://github.com/hecrj/iced/tree/0.1/examples/solar_system
44-
/// [`stopwatch`]: https://github.com/hecrj/iced/tree/0.1/examples/stopwatch
45-
/// [`todos`]: https://github.com/hecrj/iced/tree/0.1/examples/todos
40+
/// [The repository has a bunch of examples]: https://github.com/hecrj/iced/tree/0.2/examples
41+
/// [`clock`]: https://github.com/hecrj/iced/tree/0.2/examples/clock
42+
/// [`download_progress`]: https://github.com/hecrj/iced/tree/0.2/examples/download_progress
43+
/// [`events`]: https://github.com/hecrj/iced/tree/0.2/examples/events
44+
/// [`game_of_life`]: https://github.com/hecrj/iced/tree/0.2/examples/game_of_life
45+
/// [`pokedex`]: https://github.com/hecrj/iced/tree/0.2/examples/pokedex
46+
/// [`solar_system`]: https://github.com/hecrj/iced/tree/0.2/examples/solar_system
47+
/// [`stopwatch`]: https://github.com/hecrj/iced/tree/0.2/examples/stopwatch
48+
/// [`todos`]: https://github.com/hecrj/iced/tree/0.2/examples/todos
4649
/// [`Sandbox`]: crate::Sandbox
4750
/// [`Canvas`]: crate::widget::Canvas
4851
/// [PokéAPI]: https://pokeapi.co/

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
//! [windowing shell]: https://github.com/hecrj/iced/tree/master/winit
3131
//! [`dodrio`]: https://github.com/fitzgen/dodrio
3232
//! [web runtime]: https://github.com/hecrj/iced/tree/master/web
33-
//! [examples]: https://github.com/hecrj/iced/tree/0.1/examples
33+
//! [examples]: https://github.com/hecrj/iced/tree/0.2/examples
3434
//! [repository]: https://github.com/hecrj/iced
3535
//!
3636
//! # Overview

src/sandbox.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ use crate::{
3535
/// - [`tour`], a simple UI tour that can run both on native platforms and the
3636
/// web!
3737
///
38-
/// [The repository has a bunch of examples]: https://github.com/hecrj/iced/tree/0.1/examples
39-
/// [`bezier_tool`]: https://github.com/hecrj/iced/tree/0.1/examples/bezier_tool
40-
/// [`counter`]: https://github.com/hecrj/iced/tree/0.1/examples/counter
41-
/// [`custom_widget`]: https://github.com/hecrj/iced/tree/0.1/examples/custom_widget
42-
/// [`geometry`]: https://github.com/hecrj/iced/tree/0.1/examples/geometry
43-
/// [`pane_grid`]: https://github.com/hecrj/iced/tree/0.1/examples/pane_grid
44-
/// [`progress_bar`]: https://github.com/hecrj/iced/tree/0.1/examples/progress_bar
45-
/// [`styling`]: https://github.com/hecrj/iced/tree/0.1/examples/styling
46-
/// [`svg`]: https://github.com/hecrj/iced/tree/0.1/examples/svg
47-
/// [`tour`]: https://github.com/hecrj/iced/tree/0.1/examples/tour
38+
/// [The repository has a bunch of examples]: https://github.com/hecrj/iced/tree/0.2/examples
39+
/// [`bezier_tool`]: https://github.com/hecrj/iced/tree/0.2/examples/bezier_tool
40+
/// [`counter`]: https://github.com/hecrj/iced/tree/0.2/examples/counter
41+
/// [`custom_widget`]: https://github.com/hecrj/iced/tree/0.2/examples/custom_widget
42+
/// [`geometry`]: https://github.com/hecrj/iced/tree/0.2/examples/geometry
43+
/// [`pane_grid`]: https://github.com/hecrj/iced/tree/0.2/examples/pane_grid
44+
/// [`progress_bar`]: https://github.com/hecrj/iced/tree/0.2/examples/progress_bar
45+
/// [`styling`]: https://github.com/hecrj/iced/tree/0.2/examples/styling
46+
/// [`svg`]: https://github.com/hecrj/iced/tree/0.2/examples/svg
47+
/// [`tour`]: https://github.com/hecrj/iced/tree/0.2/examples/tour
4848
/// [`lyon`]: https://github.com/nical/lyon
4949
/// [the overview]: index.html#overview
50-
/// [`iced_wgpu`]: https://github.com/hecrj/iced/tree/0.1/wgpu
50+
/// [`iced_wgpu`]: https://github.com/hecrj/iced/tree/0.2/wgpu
5151
/// [`Svg` widget]: crate::widget::Svg
5252
/// [Ghostscript Tiger]: https://commons.wikimedia.org/wiki/File:Ghostscript_Tiger.svg
5353
///

style/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "iced_style"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
55
edition = "2018"
66
description = "The default set of styles of Iced"
@@ -11,4 +11,4 @@ keywords = ["gui", "ui", "graphics", "interface", "widgets"]
1111
categories = ["gui"]
1212

1313
[dependencies]
14-
iced_core = { version = "0.2", path = "../core" }
14+
iced_core = { version = "0.3", path = "../core" }

web/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "iced_web"
3-
version = "0.2.1"
3+
version = "0.3.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
55
edition = "2018"
66
description = "A web backend for Iced"
@@ -22,15 +22,15 @@ url = "2.0"
2222
num-traits = "0.2"
2323

2424
[dependencies.iced_core]
25-
version = "0.2"
25+
version = "0.3"
2626
path = "../core"
2727

2828
[dependencies.iced_futures]
29-
version = "0.1"
29+
version = "0.2"
3030
path = "../futures"
3131

3232
[dependencies.iced_style]
33-
version = "0.1"
33+
version = "0.2"
3434
path = "../style"
3535

3636
[dependencies.web-sys]

web/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The crate is currently a __very experimental__, simple abstraction layer over [`
1616
Add `iced_web` as a dependency in your `Cargo.toml`:
1717

1818
```toml
19-
iced_web = "0.2"
19+
iced_web = "0.3"
2020
```
2121

2222
__Iced moves fast and the `master` branch can contain breaking changes!__ If

web/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
//!
5050
//! [`wasm-pack`]: https://github.com/rustwasm/wasm-pack
5151
//! [`wasm-bindgen`]: https://github.com/rustwasm/wasm-bindgen
52-
//! [`tour` example]: https://github.com/hecrj/iced/tree/0.1/examples/tour
52+
//! [`tour` example]: https://github.com/hecrj/iced/tree/0.2/examples/tour
5353
#![deny(missing_docs)]
5454
#![deny(missing_debug_implementations)]
5555
#![deny(unused_results)]

wgpu/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "iced_wgpu"
3-
version = "0.2.2"
3+
version = "0.3.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
55
edition = "2018"
66
description = "A wgpu renderer for Iced"
@@ -27,7 +27,7 @@ version = "1.4"
2727
features = ["derive"]
2828

2929
[dependencies.iced_native]
30-
version = "0.2"
30+
version = "0.3"
3131
path = "../native"
3232

3333
[dependencies.iced_graphics]

wgpu/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Currently, `iced_wgpu` supports the following primitives:
2929
Add `iced_wgpu` as a dependency in your `Cargo.toml`:
3030

3131
```toml
32-
iced_wgpu = "0.2"
32+
iced_wgpu = "0.3"
3333
```
3434

3535
__Iced moves fast and the `master` branch can contain breaking changes!__ If

winit/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "iced_winit"
3-
version = "0.1.1"
3+
version = "0.2.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
55
edition = "2018"
66
description = "A winit runtime for Iced"
@@ -20,15 +20,15 @@ log = "0.4"
2020
thiserror = "1.0"
2121

2222
[dependencies.iced_native]
23-
version = "0.2"
23+
version = "0.3"
2424
path = "../native"
2525

2626
[dependencies.iced_graphics]
2727
version = "0.1"
2828
path = "../graphics"
2929

3030
[dependencies.iced_futures]
31-
version = "0.1"
31+
version = "0.2"
3232
path = "../futures"
3333

3434
[target.'cfg(target_os = "windows")'.dependencies.winapi]

winit/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ It exposes a renderer-agnostic `Application` trait that can be implemented and t
2020
Add `iced_winit` as a dependency in your `Cargo.toml`:
2121

2222
```toml
23-
iced_winit = "0.1"
23+
iced_winit = "0.2"
2424
```
2525

2626
__Iced moves fast and the `master` branch can contain breaking changes!__ If

0 commit comments

Comments
 (0)