# Unlicense — cochranblock.org
# Contributors: GotEmCoach, KOVA, Claude Opus 4.6

[package]
name = "pocket-server"
version = "0.1.0"
edition = "2024"
description = "Your website lives on your phone. No hosting bill. Ever."
license = "Unlicense"
repository = "https://github.com/cochranblock/pocket-server"
homepage = "https://cochranblock.org"
keywords = ["web-server", "android", "static-site", "self-hosted", "phone"]
categories = ["web-programming::http-server", "command-line-utilities"]

[lib]
name = "pocket_server"
crate-type = ["cdylib", "staticlib", "rlib"]

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

[dependencies]
axum = { version = "0.7", features = ["multipart"] }
tokio = { version = "1", features = ["rt-multi-thread", "macros", "net", "process", "io-util", "fs", "signal"] }
tower-http = { version = "0.5", features = ["compression-zstd", "fs"] }

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

[dev-dependencies]
tower = { version = "0.5", features = ["util"] }
http-body-util = "0.1"

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