[package]
edition = "2018"
name = "rust-embed-for-web"
version = "11.4.1"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust Macro which embeds files into your executable. A fork of `rust-embed` with a focus on usage on web servers."
documentation = "https://docs.rs/rust-embed-for-web"
readme = "README.md"
keywords = [
"http",
"embed",
"static",
"web",
"server",
]
categories = [
"web-programming",
"filesystem",
]
license = "MIT"
repository = "https://github.com/SeriousBug/rust-embed-for-web"
[features]
always-embed = ["rust-embed-for-web-impl/always-embed"]
bench-fixtures = ["always-embed"]
compression-zstd = [
"rust-embed-for-web-impl/compression-zstd",
"rust-embed-for-web-utils/compression-zstd",
]
default = [
"interpolate-folder-path",
"include-exclude",
]
include-exclude = [
"rust-embed-for-web-impl/include-exclude",
"rust-embed-for-web-utils/include-exclude",
]
interpolate-folder-path = ["rust-embed-for-web-impl/interpolate-folder-path"]
[lib]
name = "rust_embed_for_web"
path = "src/lib.rs"
[[example]]
name = "actix"
path = "examples/actix.rs"
[[example]]
name = "bench_size"
path = "examples/bench_size.rs"
required-features = ["bench-fixtures"]
[[test]]
name = "allow_missing"
path = "tests/allow_missing.rs"
[[test]]
name = "basic"
path = "tests/basic.rs"
[[test]]
name = "compression"
path = "tests/compression.rs"
required-features = [
"always-embed",
"compression-zstd",
]
[[test]]
name = "compression_without_zstd"
path = "tests/compression_without_zstd.rs"
required-features = ["always-embed"]
[[test]]
name = "contents"
path = "tests/contents.rs"
[[test]]
name = "dynamic"
path = "tests/dynamic.rs"
[[test]]
name = "feature_zstd"
path = "tests/feature_zstd.rs"
[[test]]
name = "gzip"
path = "tests/gzip.rs"
required-features = ["always-embed"]
[[test]]
name = "include-exclude"
path = "tests/include-exclude.rs"
required-features = ["include-exclude"]
[[test]]
name = "meta"
path = "tests/meta.rs"
[[test]]
name = "prefix"
path = "tests/prefix.rs"
[[test]]
name = "zstd"
path = "tests/zstd.rs"
required-features = [
"always-embed",
"compression-zstd",
]
[[bench]]
name = "embed_lookup"
path = "benches/embed_lookup.rs"
harness = false
required-features = ["bench-fixtures"]
[dependencies.rust-embed-for-web-impl]
version = "11.4.1"
[dependencies.rust-embed-for-web-utils]
version = "11.4.1"
[dependencies.walkdir]
version = "2.4.0"
[dev-dependencies.actix-web]
version = "4.4"
[dev-dependencies.brotli]
version = "8.0"
[dev-dependencies.chrono]
version = "0.4"
default-features = false
[dev-dependencies.criterion]
version = "0.7"
[dev-dependencies.flate2]
version = "1.0"
[dev-dependencies.time]
version = ">=0.3, <0.3.52"
[dev-dependencies.zstd]
version = "0.13"