Skip to content

Commit e03fd5c

Browse files
committed
Merge branch 'update-cargo-and-dependencies'
2 parents 3bb5017 + a584881 commit e03fd5c

16 files changed

+329
-304
lines changed

Cargo.lock

Lines changed: 285 additions & 252 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cratesfyi"
3-
version = "0.3.2"
3+
version = "0.3.3"
44
authors = ["Onur Aslan <[email protected]>"]
55
readme = "README.md"
66
license = "MIT"
@@ -15,7 +15,7 @@ clap = "2"
1515
crates-index-diff = "3"
1616
git2 = "0.6"
1717
time = "0.1"
18-
reqwest = "0.4"
18+
reqwest = "0.5"
1919
semver = "0.6"
2020
slug = "=0.1.1"
2121
env_logger = "0.4"
@@ -25,8 +25,8 @@ r2d2_postgres = "0.12"
2525
url = "1.4"
2626
libc = "0.2"
2727
badge = { version = "0", path = "src/web/badge" }
28-
error-chain = "0.5"
29-
comrak = { version = "0.1.3", default-features = false }
28+
error-chain = "0.10"
29+
comrak = { version = "0.1", default-features = false }
3030

3131
# iron dependencies
3232
iron = "0.5"
@@ -37,7 +37,7 @@ staticfile = { version = "0.4", features = [ "cache" ] }
3737

3838
[dependencies.cargo]
3939
git = "https://github.com/rust-lang/cargo.git"
40-
rev = "bb1472e02d2384052348ff5ff2357be0ded9442d"
40+
rev = "9fe7f07579d6d2672dd7e95c70adaea65d8e9a2e"
4141

4242
[dependencies.postgres]
4343
version = "0.14"

src/db/add_package.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ use reqwest::header::{Accept, qitem};
1616
use semver;
1717
use postgres::Connection;
1818
use time;
19-
20-
use errors::*;
21-
19+
use error::Result;
2220

2321

2422
/// Adds a package into database.

src/db/file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use postgres::Connection;
1010
use rustc_serialize::json::{Json, ToJson};
1111
use std::fs::File;
1212
use std::io::Read;
13-
use errors::*;
13+
use error::Result;
1414

1515

1616

src/docbuilder/chroot_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::process::{Command, Output};
88
use std::path::PathBuf;
99
use postgres::Connection;
1010
use rustc_serialize::json::Json;
11-
use errors::*;
11+
use error::Result;
1212
use regex::Regex;
1313

1414

src/docbuilder/crates.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::io::BufReader;
44
use std::fs;
55
use std::path::PathBuf;
66
use rustc_serialize::json::Json;
7-
use errors::*;
7+
use error::Result;
88

99

1010
fn crates_from_file<F>(path: &PathBuf, func: &mut F) -> Result<()>

src/docbuilder/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::io::BufReader;
1313
use std::path::PathBuf;
1414
use std::collections::BTreeSet;
1515
use DocBuilderOptions;
16-
use errors::*;
16+
use error::Result;
1717

1818

1919
/// chroot based documentation builder

src/docbuilder/options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use std::{env, fmt};
44
use std::path::PathBuf;
5-
use errors::*;
5+
use error::Result;
66

77

88
#[derive(Clone)]

src/docbuilder/queue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use super::DocBuilder;
55
use db::connect_db;
6-
use errors::*;
6+
use error::Result;
77
use crates_index_diff::{ChangeKind, Index};
88

99

src/error.rs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//! Errors used in cratesfyi
2+
3+
use std::io;
4+
use rustc_serialize::json;
5+
use postgres;
6+
use cargo;
7+
use reqwest;
8+
use magic::MagicError;
9+
use git2;
10+
11+
12+
error_chain! {
13+
foreign_links {
14+
IoError(io::Error);
15+
JsonBuilderError(json::BuilderError);
16+
PostgresConnectError(postgres::error::ConnectError);
17+
PostgresError(postgres::error::Error);
18+
ReqwestError(reqwest::Error);
19+
Git2Error(git2::Error);
20+
MagicError(MagicError);
21+
CargoError(Box<cargo::CargoError>);
22+
}
23+
}

0 commit comments

Comments
 (0)