Cargo Features

RustEmbed has no features set by default.

[dependencies]
rust-embed = { version = "8.5.0", features = ["debug-embed", "interpolate-folder-path", "compression", "mime-guess", "include-exclude", "actix", "warp-ex", "axum-ex", "poem-ex", "salvo-ex", "rocket"] }
debug-embed

Enables debug-embed of rust-embed-impl and rust-embed-utils

interpolate-folder-path

Enables interpolate-folder-path of rust-embed-impl

compression = include-flate

Enables compression of rust-embed-impl

mime-guess

Enables mime-guess of rust-embed-impl and rust-embed-utils

include-exclude

Enables include-exclude of rust-embed-impl and rust-embed-utils

actix = actix-web, mime_guess
warp-ex = mime_guess, tokio, warp
axum-ex = axum, mime_guess, tokio
poem-ex = hex, mime_guess, poem, tokio
salvo-ex = hex, mime_guess, salvo, tokio

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.

include-flate compression?
actix-web actix?
mime_guess actix? axum-ex? poem-ex? salvo-ex? warp-ex?
hex poem-ex? salvo-ex?
tokio axum-ex? poem-ex? salvo-ex? warp-ex?
warp warp-ex?
rocket implicit feature

Enables rocket

rocket:

Web framework with a focus on usability, security, extensibility, and speed

axum axum-ex?
poem poem-ex?

Enables poem ^1.3.30

salvo salvo-ex?

Enables salvo ^0.16