From dbe96d1482125f2019955d1362a49743ec7d59cf Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Fri, 22 Nov 2024 13:57:25 -0600 Subject: [PATCH] Cargo.toml formatting Signed-off-by: eternal-flame-AD --- Cargo.toml | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6a8bac6..f9665b2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,9 +7,6 @@ version = "0.1.0" edition = "2021" authors = [ "eternal-flame-AD " ] -[package.metadata.release] -release = false - [lib] crate-type = ["cdylib", "rlib"] @@ -28,6 +25,8 @@ panic = "unwind" [features] default = [] + +# Base feature sets based on the environment env-local = ["axum/http1", "axum/http2", "axum-server", "reqwest", "tokio", @@ -40,22 +39,30 @@ env-local = ["axum/http1", "axum/http2", "metrics", "svg-text", "resvg/system-fonts", "resvg/raster-images", "fontdb/fontconfig" ] -reuse-port = [] -metrics = ["prometheus"] cf-worker = ["dep:worker", "dep:worker-macros", "dep:wasm-bindgen"] cf-worker-paid = ["cf-worker", "resvg/raster-images", "resvg/text", "image/ico", "panic-console-error"] + +# Observability and tracing features panic-console-error = ["dep:console_error_panic_hook"] -apparmor = ["dep:siphasher", "dep:libc"] -reqwest = ["dep:reqwest", "dep:url"] -svg-text = ["resvg/text", "dep:fontdb"] -tokio = ["dep:tokio", "axum/tokio", "dep:libc"] -env_logger = ["dep:env_logger"] -governor = ["dep:governor"] -axum-server = ["dep:axum-server", "tower-http"] -lossy-webp = ["dep:webp"] -tower-http = ["dep:tower-http"] +metrics = ["prometheus"] prometheus = ["dep:prometheus"] +# Processing capabilities +svg-text = ["resvg/text", "dep:fontdb"] +lossy-webp = ["dep:webp"] + +# Server runtime features +tokio = ["dep:tokio", "axum/tokio", "dep:libc"] +axum-server = ["dep:axum-server", "tower-http"] +governor = ["dep:governor"] +env_logger = ["dep:env_logger"] +tower-http = ["dep:tower-http"] +reuse-port = [] +reqwest = ["dep:reqwest", "dep:url"] + +# Sandbox features +apparmor = ["dep:siphasher", "dep:libc"] + [dependencies] worker = { version="0.4.2", features=['http', 'axum'], optional = true } worker-macros = { version="0.4.2", features=['http'], optional = true }