From 990c0500806889c854388fcda0689f8e77c02199 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Mon, 2 May 2022 21:38:21 +0200 Subject: [PATCH 1/2] Update `CHANGELOG` --- CHANGELOG.md | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a476631d80..4c42ee293f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,37 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] + +## [0.4.0] - 2022-05-02 +### Added +- __[Stateless widgets][stateless]__ (#1284) + A brand new widget API that removes the need to keep track of internal widget state. No more `button::State` in your application! + +- __[`Component` trait][component]__ (#1131) + A new trait to implement custom widgets with internal mutable state while using composition and [The Elm Architecture]. + +- __[`Responsive` widget][responsive]__ (#1193) + A widget that is aware of its dimensions and can be used to easily build responsive user interfaces. + +- __[Experimental WebGL support][webgl]__ (#1096) + Applications can now be rendered into an HTML `canvas` when targeting Wasm by leveraging the WebGL support in [`wgpu`]. Thanks to @pacmancoder and @kaimast! + +- __[Support for Raspberry Pis and older devices][raspberry]__ (#1160) + The compatibility of our OpenGL renderer has been improved and should run on any hardware that supports OpenGL 3.0+ or OpenGL ES 2.0+. Additionally, we started maintaining [Docker images for `aarch64` and `armv7`](https://github.com/orgs/iced-rs/packages) to easily cross-compile `iced` applications and target Raspberry Pis. Thanks to @derezzedex! + +- __[Simpler `Renderer` APIs][renderer_apis]__ (#1110) + The surface of the `Renderer` APIs of the library has been considerably reduced. Instead of a `Renderer` trait per widget, now there are only 3 traits that are reused by all the widgets. + +[webgl]: https://github.com/iced-rs/iced/pull/1096 +[renderer_apis]: https://github.com/iced-rs/iced/pull/1110 +[component]: https://github.com/iced-rs/iced/pull/1131 +[raspberry]: https://github.com/iced-rs/iced/pull/1160 +[responsive]: https://github.com/iced-rs/iced/pull/1193 +[stateless]: https://github.com/iced-rs/iced/pull/1284 +[The Elm Architecture]: https://guide.elm-lang.org/architecture/ +[`wgpu`]: https://github.com/gfx-rs/wgpu + + ## [0.3.0] - 2021-03-31 ### Added - Touch support. [#57] [#650] (thanks to @simlay and @discordance!) @@ -219,7 +250,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - First release! :tada: -[Unreleased]: https://github.com/iced-rs/iced/compare/0.3.0...HEAD +[Unreleased]: https://github.com/iced-rs/iced/compare/0.4.0...HEAD +[0.4.0]: https://github.com/iced-rs/iced/compare/0.3.0...0.4.0 [0.3.0]: https://github.com/iced-rs/iced/compare/0.2.0...0.3.0 [0.2.0]: https://github.com/iced-rs/iced/compare/0.1.1...0.2.0 [0.1.1]: https://github.com/iced-rs/iced/compare/0.1.0...0.1.1 From d23026d2dd24ae6daa20f479678ad802f493c7bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Mon, 2 May 2022 21:53:25 +0200 Subject: [PATCH 2/2] Bump versions :tada: --- Cargo.toml | 22 +++++++++++----------- core/Cargo.toml | 2 +- futures/Cargo.toml | 2 +- glow/Cargo.toml | 8 ++++---- glutin/Cargo.toml | 8 ++++---- graphics/Cargo.toml | 10 +++++----- lazy/Cargo.toml | 11 +++++++++-- native/Cargo.toml | 8 ++++---- pure/Cargo.toml | 12 +++++++++--- style/Cargo.toml | 4 ++-- wgpu/Cargo.toml | 6 +++--- winit/Cargo.toml | 10 +++++----- 12 files changed, 58 insertions(+), 45 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 899d392a2b..fcb14899ff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced" -version = "0.3.0" +version = "0.4.0" authors = ["Héctor Ramón Jiménez "] edition = "2021" description = "A cross-platform GUI library inspired by Elm" @@ -98,21 +98,21 @@ members = [ ] [dependencies] -iced_core = { version = "0.4", path = "core" } -iced_futures = { version = "0.3", path = "futures" } -iced_native = { version = "0.4", path = "native" } -iced_graphics = { version = "0.2", path = "graphics" } -iced_winit = { version = "0.3", path = "winit" } -iced_glutin = { version = "0.2", path = "glutin", optional = true } -iced_glow = { version = "0.2", path = "glow", optional = true } -iced_pure = { version = "0.1", path = "pure", optional = true } +iced_core = { version = "0.5", path = "core" } +iced_futures = { version = "0.4", path = "futures" } +iced_native = { version = "0.5", path = "native" } +iced_graphics = { version = "0.3", path = "graphics" } +iced_winit = { version = "0.4", path = "winit" } +iced_glutin = { version = "0.3", path = "glutin", optional = true } +iced_glow = { version = "0.3", path = "glow", optional = true } +iced_pure = { version = "0.2", path = "pure", optional = true } thiserror = "1.0" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] -iced_wgpu = { version = "0.4", path = "wgpu", optional = true } +iced_wgpu = { version = "0.5", path = "wgpu", optional = true } [target.'cfg(target_arch = "wasm32")'.dependencies] -iced_wgpu = { version = "0.4", path = "wgpu", features = ["webgl"], optional = true } +iced_wgpu = { version = "0.5", path = "wgpu", features = ["webgl"], optional = true } [package.metadata.docs.rs] rustdoc-args = ["--cfg", "docsrs"] diff --git a/core/Cargo.toml b/core/Cargo.toml index a8d50801b4..c9c7686e47 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_core" -version = "0.4.0" +version = "0.5.0" authors = ["Héctor Ramón Jiménez "] edition = "2021" description = "The essential concepts of Iced" diff --git a/futures/Cargo.toml b/futures/Cargo.toml index 78e673e0e3..ed99d79acf 100644 --- a/futures/Cargo.toml +++ b/futures/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_futures" -version = "0.3.0" +version = "0.4.0" authors = ["Héctor Ramón Jiménez "] edition = "2021" description = "Commands, subscriptions, and runtimes for Iced" diff --git a/glow/Cargo.toml b/glow/Cargo.toml index e0907a661c..18215e9b6f 100644 --- a/glow/Cargo.toml +++ b/glow/Cargo.toml @@ -1,11 +1,11 @@ [package] name = "iced_glow" -version = "0.2.0" +version = "0.3.0" authors = ["Héctor Ramón Jiménez "] edition = "2021" description = "A glow renderer for iced" license = "MIT AND OFL-1.1" -repository = "https://github.com/hecrj/iced" +repository = "https://github.com/iced-rs/iced" [features] canvas = ["iced_graphics/canvas"] @@ -24,11 +24,11 @@ bytemuck = "1.4" log = "0.4" [dependencies.iced_native] -version = "0.4" +version = "0.5" path = "../native" [dependencies.iced_graphics] -version = "0.2" +version = "0.3" path = "../graphics" features = ["font-fallback", "font-icons", "opengl"] diff --git a/glutin/Cargo.toml b/glutin/Cargo.toml index d1b0468dd5..fca0cd9f46 100644 --- a/glutin/Cargo.toml +++ b/glutin/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_glutin" -version = "0.2.0" +version = "0.3.0" authors = ["Héctor Ramón Jiménez "] edition = "2021" description = "A glutin runtime for Iced" @@ -19,14 +19,14 @@ git = "https://github.com/iced-rs/glutin" rev = "7a0ee02782eb2bf059095e0c953c4bb53f1eef0e" [dependencies.iced_native] -version = "0.4" +version = "0.5" path = "../native" [dependencies.iced_winit] -version = "0.3" +version = "0.4" path = "../winit" [dependencies.iced_graphics] -version = "0.2" +version = "0.3" path = "../graphics" features = ["opengl"] diff --git a/graphics/Cargo.toml b/graphics/Cargo.toml index a84acbd6e3..e916975d54 100644 --- a/graphics/Cargo.toml +++ b/graphics/Cargo.toml @@ -1,11 +1,11 @@ [package] name = "iced_graphics" -version = "0.2.0" +version = "0.3.0" authors = ["Héctor Ramón Jiménez "] edition = "2021" description = "A bunch of backend-agnostic types that can be leveraged to build a renderer for Iced" license = "MIT" -repository = "https://github.com/hecrj/iced" +repository = "https://github.com/iced-rs/iced" documentation = "https://docs.rs/iced_graphics" keywords = ["gui", "ui", "graphics", "interface", "widgets"] categories = ["gui"] @@ -29,15 +29,15 @@ version = "1.4" features = ["derive"] [dependencies.iced_native] -version = "0.4" +version = "0.5" path = "../native" [dependencies.iced_style] -version = "0.3" +version = "0.4" path = "../style" [dependencies.iced_pure] -version = "0.1" +version = "0.2" path = "../pure" optional = true diff --git a/lazy/Cargo.toml b/lazy/Cargo.toml index 2d7451f3e3..7d439e4716 100644 --- a/lazy/Cargo.toml +++ b/lazy/Cargo.toml @@ -1,7 +1,14 @@ [package] name = "iced_lazy" version = "0.1.0" +authors = ["Héctor Ramón Jiménez "] edition = "2021" +description = "Lazy widgets for Iced" +license = "MIT" +repository = "https://github.com/iced-rs/iced" +documentation = "https://docs.rs/iced_lazy" +keywords = ["gui", "ui", "graphics", "interface", "widgets"] +categories = ["gui"] [features] pure = ["iced_pure"] @@ -10,10 +17,10 @@ pure = ["iced_pure"] ouroboros = "0.13" [dependencies.iced_native] -version = "0.4" +version = "0.5" path = "../native" [dependencies.iced_pure] -version = "0.1" +version = "0.2" path = "../pure" optional = true diff --git a/native/Cargo.toml b/native/Cargo.toml index c4b363ae59..a21385de27 100644 --- a/native/Cargo.toml +++ b/native/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_native" -version = "0.4.0" +version = "0.5.0" authors = ["Héctor Ramón Jiménez "] edition = "2021" description = "A renderer-agnostic library for native GUIs" @@ -16,14 +16,14 @@ unicode-segmentation = "1.6" num-traits = "0.2" [dependencies.iced_core] -version = "0.4" +version = "0.5" path = "../core" [dependencies.iced_futures] -version = "0.3" +version = "0.4" path = "../futures" features = ["thread-pool"] [dependencies.iced_style] -version = "0.3" +version = "0.4" path = "../style" diff --git a/pure/Cargo.toml b/pure/Cargo.toml index 317dccdf90..8369a71750 100644 --- a/pure/Cargo.toml +++ b/pure/Cargo.toml @@ -1,9 +1,15 @@ [package] name = "iced_pure" -version = "0.1.0" +version = "0.2.0" edition = "2021" +description = "Pure widgets for Iced" +license = "MIT" +repository = "https://github.com/iced-rs/iced" +documentation = "https://docs.rs/iced_pure" +keywords = ["gui", "ui", "graphics", "interface", "widgets"] +categories = ["gui"] [dependencies] -iced_native = { version = "0.4", path = "../native" } -iced_style = { version = "0.3", path = "../style" } +iced_native = { version = "0.5", path = "../native" } +iced_style = { version = "0.4", path = "../style" } num-traits = "0.2" diff --git a/style/Cargo.toml b/style/Cargo.toml index 047c905da8..bb2a964522 100644 --- a/style/Cargo.toml +++ b/style/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_style" -version = "0.3.0" +version = "0.4.0" authors = ["Héctor Ramón Jiménez "] edition = "2021" description = "The default set of styles of Iced" @@ -11,5 +11,5 @@ keywords = ["gui", "ui", "graphics", "interface", "widgets"] categories = ["gui"] [dependencies.iced_core] -version = "0.4" +version = "0.5" path = "../core" diff --git a/wgpu/Cargo.toml b/wgpu/Cargo.toml index b417341358..6911ff560f 100644 --- a/wgpu/Cargo.toml +++ b/wgpu/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_wgpu" -version = "0.4.0" +version = "0.5.0" authors = ["Héctor Ramón Jiménez "] edition = "2021" description = "A wgpu renderer for Iced" @@ -43,11 +43,11 @@ version = "1.4" features = ["derive"] [dependencies.iced_native] -version = "0.4" +version = "0.5" path = "../native" [dependencies.iced_graphics] -version = "0.2" +version = "0.3" path = "../graphics" features = ["font-fallback", "font-icons"] diff --git a/winit/Cargo.toml b/winit/Cargo.toml index f723224820..2beebdfb54 100644 --- a/winit/Cargo.toml +++ b/winit/Cargo.toml @@ -1,11 +1,11 @@ [package] name = "iced_winit" -version = "0.3.0" +version = "0.4.0" authors = ["Héctor Ramón Jiménez "] edition = "2021" description = "A winit runtime for Iced" license = "MIT" -repository = "https://github.com/hecrj/iced" +repository = "https://github.com/iced-rs/iced" documentation = "https://docs.rs/iced_winit" keywords = ["gui", "ui", "graphics", "interface", "widgets"] categories = ["gui"] @@ -24,15 +24,15 @@ git = "https://github.com/iced-rs/winit" rev = "02a12380960cec2f351c09a33d6a7cc2789d96a6" [dependencies.iced_native] -version = "0.4" +version = "0.5" path = "../native" [dependencies.iced_graphics] -version = "0.2" +version = "0.3" path = "../graphics" [dependencies.iced_futures] -version = "0.3" +version = "0.4" path = "../futures" [target.'cfg(target_os = "windows")'.dependencies.winapi]