proxmox/proxmox-router/Cargo.toml
Wolfgang Bumiller 17bd32e90e router, rest-server: add StreamSync and StreamAsync API handlers
These are Iterators or Streams which continuously produce output. They
can either be formatted, in which they are serialized like the as
usually, or, if the client caccepts `application/json-seq` via an
`Accept` header, it will be streamed as a sequence directly.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-09-05 14:15:11 +02:00

48 lines
1.2 KiB
TOML

[package]
name = "proxmox-router"
version = "2.2.4"
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
description = "proxmox API Router and CLI utilities"
exclude.workspace = true
[[test]]
name = "docs"
path = "tests/docs.rs"
test = true
required-features = [ "cli" ]
[dependencies]
anyhow.workspace = true
env_logger = { workspace = true, optional = true }
futures.workspace = true
http = { workspace = true, optional = true }
hyper = { workspace = true, features = [ "full" ], optional = true }
nix.workspace = true
percent-encoding.workspace = true
serde = { workspace = true, features = [ "derive" ] }
serde_json.workspace = true
serde_plain.workspace = true
unicode-width ="0.1.8"
# cli:
rustyline = { version = "9", optional = true }
libc = { workspace = true, optional = true }
proxmox-http-error.workspace = true
proxmox-schema.workspace = true
proxmox-async.workspace = true
[dev-dependencies]
tokio.workspace = true
tokio-stream.workspace = true
[features]
default = [ "cli", "server" ]
cli = [ "dep:env_logger", "dep:libc", "dep:rustyline" ]
server = [ "dep:http", "dep:hyper" ]
test-harness = [ "proxmox-schema/test-harness" ]