From 745aa49025a99f08680ffe44a5f40ad14abf5808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Thu, 26 Nov 2020 07:32:31 +0100 Subject: [PATCH 1/2] Update example links to point to `0.2` branch --- futures/src/subscription.rs | 6 +++--- glow/src/widget/pane_grid.rs | 2 +- graphics/src/widget/pane_grid.rs | 2 +- native/src/user_interface.rs | 2 +- native/src/widget.rs | 10 +++++----- src/application.rs | 19 +++++++++++-------- src/lib.rs | 2 +- src/sandbox.rs | 22 +++++++++++----------- web/src/lib.rs | 2 +- 9 files changed, 35 insertions(+), 32 deletions(-) diff --git a/futures/src/subscription.rs b/futures/src/subscription.rs index 2dfa523b..27d2d295 100644 --- a/futures/src/subscription.rs +++ b/futures/src/subscription.rs @@ -125,9 +125,9 @@ impl std::fmt::Debug for Subscription { /// - [`stopwatch`], a watch with start/stop and reset buttons showcasing how /// to listen to time. /// -/// [examples]: https://github.com/hecrj/iced/tree/0.1/examples -/// [`download_progress`]: https://github.com/hecrj/iced/tree/0.1/examples/download_progress -/// [`stopwatch`]: https://github.com/hecrj/iced/tree/0.1/examples/stopwatch +/// [examples]: https://github.com/hecrj/iced/tree/0.2/examples +/// [`download_progress`]: https://github.com/hecrj/iced/tree/0.2/examples/download_progress +/// [`stopwatch`]: https://github.com/hecrj/iced/tree/0.2/examples/stopwatch pub trait Recipe { /// The events that will be produced by a [`Subscription`] with this /// [`Recipe`]. diff --git a/glow/src/widget/pane_grid.rs b/glow/src/widget/pane_grid.rs index 69229927..c26dde48 100644 --- a/glow/src/widget/pane_grid.rs +++ b/glow/src/widget/pane_grid.rs @@ -6,7 +6,7 @@ //! The [`pane_grid` example] showcases how to use a [`PaneGrid`] with resizing, //! drag and drop, and hotkey support. //! -//! [`pane_grid` example]: https://github.com/hecrj/iced/tree/0.1/examples/pane_grid +//! [`pane_grid` example]: https://github.com/hecrj/iced/tree/0.2/examples/pane_grid use crate::Renderer; pub use iced_native::pane_grid::{ diff --git a/graphics/src/widget/pane_grid.rs b/graphics/src/widget/pane_grid.rs index a21d4d94..f09984fc 100644 --- a/graphics/src/widget/pane_grid.rs +++ b/graphics/src/widget/pane_grid.rs @@ -6,7 +6,7 @@ //! The [`pane_grid` example] showcases how to use a [`PaneGrid`] with resizing, //! drag and drop, and hotkey support. //! -//! [`pane_grid` example]: https://github.com/hecrj/iced/tree/0.1/examples/pane_grid +//! [`pane_grid` example]: https://github.com/hecrj/iced/tree/0.2/examples/pane_grid use crate::backend::{self, Backend}; use crate::defaults; use crate::{Primitive, Renderer}; diff --git a/native/src/user_interface.rs b/native/src/user_interface.rs index f859ff6d..7a64ac59 100644 --- a/native/src/user_interface.rs +++ b/native/src/user_interface.rs @@ -16,7 +16,7 @@ use std::hash::Hasher; /// The [`integration` example] uses a [`UserInterface`] to integrate Iced in /// an existing graphical application. /// -/// [`integration` example]: https://github.com/hecrj/iced/tree/0.1/examples/integration +/// [`integration` example]: https://github.com/hecrj/iced/tree/0.2/examples/integration #[allow(missing_debug_implementations)] pub struct UserInterface<'a, Message, Renderer> { root: Element<'a, Message, Renderer>, diff --git a/native/src/widget.rs b/native/src/widget.rs index 08dfa298..3677713a 100644 --- a/native/src/widget.rs +++ b/native/src/widget.rs @@ -93,12 +93,12 @@ use crate::{Clipboard, Hasher, Layout, Length, Point, Rectangle}; /// - [`geometry`], a custom widget showcasing how to draw geometry with the /// `Mesh2D` primitive in [`iced_wgpu`]. /// -/// [examples]: https://github.com/hecrj/iced/tree/0.1/examples -/// [`bezier_tool`]: https://github.com/hecrj/iced/tree/0.1/examples/bezier_tool -/// [`custom_widget`]: https://github.com/hecrj/iced/tree/0.1/examples/custom_widget -/// [`geometry`]: https://github.com/hecrj/iced/tree/0.1/examples/geometry +/// [examples]: https://github.com/hecrj/iced/tree/0.2/examples +/// [`bezier_tool`]: https://github.com/hecrj/iced/tree/0.2/examples/bezier_tool +/// [`custom_widget`]: https://github.com/hecrj/iced/tree/0.2/examples/custom_widget +/// [`geometry`]: https://github.com/hecrj/iced/tree/0.2/examples/geometry /// [`lyon`]: https://github.com/nical/lyon -/// [`iced_wgpu`]: https://github.com/hecrj/iced/tree/0.1/wgpu +/// [`iced_wgpu`]: https://github.com/hecrj/iced/tree/0.2/wgpu pub trait Widget where Renderer: crate::Renderer, diff --git a/src/application.rs b/src/application.rs index 075e7160..3b690a7c 100644 --- a/src/application.rs +++ b/src/application.rs @@ -27,6 +27,8 @@ use crate::{Color, Command, Element, Executor, Settings, Subscription}; /// a dummy file of 100 MB and tracks the download progress. /// - [`events`], a log of native events displayed using a conditional /// [`Subscription`]. +/// - [`game_of_life`], an interactive version of the [Game of Life], invented +/// by [John Horton Conway]. /// - [`pokedex`], an application that displays a random Pokédex entry (sprite /// included!) by using the [PokéAPI]. /// - [`solar_system`], an animated solar system drawn using the [`Canvas`] widget @@ -35,14 +37,15 @@ use crate::{Color, Command, Element, Executor, Settings, Subscription}; /// to listen to time. /// - [`todos`], a todos tracker inspired by [TodoMVC]. /// -/// [The repository has a bunch of examples]: https://github.com/hecrj/iced/tree/0.1/examples -/// [`clock`]: https://github.com/hecrj/iced/tree/0.1/examples/clock -/// [`download_progress`]: https://github.com/hecrj/iced/tree/0.1/examples/download_progress -/// [`events`]: https://github.com/hecrj/iced/tree/0.1/examples/events -/// [`pokedex`]: https://github.com/hecrj/iced/tree/0.1/examples/pokedex -/// [`solar_system`]: https://github.com/hecrj/iced/tree/0.1/examples/solar_system -/// [`stopwatch`]: https://github.com/hecrj/iced/tree/0.1/examples/stopwatch -/// [`todos`]: https://github.com/hecrj/iced/tree/0.1/examples/todos +/// [The repository has a bunch of examples]: https://github.com/hecrj/iced/tree/0.2/examples +/// [`clock`]: https://github.com/hecrj/iced/tree/0.2/examples/clock +/// [`download_progress`]: https://github.com/hecrj/iced/tree/0.2/examples/download_progress +/// [`events`]: https://github.com/hecrj/iced/tree/0.2/examples/events +/// [`game_of_life`]: https://github.com/hecrj/iced/tree/0.2/examples/game_of_life +/// [`pokedex`]: https://github.com/hecrj/iced/tree/0.2/examples/pokedex +/// [`solar_system`]: https://github.com/hecrj/iced/tree/0.2/examples/solar_system +/// [`stopwatch`]: https://github.com/hecrj/iced/tree/0.2/examples/stopwatch +/// [`todos`]: https://github.com/hecrj/iced/tree/0.2/examples/todos /// [`Sandbox`]: crate::Sandbox /// [`Canvas`]: crate::widget::Canvas /// [PokéAPI]: https://pokeapi.co/ diff --git a/src/lib.rs b/src/lib.rs index dc6f81eb..3578ea82 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -30,7 +30,7 @@ //! [windowing shell]: https://github.com/hecrj/iced/tree/master/winit //! [`dodrio`]: https://github.com/fitzgen/dodrio //! [web runtime]: https://github.com/hecrj/iced/tree/master/web -//! [examples]: https://github.com/hecrj/iced/tree/0.1/examples +//! [examples]: https://github.com/hecrj/iced/tree/0.2/examples //! [repository]: https://github.com/hecrj/iced //! //! # Overview diff --git a/src/sandbox.rs b/src/sandbox.rs index 3de1cebb..dbaa02f1 100644 --- a/src/sandbox.rs +++ b/src/sandbox.rs @@ -35,19 +35,19 @@ use crate::{ /// - [`tour`], a simple UI tour that can run both on native platforms and the /// web! /// -/// [The repository has a bunch of examples]: https://github.com/hecrj/iced/tree/0.1/examples -/// [`bezier_tool`]: https://github.com/hecrj/iced/tree/0.1/examples/bezier_tool -/// [`counter`]: https://github.com/hecrj/iced/tree/0.1/examples/counter -/// [`custom_widget`]: https://github.com/hecrj/iced/tree/0.1/examples/custom_widget -/// [`geometry`]: https://github.com/hecrj/iced/tree/0.1/examples/geometry -/// [`pane_grid`]: https://github.com/hecrj/iced/tree/0.1/examples/pane_grid -/// [`progress_bar`]: https://github.com/hecrj/iced/tree/0.1/examples/progress_bar -/// [`styling`]: https://github.com/hecrj/iced/tree/0.1/examples/styling -/// [`svg`]: https://github.com/hecrj/iced/tree/0.1/examples/svg -/// [`tour`]: https://github.com/hecrj/iced/tree/0.1/examples/tour +/// [The repository has a bunch of examples]: https://github.com/hecrj/iced/tree/0.2/examples +/// [`bezier_tool`]: https://github.com/hecrj/iced/tree/0.2/examples/bezier_tool +/// [`counter`]: https://github.com/hecrj/iced/tree/0.2/examples/counter +/// [`custom_widget`]: https://github.com/hecrj/iced/tree/0.2/examples/custom_widget +/// [`geometry`]: https://github.com/hecrj/iced/tree/0.2/examples/geometry +/// [`pane_grid`]: https://github.com/hecrj/iced/tree/0.2/examples/pane_grid +/// [`progress_bar`]: https://github.com/hecrj/iced/tree/0.2/examples/progress_bar +/// [`styling`]: https://github.com/hecrj/iced/tree/0.2/examples/styling +/// [`svg`]: https://github.com/hecrj/iced/tree/0.2/examples/svg +/// [`tour`]: https://github.com/hecrj/iced/tree/0.2/examples/tour /// [`lyon`]: https://github.com/nical/lyon /// [the overview]: index.html#overview -/// [`iced_wgpu`]: https://github.com/hecrj/iced/tree/0.1/wgpu +/// [`iced_wgpu`]: https://github.com/hecrj/iced/tree/0.2/wgpu /// [`Svg` widget]: crate::widget::Svg /// [Ghostscript Tiger]: https://commons.wikimedia.org/wiki/File:Ghostscript_Tiger.svg /// diff --git a/web/src/lib.rs b/web/src/lib.rs index ab3e9d6a..58f6591d 100644 --- a/web/src/lib.rs +++ b/web/src/lib.rs @@ -49,7 +49,7 @@ //! //! [`wasm-pack`]: https://github.com/rustwasm/wasm-pack //! [`wasm-bindgen`]: https://github.com/rustwasm/wasm-bindgen -//! [`tour` example]: https://github.com/hecrj/iced/tree/0.1/examples/tour +//! [`tour` example]: https://github.com/hecrj/iced/tree/0.2/examples/tour #![deny(missing_docs)] #![deny(missing_debug_implementations)] #![deny(unused_results)] From f78108a514563411e617715443bba53f4f4610ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Thu, 26 Nov 2020 07:48:12 +0100 Subject: [PATCH 2/2] Bump versions :tada: --- Cargo.toml | 12 ++++++------ README.md | 2 +- core/Cargo.toml | 2 +- core/README.md | 2 +- futures/Cargo.toml | 2 +- glow/Cargo.toml | 2 +- glutin/Cargo.toml | 4 ++-- graphics/Cargo.toml | 4 ++-- native/Cargo.toml | 6 +++--- native/README.md | 2 +- style/Cargo.toml | 4 ++-- web/Cargo.toml | 8 ++++---- web/README.md | 2 +- wgpu/Cargo.toml | 4 ++-- wgpu/README.md | 2 +- winit/Cargo.toml | 6 +++--- winit/README.md | 2 +- 17 files changed, 33 insertions(+), 33 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a0433732..6221ae4b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced" -version = "0.1.1" +version = "0.2.0" authors = ["Héctor Ramón Jiménez "] edition = "2018" description = "A cross-platform GUI library inspired by Elm" @@ -84,18 +84,18 @@ members = [ ] [dependencies] -iced_core = { version = "0.2", path = "core" } -iced_futures = { version = "0.1", path = "futures" } +iced_core = { version = "0.3", path = "core" } +iced_futures = { version = "0.2", path = "futures" } thiserror = "1.0" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] -iced_winit = { version = "0.1", path = "winit" } +iced_winit = { version = "0.2", path = "winit" } iced_glutin = { version = "0.1", path = "glutin", optional = true } -iced_wgpu = { version = "0.2", path = "wgpu", optional = true } +iced_wgpu = { version = "0.3", path = "wgpu", optional = true } iced_glow = { version = "0.1", path = "glow", optional = true} [target.'cfg(target_arch = "wasm32")'.dependencies] -iced_web = { version = "0.2", path = "web" } +iced_web = { version = "0.3", path = "web" } [package.metadata.docs.rs] rustdoc-args = ["--cfg", "docsrs"] diff --git a/README.md b/README.md index 5bc885d2..09647a1e 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ __Iced is currently experimental software.__ [Take a look at the roadmap], Add `iced` as a dependency in your `Cargo.toml`: ```toml -iced = "0.1" +iced = "0.2" ``` __Iced moves fast and the `master` branch can contain breaking changes!__ If diff --git a/core/Cargo.toml b/core/Cargo.toml index b52bf315..a859c868 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_core" -version = "0.2.1" +version = "0.3.0" authors = ["Héctor Ramón Jiménez "] edition = "2018" description = "The essential concepts of Iced" diff --git a/core/README.md b/core/README.md index 9ec0df6a..3ec053ac 100644 --- a/core/README.md +++ b/core/README.md @@ -18,7 +18,7 @@ This crate is meant to be a starting point for an Iced runtime. Add `iced_core` as a dependency in your `Cargo.toml`: ```toml -iced_core = "0.2" +iced_core = "0.3" ``` __Iced moves fast and the `master` branch can contain breaking changes!__ If diff --git a/futures/Cargo.toml b/futures/Cargo.toml index 7854dbb0..e8e47c08 100644 --- a/futures/Cargo.toml +++ b/futures/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_futures" -version = "0.1.2" +version = "0.2.0" authors = ["Héctor Ramón Jiménez "] edition = "2018" description = "Commands, subscriptions, and runtimes for Iced" diff --git a/glow/Cargo.toml b/glow/Cargo.toml index 0178f9f7..3f85e52d 100644 --- a/glow/Cargo.toml +++ b/glow/Cargo.toml @@ -24,7 +24,7 @@ bytemuck = "1.4" log = "0.4" [dependencies.iced_native] -version = "0.2" +version = "0.3" path = "../native" [dependencies.iced_graphics] diff --git a/glutin/Cargo.toml b/glutin/Cargo.toml index b298134c..c6b9a34f 100644 --- a/glutin/Cargo.toml +++ b/glutin/Cargo.toml @@ -17,11 +17,11 @@ debug = ["iced_winit/debug"] glutin = "0.25" [dependencies.iced_native] -version = "0.2" +version = "0.3" path = "../native" [dependencies.iced_winit] -version = "0.1" +version = "0.2" path = "../winit" [dependencies.iced_graphics] diff --git a/graphics/Cargo.toml b/graphics/Cargo.toml index 3158e860..73dc47bf 100644 --- a/graphics/Cargo.toml +++ b/graphics/Cargo.toml @@ -28,11 +28,11 @@ version = "1.4" features = ["derive"] [dependencies.iced_native] -version = "0.2" +version = "0.3" path = "../native" [dependencies.iced_style] -version = "0.1" +version = "0.2" path = "../style" [dependencies.lyon] diff --git a/native/Cargo.toml b/native/Cargo.toml index 13052a93..2c99638a 100644 --- a/native/Cargo.toml +++ b/native/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_native" -version = "0.2.2" +version = "0.3.0" authors = ["Héctor Ramón Jiménez "] edition = "2018" description = "A renderer-agnostic library for native GUIs" @@ -16,10 +16,10 @@ unicode-segmentation = "1.6" num-traits = "0.2" [dependencies.iced_core] -version = "0.2" +version = "0.3" path = "../core" [dependencies.iced_futures] -version = "0.1" +version = "0.2" path = "../futures" features = ["thread-pool"] diff --git a/native/README.md b/native/README.md index 849deb58..6323dd4f 100644 --- a/native/README.md +++ b/native/README.md @@ -28,7 +28,7 @@ To achieve this, it introduces a bunch of reusable interfaces: Add `iced_native` as a dependency in your `Cargo.toml`: ```toml -iced_native = "0.2" +iced_native = "0.3" ``` __Iced moves fast and the `master` branch can contain breaking changes!__ If diff --git a/style/Cargo.toml b/style/Cargo.toml index abc64c0f..ac16f8ee 100644 --- a/style/Cargo.toml +++ b/style/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_style" -version = "0.1.0" +version = "0.2.0" authors = ["Héctor Ramón Jiménez "] edition = "2018" description = "The default set of styles of Iced" @@ -11,4 +11,4 @@ keywords = ["gui", "ui", "graphics", "interface", "widgets"] categories = ["gui"] [dependencies] -iced_core = { version = "0.2", path = "../core" } +iced_core = { version = "0.3", path = "../core" } diff --git a/web/Cargo.toml b/web/Cargo.toml index e03d2b63..e063a021 100644 --- a/web/Cargo.toml +++ b/web/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_web" -version = "0.2.1" +version = "0.3.0" authors = ["Héctor Ramón Jiménez "] edition = "2018" description = "A web backend for Iced" @@ -22,15 +22,15 @@ url = "2.0" num-traits = "0.2" [dependencies.iced_core] -version = "0.2" +version = "0.3" path = "../core" [dependencies.iced_futures] -version = "0.1" +version = "0.2" path = "../futures" [dependencies.iced_style] -version = "0.1" +version = "0.2" path = "../style" [dependencies.web-sys] diff --git a/web/README.md b/web/README.md index d6dd7950..0e770589 100644 --- a/web/README.md +++ b/web/README.md @@ -16,7 +16,7 @@ The crate is currently a __very experimental__, simple abstraction layer over [` Add `iced_web` as a dependency in your `Cargo.toml`: ```toml -iced_web = "0.2" +iced_web = "0.3" ``` __Iced moves fast and the `master` branch can contain breaking changes!__ If diff --git a/wgpu/Cargo.toml b/wgpu/Cargo.toml index 4d9f9ada..5f4699a8 100644 --- a/wgpu/Cargo.toml +++ b/wgpu/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_wgpu" -version = "0.2.2" +version = "0.3.0" authors = ["Héctor Ramón Jiménez "] edition = "2018" description = "A wgpu renderer for Iced" @@ -27,7 +27,7 @@ version = "1.4" features = ["derive"] [dependencies.iced_native] -version = "0.2" +version = "0.3" path = "../native" [dependencies.iced_graphics] diff --git a/wgpu/README.md b/wgpu/README.md index 4483733c..e8cb0a43 100644 --- a/wgpu/README.md +++ b/wgpu/README.md @@ -29,7 +29,7 @@ Currently, `iced_wgpu` supports the following primitives: Add `iced_wgpu` as a dependency in your `Cargo.toml`: ```toml -iced_wgpu = "0.2" +iced_wgpu = "0.3" ``` __Iced moves fast and the `master` branch can contain breaking changes!__ If diff --git a/winit/Cargo.toml b/winit/Cargo.toml index 7cf62821..8929564a 100644 --- a/winit/Cargo.toml +++ b/winit/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_winit" -version = "0.1.1" +version = "0.2.0" authors = ["Héctor Ramón Jiménez "] edition = "2018" description = "A winit runtime for Iced" @@ -20,7 +20,7 @@ log = "0.4" thiserror = "1.0" [dependencies.iced_native] -version = "0.2" +version = "0.3" path = "../native" [dependencies.iced_graphics] @@ -28,7 +28,7 @@ version = "0.1" path = "../graphics" [dependencies.iced_futures] -version = "0.1" +version = "0.2" path = "../futures" [target.'cfg(target_os = "windows")'.dependencies.winapi] diff --git a/winit/README.md b/winit/README.md index 8916afce..721baa14 100644 --- a/winit/README.md +++ b/winit/README.md @@ -20,7 +20,7 @@ It exposes a renderer-agnostic `Application` trait that can be implemented and t Add `iced_winit` as a dependency in your `Cargo.toml`: ```toml -iced_winit = "0.1" +iced_winit = "0.2" ``` __Iced moves fast and the `master` branch can contain breaking changes!__ If