mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-15 12:21:30 +00:00
sys: feature-gate logrotate (and zstd)
it's not needed everywhere we pull in proxmox-sys. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
a3efe0b3dc
commit
97fd3a0a14
@ -18,7 +18,7 @@ nix = "0.24.1"
|
||||
regex = "1.2"
|
||||
serde_json = "1.0"
|
||||
serde = { version = "1.0", features = [ "derive" ] }
|
||||
zstd = { version = "0.6", features = [ "bindgen" ] }
|
||||
zstd = { version = "0.6", features = [ "bindgen" ], optional = true}
|
||||
|
||||
# Macro crates:
|
||||
proxmox-sortable-macro = { path = "../proxmox-sortable-macro", optional = true, version = "0.1.2" }
|
||||
@ -31,3 +31,4 @@ proxmox-time = { path = "../proxmox-time", version = "1.0.0" }
|
||||
[features]
|
||||
default = []
|
||||
sortable-macro = ["proxmox-sortable-macro"]
|
||||
logrotate = ["zstd"]
|
@ -7,6 +7,7 @@ pub mod error;
|
||||
pub mod fd;
|
||||
pub mod fs;
|
||||
pub mod linux;
|
||||
#[cfg(feature = "logrotate")]
|
||||
pub mod logrotate;
|
||||
pub mod macros;
|
||||
pub mod mmap;
|
||||
|
Loading…
Reference in New Issue
Block a user