update to proxmox-sys 0.2 crate

- imported pbs-api-types/src/common_regex.rs from old proxmox crate
- use hex crate to generate/parse hex digest
- remove all reference to proxmox crate (use proxmox-sys and
  proxmox-serde instead)

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
Dietmar Maurer
2021-11-23 17:57:00 +01:00
parent bd00ff10e4
commit 25877d05ac
201 changed files with 627 additions and 1535 deletions

View File

@ -10,7 +10,7 @@ use std::collections::BTreeSet;
use crossbeam_channel::{bounded, TryRecvError};
use anyhow::{format_err, bail, Error};
use proxmox::tools::fs::{create_path, CreateOptions};
use proxmox_sys::fs::{create_path, CreateOptions};
use crate::rrd::{DST, CF, RRD, RRA};

View File

@ -10,7 +10,7 @@ use anyhow::{bail, format_err, Error};
use nix::fcntl::OFlag;
use crossbeam_channel::Receiver;
use proxmox::tools::fs::atomic_open_or_create_file;
use proxmox_sys::fs::atomic_open_or_create_file;
const RRD_JOURNAL_NAME: &str = "rrd.journal";

View File

@ -4,7 +4,7 @@ use std::collections::HashMap;
use anyhow::{bail, Error};
use proxmox::tools::fs::create_path;
use proxmox_sys::fs::create_path;
use crate::rrd::{CF, DST, RRD};

View File

@ -18,7 +18,7 @@ use std::os::unix::io::{AsRawFd, FromRawFd, IntoRawFd};
use anyhow::{bail, format_err, Error};
use serde::{Serialize, Deserialize};
use proxmox::tools::fs::{make_tmp_file, CreateOptions};
use proxmox_sys::fs::{make_tmp_file, CreateOptions};
use proxmox_schema::api;
use crate::rrd_v1;