Cargo Features
[dependencies]
floem = { version = "0.2.0", default-features = false, features = ["vello", "vger", "serde", "editor", "default-image-formats", "image-avif", "image-bmp", "image-dds", "image-exr", "image-ff", "image-gif", "image-hdr", "image-ico", "image-jpeg", "image-png", "image-pnm", "image-qoi", "image-tga", "image-tiff", "image-webp", "tokio", "rfd-async-std", "rfd-tokio", "futures"] }
- default = default-image-formats, editor, vger
-
These default features are set whenever
floem
is added without
somewhere in the dependency tree.default-features = false - vello
-
Enables floem_vello_renderer
- vger default
-
Enables floem_vger_renderer
- serde
-
TODO: this is only winit and the editor serde, there are other dependencies that still depend on serde
Enables serde, serde of floem-winit
- editor default = floem-editor-core
-
Enables downcast-rs, lapce-xi-rope, strum, and strum_macros
downcast-rs:
TODO: once https://github.com/rust-lang/rust/issues/65991 is stabilized we don't need this
Affects
views::editor
,views::text_editor
… - default-image-formats default = image-ico, image-jpeg, image-png, image-webp
-
Image support From: https://github.com/image-rs/image/blob/main/Cargo.toml
- image-avif
- image-bmp
- image-dds
- image-exr
- image-ff
-
image:
Farbfeld image format
- image-gif
- image-hdr
- image-ico default-image-formats
- image-jpeg default-image-formats
- image-png default-image-formats
- image-pnm
- image-qoi
- image-tga
- image-tiff
- image-webp default-image-formats
- tokio
-
Enables tokio
Affects
ext_event::create_signal_from_tokio_channel
… - rfd-async-std
-
rfd (file dialog) async runtime
Enables async-std of rfd ^0.14.0
Affects
floem::file_action
… - rfd-tokio
-
Enables tokio of rfd ^0.14.0
rfd:
Use tokio for xdg-portal
Affects
floem::file_action
… - futures
-
Enables futures
Affects
ext_event::create_signal_from_stream
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.