[package]
edition = "2018"
rust-version = "1.80.0"
name = "rust-embed"
version = "8.12.0"
authors = ["pyrossh"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust Custom Derive Macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev"
documentation = "https://docs.rs/rust-embed"
readme = "README.md"
keywords = [
"http",
"rocket",
"static",
"web",
"server",
]
categories = [
"web-programming",
"filesystem",
]
license = "MIT"
repository = "https://pyrossh.dev/repos/rust-embed"
[badges.maintenance]
status = "passively-maintained"
[features]
actix = [
"actix-web",
"mime_guess",
]
axum-ex = [
"axum",
"tokio",
"mime_guess",
]
compression = [
"rust-embed-impl/compression",
"rust-embed-utils/compression",
"include-flate",
]
debug-embed = [
"rust-embed-impl/debug-embed",
"rust-embed-utils/debug-embed",
]
deterministic-timestamps = ["rust-embed-impl/deterministic-timestamps"]
include-exclude = [
"rust-embed-impl/include-exclude",
"rust-embed-utils/include-exclude",
]
interpolate-folder-path = ["rust-embed-impl/interpolate-folder-path"]
mime-guess = ["rust-embed-utils/mime-guess"]
poem-ex = [
"poem",
"tokio",
"mime_guess",
"hex",
]
salvo-ex = [
"salvo",
"tokio",
"mime_guess",
"hex",
]
warp-ex = [
"warp",
"tokio",
"mime_guess",
]
[lib]
name = "rust_embed"
path = "src/lib.rs"
[[example]]
name = "actix"
path = "examples/actix.rs"
required-features = ["actix"]
[[example]]
name = "axum"
path = "examples/axum.rs"
required-features = ["axum-ex"]
[[example]]
name = "axum-spa"
path = "examples/axum-spa/main.rs"
required-features = ["axum-ex"]
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "poem"
path = "examples/poem.rs"
required-features = ["poem-ex"]
[[example]]
name = "rocket"
path = "examples/rocket.rs"
required-features = ["rocket"]
[[example]]
name = "salvo"
path = "examples/salvo.rs"
required-features = ["salvo-ex"]
[[example]]
name = "warp"
path = "examples/warp.rs"
required-features = ["warp-ex"]
[[test]]
name = "allow_missing"
path = "tests/allow_missing.rs"
[[test]]
name = "compression"
path = "tests/compression.rs"
required-features = ["compression"]
[[test]]
name = "custom_crate_path"
path = "tests/custom_crate_path.rs"
[[test]]
name = "include_exclude"
path = "tests/include_exclude.rs"
required-features = ["include-exclude"]
[[test]]
name = "interpolated_path"
path = "tests/interpolated_path.rs"
required-features = ["interpolate-folder-path"]
[[test]]
name = "lib"
path = "tests/lib.rs"
[[test]]
name = "metadata"
path = "tests/metadata.rs"
[[test]]
name = "metadata_only"
path = "tests/metadata_only.rs"
[[test]]
name = "mime_guess"
path = "tests/mime_guess.rs"
required-features = ["mime-guess"]
[[test]]
name = "path_traversal_attack"
path = "tests/path_traversal_attack.rs"
[[test]]
name = "prefix"
path = "tests/prefix.rs"
[dependencies.actix-web]
version = "4"
optional = true
[dependencies.axum]
version = "0.8"
features = [
"http1",
"tokio",
]
optional = true
default-features = false
[dependencies.hex]
version = "0.4.3"
optional = true
[dependencies.include-flate]
version = "0.3"
optional = true
[dependencies.mime_guess]
version = "2.0.5"
optional = true
[dependencies.poem]
version = "1.3.30"
features = ["server"]
optional = true
default-features = false
[dependencies.rocket]
version = "0.5.0-rc.2"
optional = true
default-features = false
[dependencies.rust-embed-impl]
version = "8.12.0"
[dependencies.rust-embed-utils]
version = "8.12.0"
[dependencies.salvo]
version = "0.16"
optional = true
default-features = false
[dependencies.tokio]
version = "1.0"
features = [
"macros",
"rt-multi-thread",
]
optional = true
[dependencies.walkdir]
version = "2.3.2"
[dependencies.warp]
version = "0.3"
optional = true
default-features = false
[dev-dependencies.sha2]
version = "0.11"