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 default-features = false somewhere in the dependency tree.

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

Enables avif of image

image-bmp

Enables bmp of image

image-dds

Enables dds of image

image-exr

Enables exr of image

image-ff

Enables ff of image

image:

Farbfeld image format

image-gif

Enables gif of image

image-hdr

Enables hdr of image

image-ico default-image-formats

Enables ico of image

image-jpeg default-image-formats

Enables jpeg of image

image-png default-image-formats

Enables png of image

image-pnm

Enables pnm of image

image-qoi

Enables qoi of image

image-tga

Enables tga of image

image-tiff

Enables tiff of image

image-webp default-image-formats

Enables webp of image

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.

floem-editor-core editor