71 lines
2.4 KiB
TOML
71 lines
2.4 KiB
TOML
[package]
|
|
name = "yumechi-no-kuni-proxy-worker"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
authors = [ "eternal-flame-AD <yume@yumechi.jp>" ]
|
|
|
|
[package.metadata.release]
|
|
release = false
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
build = "build.rs"
|
|
|
|
[profile.release]
|
|
lto = true
|
|
strip = true
|
|
opt-level = "z"
|
|
codegen-units = 1
|
|
panic = "abort"
|
|
|
|
[profile.release-local]
|
|
inherits = "release"
|
|
opt-level = 3
|
|
strip = false
|
|
panic = "unwind"
|
|
|
|
[features]
|
|
default = []
|
|
env-local = ["axum/http1", "axum/http2", "reqwest", "tokio", "env_logger", "governor", "clap", "toml", "image/rayon"]
|
|
cf-worker = ["dep:worker", "dep:worker-macros"]
|
|
panic-console-error = ["dep:console_error_panic_hook"]
|
|
apparmor = ["dep:rand_core", "dep:siphasher"]
|
|
reqwest = ["dep:reqwest"]
|
|
svg-text = ["resvg/text"]
|
|
tokio = ["dep:tokio", "axum/tokio"]
|
|
env_logger = ["dep:env_logger"]
|
|
governor = ["dep:governor"]
|
|
|
|
[dependencies]
|
|
worker = { version="0.4.2", features=['http', 'axum'], optional = true }
|
|
worker-macros = { version="0.4.2", features=['http'], optional = true }
|
|
axum = { version = "0.7", default-features = false, features = ["query", "json"] }
|
|
tower-service = "0.3"
|
|
console_error_panic_hook = { version = "0.1.1", optional = true }
|
|
serde = { version = "1", features = ["derive"] }
|
|
futures = { version = "0.3.31", default-features = false, features = ["std"] }
|
|
image = { version = "0.25.5", default-features = false, features = ["avif", "bmp", "gif", "jpeg", "png", "webp"] }
|
|
reqwest = { version = "0.12.9", features = ["brotli", "gzip", "stream", "zstd"], optional = true }
|
|
rand_core = { version = "0.6.4", features = ["getrandom"], optional = true }
|
|
siphasher = { version = "1.0.1", optional = true }
|
|
tokio = { version = "1.41.1", features = ["rt", "rt-multi-thread", "macros"], optional = true }
|
|
clap = { version = "4.5.20", features = ["derive"], optional = true }
|
|
toml = { version = "0.8", optional = true }
|
|
log = "0.4"
|
|
env_logger = { version = "0.11", optional = true }
|
|
governor = { version = "0.7.0", features = ["dashmap"], optional = true }
|
|
resvg = { version = "0.44.0", default-features = false, features = ["gif", "image-webp"] }
|
|
thiserror = "2.0"
|
|
serde_json = "1"
|
|
wasm-bindgen = { version = "0.2" }
|
|
|
|
[build-dependencies]
|
|
chumsky = "0.9.3"
|
|
quote = "1.0.37"
|
|
serde = { version = "1.0.214", features = ["derive"] }
|
|
serde_json = "1.0.132"
|
|
|
|
[[bin]]
|
|
name = "yumechi-no-kuni-proxy-worker"
|
|
path = "src/main.rs"
|
|
required-features = ["env-local"]
|