Skip to content

Commit 06517aa

Browse files
authored
Merge pull request #806 from hecrj/release/0.3.0
Release 0.3 — Touch support, clipboard write access, image viewer, tooltips, and more!
2 parents b9ec444 + 0864e63 commit 06517aa

19 files changed

+107
-46
lines changed

CHANGELOG.md

+62-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,70 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
9+
## [0.3.0] - 2021-03-31
810
### Added
9-
- Support for the [`smol`] async runtime. [#699]
11+
- Touch support. [#57] [#650] (thanks to @simlay and @discordance!)
12+
- Clipboard write access for
13+
- `TextInput` widget. [#770]
14+
- `Application::update`. [#773]
15+
- `image::Viewer` widget. It allows panning and scaling of an image. [#319] (thanks to @tarkah!)
16+
- `Tooltip` widget. It annotates content with some text on mouse hover. [#465] (thanks to @yusdacra!)
17+
- Support for the [`smol`] async runtime. [#699] (thanks to @JayceFayne!)
18+
- Support for graceful exiting when using the `Application` trait. [#804]
19+
- Image format features in [`iced_wgpu`] to reduce code bloat. [#392] (thanks to @unrelentingtech!)
20+
- `Focused` and `Unfocused` variant to `window::Event`. [#701] (thanks to @cossonleo!)
21+
- `WGPU_BACKEND` environment variable to configure the internal graphics backend of `iced_wgpu`. [#789] (thanks to @Cupnfish!)
22+
23+
### Changed
24+
- The `TitleBar` of a `PaneGrid` now supports generic elements. [#657] (thanks to @clarkmoody!)
25+
- The `Error` type now implements `Send` and `Sync`. [#719] (thanks to @taiki-e!)
26+
- The `Style` types in `iced_style` now implement `Clone` and `Copy`. [#720] (thanks to @taiki-e!)
27+
- The following dependencies have been updated:
28+
- [`font-kit`]`0.10` [#669]
29+
- [`glutin`]`0.26` [#658]
30+
- [`resvg`]`0.12` [#669]
31+
- [`tokio`]`1.0` [#672] (thanks to @yusdacra!)
32+
- [`winit`]`0.24` [#658]
33+
- [`wgpu`]`0.7` [#725] (thanks to @PolyMeilex)
34+
- The following examples were improved:
35+
- `download_progress` now showcases multiple file downloads at once. [#283] (thanks to @Folyd!)
36+
- `solar_system` uses the new `rand` API. [#760] (thanks to @TriedAngle!)
1037

38+
### Fixed
39+
- Button events not being propagated to contents. [#668]
40+
- Incorrect overlay implementation for the `Button` widget. [#764]
41+
- `Viewport::physical_width` returning the wrong value. [#700]
42+
- Outdated documentation for the `Sandbox` trait. [#710]
43+
44+
[#57]: https://github.com/hecrj/iced/pull/57
45+
[#283]: https://github.com/hecrj/iced/pull/283
46+
[#319]: https://github.com/hecrj/iced/pull/319
47+
[#392]: https://github.com/hecrj/iced/pull/392
48+
[#465]: https://github.com/hecrj/iced/pull/465
49+
[#650]: https://github.com/hecrj/iced/pull/650
50+
[#657]: https://github.com/hecrj/iced/pull/657
51+
[#658]: https://github.com/hecrj/iced/pull/658
52+
[#668]: https://github.com/hecrj/iced/pull/668
53+
[#669]: https://github.com/hecrj/iced/pull/669
54+
[#672]: https://github.com/hecrj/iced/pull/672
1155
[#699]: https://github.com/hecrj/iced/pull/699
56+
[#700]: https://github.com/hecrj/iced/pull/700
57+
[#701]: https://github.com/hecrj/iced/pull/701
58+
[#710]: https://github.com/hecrj/iced/pull/710
59+
[#719]: https://github.com/hecrj/iced/pull/719
60+
[#720]: https://github.com/hecrj/iced/pull/720
61+
[#725]: https://github.com/hecrj/iced/pull/725
62+
[#760]: https://github.com/hecrj/iced/pull/760
63+
[#764]: https://github.com/hecrj/iced/pull/764
64+
[#770]: https://github.com/hecrj/iced/pull/770
65+
[#773]: https://github.com/hecrj/iced/pull/773
66+
[#789]: https://github.com/hecrj/iced/pull/789
67+
[#804]: https://github.com/hecrj/iced/pull/804
1268
[`smol`]: https://github.com/smol-rs/smol
69+
[`winit`]: https://github.com/rust-windowing/winit
70+
[`glutin`]: https://github.com/rust-windowing/glutin
71+
[`font-kit`]: https://github.com/servo/font-kit
1372

1473
## [0.2.0] - 2020-11-26
1574
### Added
@@ -160,7 +219,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
160219
### Added
161220
- First release! :tada:
162221

163-
[Unreleased]: https://github.com/hecrj/iced/compare/0.2.0...HEAD
222+
[Unreleased]: https://github.com/hecrj/iced/compare/0.3.0...HEAD
223+
[0.3.0]: https://github.com/hecrj/iced/compare/0.2.0...0.3.0
164224
[0.2.0]: https://github.com/hecrj/iced/compare/0.1.1...0.2.0
165225
[0.1.1]: https://github.com/hecrj/iced/compare/0.1.0...0.1.1
166226
[0.1.0]: https://github.com/hecrj/iced/compare/0.1.0-beta...0.1.0

Cargo.toml

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

8989
[dependencies]
90-
iced_core = { version = "0.3", path = "core" }
91-
iced_futures = { version = "0.2", path = "futures" }
90+
iced_core = { version = "0.4", path = "core" }
91+
iced_futures = { version = "0.3", path = "futures" }
9292
thiserror = "1.0"
9393

9494
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
95-
iced_winit = { version = "0.2", path = "winit" }
96-
iced_glutin = { version = "0.1", path = "glutin", optional = true }
97-
iced_wgpu = { version = "0.3", path = "wgpu", optional = true }
98-
iced_glow = { version = "0.1", path = "glow", optional = true}
95+
iced_winit = { version = "0.3", path = "winit" }
96+
iced_glutin = { version = "0.2", path = "glutin", optional = true }
97+
iced_wgpu = { version = "0.4", path = "wgpu", optional = true }
98+
iced_glow = { version = "0.2", path = "glow", optional = true}
9999

100100
[target.'cfg(target_arch = "wasm32")'.dependencies]
101-
iced_web = { version = "0.3", path = "web" }
101+
iced_web = { version = "0.4", path = "web" }
102102

103103
[package.metadata.docs.rs]
104104
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.2"
58+
iced = "0.3"
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.3.0"
3+
version = "0.4.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.3"
21+
iced_core = "0.4"
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.2.0"
3+
version = "0.3.0"
44
authors = ["Héctor Ramón Jiménez <[email protected]>"]
55
edition = "2018"
66
description = "Commands, subscriptions, and runtimes for Iced"

glow/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "iced_glow"
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 = "A glow renderer for iced"
@@ -24,11 +24,11 @@ bytemuck = "1.4"
2424
log = "0.4"
2525

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

3030
[dependencies.iced_graphics]
31-
version = "0.1"
31+
version = "0.2"
3232
path = "../graphics"
3333
features = ["font-fallback", "font-icons", "opengl"]
3434

glutin/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "iced_glutin"
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 = "A glutin runtime for Iced"
@@ -17,14 +17,14 @@ debug = ["iced_winit/debug"]
1717
glutin = "0.26"
1818

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

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

2727
[dependencies.iced_graphics]
28-
version = "0.1"
28+
version = "0.2"
2929
path = "../graphics"
3030
features = ["opengl"]

glutin/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_glutin` as a dependency in your `Cargo.toml`:
2121

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

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

graphics/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "iced_graphics"
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 = "A bunch of backend-agnostic types that can be leveraged to build a renderer for Iced"
@@ -28,11 +28,11 @@ version = "1.4"
2828
features = ["derive"]
2929

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

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

3838
[dependencies.lyon]

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.3.0"
3+
version = "0.4.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.3"
19+
version = "0.4"
2020
path = "../core"
2121

2222
[dependencies.iced_futures]
23-
version = "0.2"
23+
version = "0.3"
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.3"
31+
iced_native = "0.4"
3232
```
3333

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

style/Cargo.toml

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

13-
[dependencies]
14-
iced_core = { version = "0.3", path = "../core" }
13+
[dependencies.iced_core]
14+
version = "0.4"
15+
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.3.0"
3+
version = "0.4.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.3"
25+
version = "0.4"
2626
path = "../core"
2727

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

3232
[dependencies.iced_style]
33-
version = "0.2"
33+
version = "0.3"
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.3"
19+
iced_web = "0.4"
2020
```
2121

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

wgpu/Cargo.toml

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

4141
[dependencies.iced_native]
42-
version = "0.3"
42+
version = "0.4"
4343
path = "../native"
4444

4545
[dependencies.iced_graphics]
46-
version = "0.1"
46+
version = "0.2"
4747
path = "../graphics"
4848
features = ["font-fallback", "font-icons"]
4949

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.3"
32+
iced_wgpu = "0.4"
3333
```
3434

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

winit/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "iced_winit"
3-
version = "0.2.0"
3+
version = "0.3.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.3"
23+
version = "0.4"
2424
path = "../native"
2525

2626
[dependencies.iced_graphics]
27-
version = "0.1"
27+
version = "0.2"
2828
path = "../graphics"
2929

3030
[dependencies.iced_futures]
31-
version = "0.2"
31+
version = "0.3"
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.2"
23+
iced_winit = "0.3"
2424
```
2525

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

0 commit comments

Comments
 (0)