# 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 = "pocket-server"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Your website lives on your phone. No hosting bill. Ever."
homepage = "https://cochranblock.org"
readme = "README.md"
keywords = [
    "web-server",
    "android",
    "static-site",
    "self-hosted",
    "phone",
]
categories = [
    "web-programming::http-server",
    "command-line-utilities",
]
license = "Unlicense"
repository = "https://github.com/cochranblock/pocket-server"

[lib]
name = "pocket_server"
crate-type = [
    "cdylib",
    "staticlib",
    "rlib",
]
path = "src/lib.rs"

[[bin]]
name = "pocket-server"
path = "src/main.rs"

[dependencies.axum]
version = "0.7"
features = ["multipart"]

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "net",
    "process",
    "io-util",
    "fs",
    "signal",
]

[dependencies.tower-http]
version = "0.5"
features = [
    "compression-zstd",
    "fs",
]

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

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

[target.'cfg(target_os = "android")'.dependencies.jni]
version = "0.22"

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true
