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:
parent
0fdc15a3f8
commit
a092ef9c32
@ -19,6 +19,7 @@ serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
serde_cbor = "0.11.1"
|
||||
|
||||
proxmox = { version = "0.15.3" }
|
||||
#proxmox = { version = "0.15.3" }
|
||||
proxmox-time = "1"
|
||||
proxmox-schema = { version = "1", features = [ "api-macro" ] }
|
||||
proxmox-sys = "0.2"
|
@ -11,7 +11,7 @@ use proxmox_router::cli::{run_cli_command, complete_file_name, CliCommand, CliCo
|
||||
use proxmox_schema::{api, parse_property_string};
|
||||
use proxmox_schema::{ApiStringFormat, ApiType, IntegerSchema, Schema, StringSchema};
|
||||
|
||||
use proxmox::tools::fs::CreateOptions;
|
||||
use proxmox_sys::fs::CreateOptions;
|
||||
|
||||
use proxmox_rrd::rrd::{CF, DST, RRA, RRD};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
2
proxmox-rrd/src/cache/journal.rs
vendored
2
proxmox-rrd/src/cache/journal.rs
vendored
@ -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";
|
||||
|
||||
|
2
proxmox-rrd/src/cache/rrd_map.rs
vendored
2
proxmox-rrd/src/cache/rrd_map.rs
vendored
@ -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};
|
||||
|
||||
|
@ -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;
|
||||
|
@ -4,7 +4,7 @@ use std::process::Command;
|
||||
use anyhow::{bail, Error};
|
||||
|
||||
use proxmox_rrd::rrd::RRD;
|
||||
use proxmox::tools::fs::CreateOptions;
|
||||
use proxmox_sys::fs::CreateOptions;
|
||||
|
||||
fn compare_file(fn1: &str, fn2: &str) -> Result<(), Error> {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user