move src/tools/compression.rs to proxmox-rest-server crate

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Dietmar Maurer 2021-09-21 07:58:44 +02:00 committed by Thomas Lamprecht
parent 1b552c109d
commit 605fe2e7e7
4 changed files with 8 additions and 4 deletions

View File

@ -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;

View File

@ -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();

View File

@ -14,7 +14,6 @@ use proxmox_http::{
pub mod apt;
pub mod async_io;
pub mod compression;
pub mod config;
pub mod disks;