Skip to content

Commit

Permalink
Fixing dependencies to keep minimal MSRV
Browse files Browse the repository at this point in the history
  • Loading branch information
gsleap committed Nov 22, 2023
1 parent 796414d commit adf9ebb
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 121 deletions.
130 changes: 17 additions & 113 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ bytesize = "1.3.*"
lazy_static = "1.4.*"
log = "0.4.*"
prettytable-rs = "0.10.*"
reqwest = { version = "0.11.*", default-features = false, features = ["blocking", "cookies", "rustls-tls"] }
reqwest = { version = "0.11.9", default-features = false, features = ["blocking", "cookies", "rustls-tls"] }
serde = { version = "1.0.*", features = ["derive"] }
serde_json = "1.0.*"
sha-1 = "0.10.*"
Expand All @@ -46,10 +46,11 @@ backoff = "0.4.*"
# Dependencies only for the binary.
anyhow = { version = "1.0.*", optional = true }
clap = { version = "3.2.18", features = ["derive"], optional = true }
simplelog = { version = "0.12.*", optional = true }
reqwest-retry = { version = "0.2.*", optional = true }
simplelog = { version = "0.11.*", optional = true }
reqwest-retry = { version = "0.1.5", optional = true }
# transative dependency of reqwest-retry, newer versions use features which are unstable in cargo 1.63
task-local-extensions = { version = "=0.1.4", optional = true }
# transative dependency of reqwest-retry which has msrv 1.65
time = { version = "<0.3.22", optional = true }
time-core = { version = "0.1.2", optional = true }
time-core = { version = "0.1.1", optional = true }
deranged = {version = "<0.3.9"}
5 changes: 1 addition & 4 deletions src/bin/giant-squid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,7 @@ enum Args {
}

fn init_logger(level: u8) {
let config = ConfigBuilder::new()
.set_time_offset_to_local()
.expect("Unable to set log time offset to your timezone")
.build();
let config = ConfigBuilder::new().set_time_to_local(true).build();
match level {
0 => SimpleLogger::init(LevelFilter::Info, config).unwrap(),
1 => SimpleLogger::init(LevelFilter::Debug, config).unwrap(),
Expand Down

0 comments on commit adf9ebb

Please sign in to comment.