updated dependencies

This commit is contained in:
veeso
2022-06-09 15:11:55 +02:00
parent 80dea3f71a
commit bb95c9a4d0
6 changed files with 348 additions and 369 deletions

View File

@@ -53,7 +53,18 @@ Released on FIXME:
- Press `<CTRL+T>` to show all the currently synchronized files
- **Enhancements**:
- Improved s3 auth form scrolling
- **Bugfix**:
- Fixed SSH key list showing `{hostname} at {username}` instead of `{username} at {hostname}`
- Dependencies:
- Updated `edit` to `0.1.4`
- Updated `log` to `0.4.17`
- Updated `magic-crypt` to `3.1.10`
- Updated `open` to `2.1.3`
- Updated `regex` to `1.5.6`
- Updated `rpassword` to `6.0.1`
- Updated `self_update` to `0.30.0`
- Updated `simplelog` to `0.12.0`
- Updated `toml` to `0.5.9`
- Updated `tui-realm` to `1.6.0`
## 0.8.2

676
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -37,28 +37,28 @@ bytesize = "1.1.0"
chrono = "0.4.19"
content_inspector = "0.2.4"
dirs = "4.0.0"
edit = "0.1.3"
edit = "0.1.4"
hostname = "0.3.1"
keyring = { version = "1.1.2", optional = true }
lazy_static = "1.4.0"
log = "0.4.14"
magic-crypt = "3.1.9"
log = "0.4.17"
magic-crypt = "3.1.10"
notify = "4.0.17"
notify-rust = { version = "4.5.6", default-features = false, features = [ "d" ] }
open = "2.0.3"
open = "2.1.3"
rand = "0.8.5"
regex = "1.5.5"
regex = "1.5.6"
remotefs = "^0.2.0"
remotefs-aws-s3 = "^0.2.0"
remotefs-ftp = { version = "^0.1.0", features = [ "secure" ] }
remotefs-ssh = "^0.1.0"
rpassword = "5.0.1"
self_update = { version = "0.28.0", features = [ "archive-tar", "archive-zip", "compression-flate2", "compression-zip-deflate" ] }
rpassword = "6.0.1"
self_update = { version = "0.30.0", features = [ "archive-tar", "archive-zip", "compression-flate2", "compression-zip-deflate" ] }
serde = { version = "^1.0.0", features = [ "derive" ] }
simplelog = "0.11.1"
simplelog = "0.12.0"
tempfile = "3.2.0"
thiserror = "^1.0.0"
toml = "0.5.8"
toml = "0.5.0"
tui-realm-stdlib = "1.1.6"
tuirealm = "1.6.0"
unicode-width = "0.1.8"
@@ -66,8 +66,8 @@ whoami = "1.2.1"
wildmatch = "2.1.0"
[dev-dependencies]
pretty_assertions = "1.1.0"
serial_test = "^0.5.1"
pretty_assertions = "1.2.1"
serial_test = "^0.7.0"
[features]
default = [ "with-keyring" ]

View File

@@ -398,7 +398,7 @@ impl ConfigClient {
/// Returns: (host, username)
fn get_ssh_tokens(host_key: &str) -> (String, String) {
let tokens: Vec<&str> = host_key.split('@').collect();
assert_eq!(tokens.len(), 2);
assert!(tokens.len() >= 2);
(String::from(tokens[1]), String::from(tokens[0]))
}

View File

@@ -30,9 +30,7 @@ pub fn init(level: LogLevel) -> Result<(), String> {
let file: File = open_file(log_file_path.as_path(), true, true, false)
.map_err(|e| format!("Failed to open file {}: {}", log_file_path.display(), e))?;
// Prepare log config
let config = ConfigBuilder::new()
.set_time_format_str("%Y-%m-%dT%H:%M:%S%z")
.build();
let config = ConfigBuilder::new().set_time_format_rfc3339().build();
// Make logger
WriteLogger::init(level, config, file)
.map_err(|e| format!("Failed to initialize logger: {}", e))

View File

@@ -4,7 +4,7 @@
/// Read a secret from tty with customisable prompt
pub fn read_secret_from_tty(prompt: &str) -> std::io::Result<Option<String>> {
match rpassword::read_password_from_tty(Some(prompt)) {
match rpassword::prompt_password(prompt) {
Ok(p) if p.is_empty() => Ok(None),
Ok(p) => Ok(Some(p)),
Err(err) => Err(err),