Cargo Features
leptos_image_optimizer has no features set by default.
[dependencies]
leptos_image_optimizer = { version = "0.1.0", features = ["ssr", "hydrate"] }
- ssr
-
Enables actix-web, axum ^0.6.4, futures, glob, and image ^0.24.6, log, tokio, tower ^0.4.13, tower-http ^0.4, and webp ^0.2.2, ssr of leptos ^0.5.1, leptos_meta ^0.5.1, and leptos_router ^0.5.1
Affects
cache::cache_app_images
,introspect::find_app_images
,introspect::find_app_images_with_mount
,introspect::find_app_images_from_paths
,optimizer::CreateImageError
,routes::handlers
… - hydrate
-
Enables web-sys, hydrate of leptos ^0.5.1 and leptos_router ^0.5.1