tower-serve-embedded 0.2.0

Embed content-hashed, cache-busted static web assets into your binary and serve them as a tower::Service, with a compile-time asset! macro for SSR templates.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "tower-serve-embedded"
version = "0.2.0"
build = false
exclude = [
    "/flake.nix",
    "/flake.lock",
    "/.envrc",
    "/.direnv",
    "/rust-toolchain.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Embed content-hashed, cache-busted static web assets into your binary and serve them as a tower::Service, with a compile-time asset! macro for SSR templates."
readme = "README.md"
keywords = [
    "tower",
    "embed",
    "assets",
    "cache-busting",
    "web",
]
categories = [
    "web-programming",
    "caching",
]
license = "MIT OR Apache-2.0"
repository = "https://code.vanhouzen.me/cameron/tower-serve-embedded"

[lib]
name = "tower_serve_embedded"
path = "src/lib.rs"

[[test]]
name = "service"
path = "tests/service.rs"

[dependencies.bytes]
version = "1"

[dependencies.http]
version = "1"

[dependencies.http-body-util]
version = "0.1"

[dependencies.tower-service]
version = "0.3"

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt",
]

[dev-dependencies.tower]
version = "0.5"
features = ["util"]