Rust dep updates
This commit is contained in:
parent
fbd7b71d73
commit
f0df5092c3
9 changed files with 431 additions and 467 deletions
799
indexer/Cargo.lock
generated
799
indexer/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -4,17 +4,17 @@ version = "0.1.0"
|
|||
authors = ["Yorhel <git@yorhel.nl>"]
|
||||
|
||||
[dependencies]
|
||||
regex = "0.2.10"
|
||||
regex = "1.1.0"
|
||||
log = "0.4.1"
|
||||
env_logger = "0.5.6"
|
||||
env_logger = "0.6.0"
|
||||
lazy_static = "1.0.0"
|
||||
libc = "0.2.39"
|
||||
libarchive3-sys = "0.1.2"
|
||||
encoding = { git = "https://github.com/lifthrasiir/rust-encoding", features = ["no-optimized-legacy-encoding"] }
|
||||
ring = "0.12.1"
|
||||
ring = "0.14.6"
|
||||
postgres = "0.15.2"
|
||||
clap = "2.31.2"
|
||||
hyper = { version = "0.10.13", default-features = false } # TODO: Update?
|
||||
url = "1.7.0"
|
||||
chrono = "0.4.0"
|
||||
quick-xml = "0.12.1"
|
||||
quick-xml = "0.14.0"
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ impl<'a> ArchiveEntry<'a> {
|
|||
str::from_utf8(c_str.to_bytes()).ok()
|
||||
// Perform some simple opinionated normalization. Full normalization might be better,
|
||||
// but also slower and more complex. This solution covers the most important cases.
|
||||
.map(|s| s.trim_left_matches('/').trim_left_matches("./").trim_right_matches('/'))
|
||||
.map(|s| s.trim_start_matches('/').trim_start_matches("./").trim_end_matches('/'))
|
||||
}
|
||||
|
||||
pub fn size(&self) -> usize {
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ fn main() {
|
|||
unsafe { pkg::DRY_RUN = arg.is_present("dry") };
|
||||
|
||||
let verbose = arg.occurrences_of("v");
|
||||
env_logger::Builder::new()
|
||||
env_logger::Builder::from_default_env()
|
||||
.filter(Some("indexer"), match verbose {
|
||||
0 => log::LevelFilter::Warn,
|
||||
1 => log::LevelFilter::Info,
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ pub fn sync(pg: &postgres::GenericConnection, sys: i32, arch: &str, mirror: &str
|
|||
|
||||
|
||||
fn trimext(n: &str) -> &str {
|
||||
n.trim_right_matches(".tgz").trim_right_matches(".tbz")
|
||||
n.trim_end_matches(".tgz").trim_end_matches(".tbz")
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue