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"
|
edition = "2021"
|
||||||
authors = [ "eternal-flame-AD <yume@yumechi.jp>" ]
|
authors = [ "eternal-flame-AD <yume@yumechi.jp>" ]
|
||||||
|
|
||||||
[package.metadata.release]
|
|
||||||
release = false
|
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
crate-type = ["cdylib", "rlib"]
|
crate-type = ["cdylib", "rlib"]
|
||||||
|
|
||||||
|
@ -28,6 +25,8 @@ panic = "unwind"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
|
|
||||||
|
# Base feature sets based on the environment
|
||||||
env-local = ["axum/http1", "axum/http2",
|
env-local = ["axum/http1", "axum/http2",
|
||||||
"axum-server",
|
"axum-server",
|
||||||
"reqwest", "tokio",
|
"reqwest", "tokio",
|
||||||
|
@ -40,22 +39,30 @@ env-local = ["axum/http1", "axum/http2",
|
||||||
"metrics",
|
"metrics",
|
||||||
"svg-text", "resvg/system-fonts", "resvg/raster-images", "fontdb/fontconfig"
|
"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 = ["dep:worker", "dep:worker-macros", "dep:wasm-bindgen"]
|
||||||
cf-worker-paid = ["cf-worker", "resvg/raster-images", "resvg/text", "image/ico", "panic-console-error"]
|
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"]
|
panic-console-error = ["dep:console_error_panic_hook"]
|
||||||
apparmor = ["dep:siphasher", "dep:libc"]
|
metrics = ["prometheus"]
|
||||||
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"]
|
|
||||||
prometheus = ["dep: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]
|
[dependencies]
|
||||||
worker = { version="0.4.2", features=['http', 'axum'], optional = true }
|
worker = { version="0.4.2", features=['http', 'axum'], optional = true }
|
||||||
worker-macros = { version="0.4.2", features=['http'], optional = true }
|
worker-macros = { version="0.4.2", features=['http'], optional = true }
|
||||||
|
|
Loading…
Add table
Reference in a new issue