Skip to content

Commit

Permalink
Merge pull request #637 from hecrj/0.2
Browse files Browse the repository at this point in the history
Release `0.2` — Canvas interactivity, overlay support, a renderer alternative, and more!
  • Loading branch information
hecrj authored Nov 26, 2020
2 parents b5c41a8 + f78108a commit d16b9cf
Show file tree
Hide file tree
Showing 26 changed files with 68 additions and 65 deletions.
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "iced"
version = "0.1.1"
version = "0.2.0"
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
edition = "2018"
description = "A cross-platform GUI library inspired by Elm"
Expand Down Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "iced_core"
version = "0.2.1"
version = "0.3.0"
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
edition = "2018"
description = "The essential concepts of Iced"
Expand Down
2 changes: 1 addition & 1 deletion core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion futures/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "iced_futures"
version = "0.1.2"
version = "0.2.0"
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
edition = "2018"
description = "Commands, subscriptions, and runtimes for Iced"
Expand Down
6 changes: 3 additions & 3 deletions futures/src/subscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ impl<I, O, H> std::fmt::Debug for Subscription<I, O, H> {
/// - [`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<Hasher: std::hash::Hasher, Event> {
/// The events that will be produced by a [`Subscription`] with this
/// [`Recipe`].
Expand Down
2 changes: 1 addition & 1 deletion glow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ bytemuck = "1.4"
log = "0.4"

[dependencies.iced_native]
version = "0.2"
version = "0.3"
path = "../native"

[dependencies.iced_graphics]
Expand Down
2 changes: 1 addition & 1 deletion glow/src/widget/pane_grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand Down
4 changes: 2 additions & 2 deletions glutin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions graphics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion graphics/src/widget/pane_grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
6 changes: 3 additions & 3 deletions native/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "iced_native"
version = "0.2.2"
version = "0.3.0"
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
edition = "2018"
description = "A renderer-agnostic library for native GUIs"
Expand All @@ -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"]
2 changes: 1 addition & 1 deletion native/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion native/src/user_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down
10 changes: 5 additions & 5 deletions native/src/widget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Message, Renderer>
where
Renderer: crate::Renderer,
Expand Down
19 changes: 11 additions & 8 deletions src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 11 additions & 11 deletions src/sandbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down
4 changes: 2 additions & 2 deletions style/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "iced_style"
version = "0.1.0"
version = "0.2.0"
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
edition = "2018"
description = "The default set of styles of Iced"
Expand All @@ -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" }
8 changes: 4 additions & 4 deletions web/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "iced_web"
version = "0.2.1"
version = "0.3.0"
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
edition = "2018"
description = "A web backend for Iced"
Expand All @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion web/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
4 changes: 2 additions & 2 deletions wgpu/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "iced_wgpu"
version = "0.2.2"
version = "0.3.0"
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
edition = "2018"
description = "A wgpu renderer for Iced"
Expand All @@ -27,7 +27,7 @@ version = "1.4"
features = ["derive"]

[dependencies.iced_native]
version = "0.2"
version = "0.3"
path = "../native"

[dependencies.iced_graphics]
Expand Down
2 changes: 1 addition & 1 deletion wgpu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions winit/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "iced_winit"
version = "0.1.1"
version = "0.2.0"
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
edition = "2018"
description = "A winit runtime for Iced"
Expand All @@ -20,15 +20,15 @@ log = "0.4"
thiserror = "1.0"

[dependencies.iced_native]
version = "0.2"
version = "0.3"
path = "../native"

[dependencies.iced_graphics]
version = "0.1"
path = "../graphics"

[dependencies.iced_futures]
version = "0.1"
version = "0.2"
path = "../futures"

[target.'cfg(target_os = "windows")'.dependencies.winapi]
Expand Down
2 changes: 1 addition & 1 deletion winit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d16b9cf

Please sign in to comment.