update to proxmox split and bump version to 0.8.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2021-10-08 12:20:20 +02:00
parent 8d0c0ed699
commit d65b2df750
5 changed files with 24 additions and 14 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "proxmox-openid"
version = "0.7.0"
version = "0.8.0"
authors = ["Dietmar Maurer <dietmar@proxmox.com>"]
edition = "2018"
license = "AGPL-3"
@ -16,11 +16,13 @@ path = "src/lib.rs"
[dependencies]
anyhow = "1.0"
curl = { version = "0.4.33" }
http = "0.2"
nix = "0.19.1"
openidconnect = { version = "2.0", default-features = false, features = ["curl"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
url = "2.1"
http = "0.2"
curl = { version = "0.4.33" }
proxmox = { version = "0.13.0", default-features = false }
nix = "0.19.1"
openidconnect = { version = "2.0", default-features = false, features = ["curl"] }
proxmox = "0.14.0"
proxmox-time = "1"

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
rust-proxmox-openid (0.8.0-1) unstable; urgency=medium
* update to proxmox crate split
-- Proxmox Support Team <support@proxmox.com> Fri, 08 Oct 2021 12:19:55 +0200
rust-proxmox-openid (0.7.0-1) unstable; urgency=medium
* bump proxmox to 0.13.0

14
debian/control vendored
View File

@ -11,7 +11,8 @@ Build-Depends: debhelper (>= 12),
librust-http-0.2+default-dev <!nocheck>,
librust-nix-0.19+default-dev (>= 0.19.1-~~) <!nocheck>,
librust-openidconnect-2+curl-dev <!nocheck>,
librust-proxmox-0.13-dev <!nocheck>,
librust-proxmox-0.14+default-dev <!nocheck>,
librust-proxmox-time-1+default-dev <!nocheck>,
librust-serde-1+default-dev <!nocheck>,
librust-serde-1+derive-dev <!nocheck>,
librust-serde-json-1+default-dev <!nocheck>,
@ -32,7 +33,8 @@ Depends:
librust-http-0.2+default-dev,
librust-nix-0.19+default-dev (>= 0.19.1-~~),
librust-openidconnect-2+curl-dev,
librust-proxmox-0.13-dev,
librust-proxmox-0.14+default-dev,
librust-proxmox-time-1+default-dev,
librust-serde-1+default-dev,
librust-serde-1+derive-dev,
librust-serde-json-1+default-dev,
@ -41,10 +43,10 @@ Provides:
librust-proxmox-openid+default-dev (= ${binary:Version}),
librust-proxmox-openid-0-dev (= ${binary:Version}),
librust-proxmox-openid-0+default-dev (= ${binary:Version}),
librust-proxmox-openid-0.7-dev (= ${binary:Version}),
librust-proxmox-openid-0.7+default-dev (= ${binary:Version}),
librust-proxmox-openid-0.7.0-dev (= ${binary:Version}),
librust-proxmox-openid-0.7.0+default-dev (= ${binary:Version})
librust-proxmox-openid-0.8-dev (= ${binary:Version}),
librust-proxmox-openid-0.8+default-dev (= ${binary:Version}),
librust-proxmox-openid-0.8.0-dev (= ${binary:Version}),
librust-proxmox-openid-0.8.0+default-dev (= ${binary:Version})
Description: Rust crate "proxmox-openid" - Rust source code
This package contains the source for the Rust proxmox-openid crate, packaged by
debcargo for use with cargo and dh-cargo.

View File

@ -4,7 +4,6 @@ use anyhow::{bail, Error};
use serde_json::{json, Value};
use proxmox::tools::{
time::epoch_i64,
fs::{
replace_file,
open_file_locked,
@ -12,6 +11,7 @@ use proxmox::tools::{
CreateOptions,
},
};
use proxmox_time::epoch_i64;
use super::{PublicAuthState, PrivateAuthState};

View File

@ -71,7 +71,7 @@ impl PrivateAuthState {
csrf_token,
nonce,
pkce_verifier,
ctime: proxmox::tools::time::epoch_i64(),
ctime: proxmox_time::epoch_i64(),
}
}