upgrade dependencies

This commit is contained in:
phiresky 2022-10-26 17:21:39 +02:00
parent 9e933ca760
commit 94f06fba37
5 changed files with 820 additions and 402 deletions

1199
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -18,15 +18,15 @@ exclude = [
[dependencies]
tree_magic = { package = "tree_magic_mini", version = "3.0.0" }
regex = "1.3.9"
rkv = "0.17.0"
rkv = "0.17"
path-clean = "0.1.0"
bincode = "1.3.1"
serde = { version = "1.0.115", features = ["derive"] }
zstd = "0.9.0"
zstd = "0.11.2"
lazy_static = "1.4.0"
serde_json = "1.0.57"
crossbeam = "0.8.1"
clap = { version = "2.33.3", features = ["wrap_help"] }
clap = { version = "4.0.18", features = ["wrap_help"] }
log = "0.4.11"
env_logger = "0.9.0"
xz2 = "0.1.6"
@ -36,7 +36,7 @@ tar = "0.4.30"
chrono = "0.4.15"
encoding_rs = "0.8.24"
encoding_rs_io = "0.1.7"
rusqlite = { version = "0.25.3", features = ["vtab", "bundled"] }
rusqlite = { version = "0.28.0", features = ["vtab", "bundled"] }
size_format = "1.0.2"
structopt = "0.3.17"
paste = "1.0.0"
@ -51,7 +51,7 @@ memchr = "2.3.3"
crossbeam-channel = "0.5.1"
dyn-clone = "1.0.2"
dyn-clonable = "0.9.0"
zip = "0.5.8"
zip = "0.6.3"
owning_ref = "0.4.1"
[dev-dependencies]

View File

@ -2,7 +2,7 @@
use crate::adapted_iter::SingleAdaptedFileAsIter;
use super::*;
use anyhow::*;
use anyhow::Result;
use log::*;
use std::process::Command;
@ -56,7 +56,7 @@ impl Read for ProcWaitReader {
fn read(&mut self, _buf: &mut [u8]) -> std::io::Result<usize> {
let status = self.proce.wait()?;
if status.success() {
Ok(0)
std::io::Result::Ok(0)
} else {
Err(std::io::Error::new(
std::io::ErrorKind::Other,

View File

@ -1,5 +1,5 @@
use crate::{adapters::custom::CustomAdapterConfig, project_dirs};
use anyhow::*;
use anyhow::{Result, Context};
use derive_more::FromStr;
use log::*;
use schemars::JsonSchema;
@ -90,7 +90,7 @@ impl FromStr for CacheMaxBlobLen {
_ => usize::from_str(s).with_context(|| format!("Could not parse int")),
}?))
} else {
Err(format_err!("empty byte input"))
Err(anyhow::format_err!("empty byte input"))
}
}
}

View File

@ -1,7 +1,6 @@
use crate::preproc::rga_preproc;
use crate::{adapted_iter::AdaptedFilesIterBox, adapters::*};
use anyhow::*;
use std::io::Read;
pub struct RecursingConcattyReader<'a> {
@ -9,12 +8,12 @@ pub struct RecursingConcattyReader<'a> {
cur: Option<ReadBox<'a>>,
}
impl<'a> RecursingConcattyReader<'a> {
pub fn concat(inp: AdaptedFilesIterBox<'a>) -> Result<Box<dyn Read + 'a>> {
pub fn concat(inp: AdaptedFilesIterBox<'a>) -> anyhow::Result<Box<dyn Read + 'a>> {
let mut r = RecursingConcattyReader { inp, cur: None };
r.ascend()?;
Ok(Box::new(r))
}
pub fn ascend(&mut self) -> Result<()> {
pub fn ascend(&mut self) -> anyhow::Result<()> {
let inp = &mut self.inp;
// get next inner file from inp
// we only need to access the inp: ReadIter when the inner reader is done, so this should be safe