[package]
edition = "2024"
name = "random-image-server"
version = "0.2.1"
authors = ["Anthony Rubick <68485672+AnthonyMichaelTDM@users.noreply.github.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A simple image server that serves random images from a preconfigured list of paths and URLs."
readme = "README.md"
license = "GPL-3.0-or-later"
repository = "https://github.com/AnthonyMichaelTDM/random-image-server"
[lib]
name = "random_image_server"
path = "src/lib.rs"
[[bin]]
name = "random-image-server"
path = "src/main.rs"
test = false
[[test]]
name = "config"
path = "tests/config.rs"
[[test]]
name = "filesystem_cache"
path = "tests/filesystem_cache.rs"
[[test]]
name = "in_memory_cache"
path = "tests/in_memory_cache.rs"
[[test]]
name = "populate_cache"
path = "tests/populate_cache.rs"
[[test]]
name = "random_handle"
path = "tests/random_handle.rs"
[[test]]
name = "read_image"
path = "tests/read_image.rs"
[[test]]
name = "sequential_handle"
path = "tests/sequential_handle.rs"
[[test]]
name = "server"
path = "tests/server.rs"
[dependencies.anyhow]
version = "1.0"
[dependencies.http-body-util]
version = "0.1"
[dependencies.hyper]
version = "1.0"
features = ["server"]
[dependencies.hyper-util]
version = "0.1"
features = [
"server-auto",
"server-graceful",
"tokio",
"tracing",
]
[dependencies.md5]
version = "0.8.0"
[dependencies.mime_guess]
version = "2.0.5"
[dependencies.pretty_assertions]
version = "1.4.1"
[dependencies.rand]
version = "0.9.2"
[dependencies.reqwest]
version = "0.12.25"
features = [
"charset",
"http2",
"rustls-tls",
"system-proxy",
]
default-features = false
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.tempfile]
version = "3.23"
[dependencies.tokio]
version = "1.48"
features = [
"macros",
"net",
"rt-multi-thread",
"signal",
]
[dependencies.toml]
version = "0.9.8"
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"fmt",
"env-filter",
]
[dependencies.url]
version = "2.5.7"
features = ["serde"]
[dependencies.uuid]
version = "1.19"
features = ["v4"]
[dependencies.walkdir]
version = "2.5.0"
[dev-dependencies.rstest]
version = "0.26.1"
[profile.dist]
lto = "thin"
inherits = "release"
[profile.tarpaulin]
opt-level = 0
inherits = "test"