[package] name = "leptos_image_optimizer" version = "0.1.0" edition = "2021" authors = ["jinseok Seo"] description = "Static Image Optimizer for Leptos" exclude = ["example/"] keywords = ["leptos","image","image-optimization"] license = "MIT" readme = "README.md" [dependencies] leptos = { version = "0.5.1", default-features = false } leptos_router = { version = "0.5.1", default-features = false } leptos_meta = { version = "0.5.1", default-features = false } wasm-bindgen = "=0.2.88" web-sys = { version = "0.3", optional = true, features = ["HtmlImageElement"] } actix-web = { version = "4.4.0", optional = true } hyper = "0.14" tokio = { version = "1.25.0", features = ["rt", "fs"], optional = true } axum = { version = "0.6.4", optional = true } tower = { version = "0.4.13", optional = true } tower-http = { version = "0.4", features = ["fs"], optional = true } web = "0.2.12" image = { version = "0.24.6", optional = true } webp = { version = "0.2.2", optional = true } serde = { version = "1.0.164", features = ["derive"] } serde_qs = "0.12.0" thiserror = "1.0.38" base64 = "0.21.2" lazy_static = "1.4.0" futures = { version = "0.3.28", optional = true } glob = { version = "0.3.1", optional = true } log = { version = "0.4.19", optional = true } svg_to_png = "0.1.0" [dependencies.nsvg] version = "0.5.1" default-features = false [features] ssr = [ "leptos_router/ssr", "leptos_meta/ssr", "leptos/ssr", "dep:webp", "dep:image", "dep:tokio", "dep:axum", "dep:tower", "dep:tower-http", "dep:futures", "dep:glob", "dep:log", "dep:actix-web", ] hydrate = ["dep:web-sys", "leptos/hydrate", "leptos_router/hydrate"]