Skip to content

aalhitennf/floem-things

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thonk

Some "things" for Floem (git main)

Basic things

  • Resizable and configurable Split view
  • Separator
  • H1/2/3/4/5/6 (text or dynamic with label)

Things behind feature flags

  • async-img

    Loads image from url asynchronously on background task or thread.

    Enable runtime support with one of the feature flags: tokio, async-std, smol. Or thread without any async runtime.
    Floem uses async-std by default so if you want to use tokio, disable default features on this crate.

  • cache

    Enables async-img and AsyncCache for it. Stores fetched images in a DashMap.

    You need to create and provide the cache with floems provide_context function. See examples/async_cache.rs.

Examples

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

About

Some widgets for Floem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages