move src/server/environment.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:42 +02:00 committed by Thomas Lamprecht
parent 8bca935f08
commit d4d49f7325
4 changed files with 4 additions and 5 deletions

View File

@ -6,6 +6,9 @@ use proxmox::tools::fd::Fd;
pub mod daemon; pub mod daemon;
mod environment;
pub use environment::*;
mod state; mod state;
pub use state::*; pub use state::*;

View File

@ -46,9 +46,6 @@ pub fn our_ctrl_sock() -> String {
ctrl_sock_from_pid(*PID) ctrl_sock_from_pid(*PID)
} }
mod environment;
pub use environment::*;
mod upid; mod upid;
pub use upid::*; pub use upid::*;

View File

@ -34,9 +34,8 @@ use proxmox::tools::fs::CreateOptions;
use pbs_tools::compression::{DeflateEncoder, Level}; use pbs_tools::compression::{DeflateEncoder, Level};
use pbs_tools::stream::AsyncReaderStream; use pbs_tools::stream::AsyncReaderStream;
use pbs_api_types::{Authid, Userid}; use pbs_api_types::{Authid, Userid};
use proxmox_rest_server::{ApiConfig, FileLogger, FileLogOptions, AuthError}; use proxmox_rest_server::{ApiConfig, FileLogger, FileLogOptions, AuthError, RestEnvironment};
use super::environment::RestEnvironment;
use super::formatter::*; use super::formatter::*;
use crate::auth_helpers::*; use crate::auth_helpers::*;