Commit graph

109 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
d95889aca9
Fix default backend in iced_futures
Fixes #1228.
2022-02-01 11:40:58 +07:00
Héctor Ramón Jiménez
e730d97f61
Implement time module for wasm-bindgen backend in iced_futures 2022-01-28 21:37:17 +07:00
Héctor Ramón Jiménez
167be45a7d
Split iced_futures into different backend implementations 2022-01-28 21:37:17 +07:00
Héctor Ramón Jiménez
5dab5a327e
Introduce MaybeSend trait in iced_futures
It allows to clean up all the `trait_aliases` modules!
2022-01-28 21:37:17 +07:00
Vladyslav Nikonov
bdca20fc4a
Experimental wgpu WebGL backend support
- Added missing `draw_cache_align_4x4` call for `brush_glyph` on wasm32 target
- Added WebGL support to `integratio_wgpu` example
- Fixed test.yml CI workflow
- Removed spir-v shader in `integration_wgpu`; Fixed formatting
- Removed redundant `BoxStream` typedef
2022-01-28 21:37:14 +07:00
Héctor Ramón Jiménez
67f878b890
Remove support for old tokio crate 2022-01-12 20:03:18 +07:00
LordRatte
ff2a470fd8
Change GitHub namespace to new org for all files 2022-01-03 11:36:13 +07:00
Héctor Ramón Jiménez
998a04645d
Use commit hash in html_logo_url 2021-12-09 15:10:38 +07:00
daladim
d72b1493e0
Added icon in docs 2021-12-09 15:05:41 +07:00
Tanner Rogalsky
55eaeceec8 Collect the platform-specific concrete future implementations into mods. 2021-11-14 11:03:15 -05:00
Héctor Ramón Jiménez
6fce35393f
Hide implementation details of Command in iced_futures 2021-09-02 15:50:32 +07:00
Héctor Ramón Jiménez
76698ff2b5
Make Command implementations platform-specific
This allows us to introduce a platform-specific `Action` to both `iced_native`
and `iced_web` and remove the `Clipboard` from `Application::update` to maintain
purity.

Additionally, this should let us implement further actions to let users query
and modify the shell environment (e.g. window, clipboard, and more!)
2021-09-02 13:29:34 +07:00
Yusuf Bera Ertan
83d19689c8
docs: update all 0.2 github links to 0.3 2021-06-14 21:01:37 +03:00
Héctor Ramón Jiménez
0864e63bde Bump versions 🎉 2021-03-31 20:07:17 +02:00
Héctor Ramón Jiménez
6759a5c56f Log event subscription error as a warning 2021-02-23 02:16:12 +01:00
Héctor Ramón Jiménez
9da0a3de54 Use smol::Timer::interval for time::Every 2021-01-15 21:07:37 +01:00
Héctor Ramón Jiménez
fd2c96c8e3 Fix time::Every implementation for smol runtime 2021-01-15 18:52:12 +01:00
Jayce Fayne
b2415eee61 Add smol async runtime 2021-01-14 12:28:02 +01:00
Héctor Ramón Jiménez
09ea73bd2a Use Instant::into_std in futures::time 2021-01-04 23:20:40 +01:00
Yusuf Bera Ertan
50452e62b4 Update tokio to 1.0 2021-01-04 23:20:21 +01:00
Héctor Ramón Jiménez
f78108a514 Bump versions 🎉 2020-11-26 16:47:41 +01:00
Héctor Ramón Jiménez
745aa49025 Update example links to point to 0.2 branch 2020-11-26 16:37:33 +01:00
Héctor Ramón Jiménez
11798dcc03 Update graphs in crate docs 2020-11-26 07:22:03 +01:00
Héctor Ramón Jiménez
01322f69a4 Use recently stabilized intra-doc links
See RFC: https://github.com/rust-lang/rfcs/blob/master/text/1946-intra-rustdoc-links.md
2020-11-26 02:05:43 +01:00
Héctor Ramón Jiménez
782dd2f522 Introduce tokio_old feature
This feature allows users to rely on the `0.2` version of `tokio` while
the async ecosystem upgrades to the latest version.
2020-11-25 03:06:24 +01:00
valbendan
eacb2e913f upgrade tokio to latest version(v0.3) 2020-11-05 11:36:23 +08:00
Héctor Ramón Jiménez
dd1b1cac0a Accept a function pointer in Subscription::map
Instead of a closure, a function pointer can be hashed and used to
uniquely identify a particular `Subscription`.

This should fix a bug where two different instances of `Subscription`
producing the same output were not treated differently by the runtime,
causing one of them to be ignored.
2020-10-29 10:27:18 +01:00
Héctor Ramón Jiménez
1501a93915 Disable time module on Wasm for now 2020-04-30 05:51:41 +02:00
Héctor Ramón Jiménez
e2076612cb Implement time::every in iced_futures 2020-04-30 05:37:44 +02:00
Héctor Ramón Jiménez
3f4770fd28 Bump versions 🎉 2020-04-26 17:20:56 +02:00
Héctor Ramón Jiménez
63f54edf0c Use Rc in Command::map for Wasm 2020-04-25 02:29:40 +02:00
Olivier Pinon
f1e18d0935 #321 cargo fmt 2020-04-25 02:05:17 +02:00
Olivier Pinon
ce2ed35a1a #321 Fix async examples by feature-gating Command implementations + Add pokedex example in CI so that at least one async example is runned on CI 2020-04-25 02:03:17 +02:00
Héctor Ramón Jiménez
4808fcbd7e Bump versions 🎉 2020-04-15 08:58:14 +02:00
Héctor Ramón Jiménez
335ad1dd1d Enable feature flags in docs.rs 2020-04-05 04:52:03 +02:00
Rob Ede
070e8e70e4
doc feature flags in futures 2020-04-04 02:25:40 +01:00
Héctor Ramón Jiménez
d0cca658a1 Bump all versions 🎉 2020-04-02 17:40:20 +02:00
Héctor Ramón Jiménez
743c8851d4 Fix broken link in Tracker::broadcast docs 2020-04-02 03:50:39 +02:00
Héctor Ramón Jiménez
0f745f0c14 Fix missing link in Command documentation 2020-04-02 03:48:29 +02:00
Héctor Ramón Jiménez
e1e42f87bd Add examples to subscription::Recipe docs 2020-04-02 03:44:14 +02:00
Héctor Ramón Jiménez
512dbd5076 Fix missing link in Tracker::broadcast docs 2020-04-02 03:44:14 +02:00
Héctor Ramón Jiménez
4979635764 Fix missing link in Executor::enter doc comment 2020-04-02 03:44:14 +02:00
Héctor Ramón Jiménez
338fff35ac Make subscription::Recipe cross-platform
By removing the `Send` requirement when targetting Wasm
2020-03-26 14:55:02 +01:00
Héctor Ramón Jiménez
138110f596 Simplify iced_futures::Command implementation 2020-03-26 14:54:47 +01:00
Héctor Ramón Jiménez
ec1f34ccea Add BoxFutures and BoxStream to iced_futures 2020-03-26 14:53:58 +01:00
Héctor Ramón Jiménez
a6531c840b Implement Subscription::with 2020-03-05 02:08:53 +01:00
Héctor Ramón Jiménez
09cf0b7af3 Enter executor context only on Recipe creation 2020-02-16 11:31:37 +01:00
Héctor Ramón Jiménez
ca213922d0 Drop Send in Command and Executor on Wasm 2020-02-05 04:14:26 +01:00
Héctor Ramón Jiménez
8f52604987 Use reqwest and tokio in pokedex example 2020-02-05 01:40:27 +01:00
Héctor Ramón Jiménez
6d46833eb2 Support event subscriptions in iced_web
Also improves the overall web runtime, avoiding nested update loops.
2020-02-04 03:28:47 +01:00