diff --git a/src/tools/compression.rs b/proxmox-rest-server/src/compression.rs similarity index 100% rename from src/tools/compression.rs rename to proxmox-rest-server/src/compression.rs diff --git a/proxmox-rest-server/src/lib.rs b/proxmox-rest-server/src/lib.rs index bc8334ba..069d80b4 100644 --- a/proxmox-rest-server/src/lib.rs +++ b/proxmox-rest-server/src/lib.rs @@ -4,6 +4,9 @@ use anyhow::{bail, format_err, Error}; use proxmox::tools::fd::Fd; +mod compression; +pub use compression::*; + pub mod daemon; pub mod formatter; diff --git a/src/server/rest.rs b/src/server/rest.rs index 8beecb55..7e2e645c 100644 --- a/src/server/rest.rs +++ b/src/server/rest.rs @@ -34,13 +34,15 @@ use proxmox::tools::fs::CreateOptions; use pbs_tools::compression::{DeflateEncoder, Level}; use pbs_tools::stream::AsyncReaderStream; use pbs_api_types::{Authid, Userid}; -use proxmox_rest_server::{ApiConfig, FileLogger, FileLogOptions, AuthError, RestEnvironment}; +use proxmox_rest_server::{ + ApiConfig, FileLogger, FileLogOptions, AuthError, RestEnvironment, CompressionMethod, +}; use proxmox_rest_server::formatter::*; -use crate::auth_helpers::*; use pbs_config::CachedUserInfo; + +use crate::auth_helpers::*; use crate::tools; -use crate::tools::compression::CompressionMethod; extern "C" { fn tzset();