Some "things" for Floem (git main)
- Resizable and configurable Split view
- Separator
- H1/2/3/4/5/6 (text or dynamic with label)
-
Loads image from url asynchronously on background task or thread.
Enable runtime support with one of the feature flags:
tokio
,async-std
,smol
. Orthread
without any async runtime.
Floem usesasync-std
by default so if you want to usetokio
, disable default features on this crate. -
Enables
async-img
andAsyncCache
for it. Stores fetched images in aDashMap
.
You need to create and provide the cache with floems
provide_context
function. Seeexamples/async_cache.rs
.
Split
cargo run --example split
Async image
cargo run --example async_image --features {async-std,smol,thread}
cargo run --example async_image --no-default-features --features tokio
Async image with cache
cargo run --example async_cache --features cache,{async-std,smol,thread}
cargo run --example async_cache --no-default-features --features cache,tokio