mirror of
https://git.proxmox.com/git/proxmox
synced 2025-07-10 11:58:59 +00:00
add websocket (default-)feature, make futures optional
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
e65cc32cb8
commit
4f05a5d9f7
@ -33,7 +33,7 @@ serde_json = "1.0"
|
|||||||
|
|
||||||
# api module:
|
# api module:
|
||||||
bytes = "0.5"
|
bytes = "0.5"
|
||||||
futures = "0.3"
|
futures = { version = "0.3", optional = true }
|
||||||
http = "0.2"
|
http = "0.2"
|
||||||
hyper = { version = "0.13", optional = true }
|
hyper = { version = "0.13", optional = true }
|
||||||
percent-encoding = "2.1"
|
percent-encoding = "2.1"
|
||||||
@ -49,7 +49,7 @@ proxmox-api-macro = { path = "../proxmox-api-macro", optional = true, version =
|
|||||||
proxmox-sortable-macro = { path = "../proxmox-sortable-macro", optional = true, version = "0.1.1" }
|
proxmox-sortable-macro = { path = "../proxmox-sortable-macro", optional = true, version = "0.1.1" }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = [ "router", "cli" ]
|
default = [ "router", "cli", "websocket" ]
|
||||||
sortable-macro = ["proxmox-sortable-macro"]
|
sortable-macro = ["proxmox-sortable-macro"]
|
||||||
|
|
||||||
# api:
|
# api:
|
||||||
@ -57,6 +57,7 @@ api-macro = ["proxmox-api-macro"]
|
|||||||
test-harness = []
|
test-harness = []
|
||||||
cli = [ "router", "hyper", "tokio" ]
|
cli = [ "router", "hyper", "tokio" ]
|
||||||
router = [ "hyper", "tokio" ]
|
router = [ "hyper", "tokio" ]
|
||||||
|
websocket = [ "tokio" ]
|
||||||
|
|
||||||
# tools:
|
# tools:
|
||||||
#valgrind = ["proxmox-tools/valgrind"]
|
#valgrind = ["proxmox-tools/valgrind"]
|
||||||
|
@ -20,7 +20,7 @@ pub mod time;
|
|||||||
pub mod uuid;
|
pub mod uuid;
|
||||||
pub mod vec;
|
pub mod vec;
|
||||||
|
|
||||||
#[cfg(features = "tokio")]
|
#[cfg(features = "websocket")]
|
||||||
pub mod websocket;
|
pub mod websocket;
|
||||||
|
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
|
Loading…
Reference in New Issue
Block a user