Merge pull request #637 from hecrj/0.2
Release `0.2` — Canvas interactivity, overlay support, a renderer alternative, and more!
This commit is contained in:
commit
d16b9cf7cd
12
Cargo.toml
12
Cargo.toml
@ -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"
|
||||
@ -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"]
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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`].
|
||||
|
@ -24,7 +24,7 @@ bytemuck = "1.4"
|
||||
log = "0.4"
|
||||
|
||||
[dependencies.iced_native]
|
||||
version = "0.2"
|
||||
version = "0.3"
|
||||
path = "../native"
|
||||
|
||||
[dependencies.iced_graphics]
|
||||
|
@ -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::{
|
||||
|
@ -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]
|
||||
|
@ -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]
|
||||
|
@ -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};
|
||||
|
@ -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"
|
||||
@ -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"]
|
||||
|
@ -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
|
||||
|
@ -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>,
|
||||
|
@ -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,
|
||||
|
@ -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/
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
///
|
||||
|
@ -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"
|
||||
@ -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" }
|
||||
|
@ -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"
|
||||
@ -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]
|
||||
|
@ -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
|
||||
|
@ -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)]
|
||||
|
@ -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"
|
||||
@ -27,7 +27,7 @@ version = "1.4"
|
||||
features = ["derive"]
|
||||
|
||||
[dependencies.iced_native]
|
||||
version = "0.2"
|
||||
version = "0.3"
|
||||
path = "../native"
|
||||
|
||||
[dependencies.iced_graphics]
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
@ -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]
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user