deps: update dependencies

This commit is contained in:
liushuyu 2022-11-27 16:49:13 -07:00
parent 89be1c0d84
commit 3ea6aa9852
No known key found for this signature in database
GPG key ID: 23D1CE4534419437
3 changed files with 656 additions and 417 deletions

1061
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -43,9 +43,9 @@ chrono = "0.4"
clap = "2.33"
# used to open a link to the users default browser
webbrowser = "0.6"
webbrowser = "0.8"
# used in JWT based package authentication
jsonwebtoken = "7"
jsonwebtoken = "^8"
# used to decode the public key for verifying JWT tokens
base64 = "0.13"
@ -59,12 +59,12 @@ image = { version = "0.24", default-features = false, features = ["ico"] }
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3", features = ["psapi", "winbase", "winioctl", "winnt"] }
widestring = "0.5"
widestring = "^1"
webview2 = "0.1"
tempfile = "3"
[target.'cfg(not(windows))'.dependencies]
sysinfo = "0.23"
sysinfo = "0.26"
slug = "0.1"
[target.'cfg(windows)'.build-dependencies]

View file

@ -2,6 +2,8 @@
//!
//! Contains Config structures, as well as means of serialising them.
use std::collections::HashSet;
use toml;
use toml::de::Error as TomlError;
@ -66,7 +68,7 @@ pub struct PackageDescription {
/// Configuration for validating the JWT token
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct JWTValidation {
pub iss: Option<String>,
pub iss: Option<HashSet<String>>,
// This can technically be a Vec as well, but thats a pain to support atm
pub aud: Option<String>,
}