Cargo.toml formatting
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
parent
ac1f17d84e
commit
dbe96d1482
1 changed files with 21 additions and 14 deletions
35
Cargo.toml
35
Cargo.toml
|
@ -7,9 +7,6 @@ version = "0.1.0"
|
|||
edition = "2021"
|
||||
authors = [ "eternal-flame-AD <yume@yumechi.jp>" ]
|
||||
|
||||
[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 }
|
||||
|
|
Loading…
Reference in a new issue