More crate splitting.

This commit is contained in:
Jordan Petridis 2017-10-05 00:22:05 +03:00
parent bf9e544a2b
commit 77797ee027
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6
7 changed files with 25 additions and 12 deletions

View File

@ -1,5 +1,6 @@
[workspace]
members = [
"hammond-data",
"hammond-cli",
"other"
]

View File

@ -4,3 +4,13 @@ version = "0.1.0"
authors = ["Jordan Petridis <jordanpetridis@protonmail.com>"]
[dependencies]
log = "0.3.8"
loggerv = "0.3.0"
structopt = "0.1.0"
structopt-derive = "0.1.0"
error-chain = "0.11.0"
hammond-data = {path = "../hammond-data"}
other = {path = "../other"}
[dev-dependencies]
assert_cli = "0.5"

View File

@ -4,12 +4,11 @@ extern crate loggerv;
extern crate structopt;
#[macro_use]
extern crate structopt_derive;
#[macro_use]
extern crate error_chain;
extern crate hammond_data;
extern crate other;
extern crate hammond_data;
use structopt::StructOpt;
use hammond_data::dbqueries;

View File

@ -1,5 +1,4 @@
extern crate assert_cli;
extern crate other;
// Notes:
// The following tests will use your systems local hammond db.
@ -29,3 +28,10 @@ fn test_add() {
])
.unwrap();
}
#[test]
fn test_latest() {
assert_cli::Assert::main_binary()
.with_args(&["--latest"])
.unwrap();
}

View File

@ -7,18 +7,15 @@ authors = ["Jordan Petridis <jordanpetridis@protonmail.com>"]
hammond-data = {path = "../hammond-data"}
rayon = "0.8.2"
error-chain = "0.11.0"
structopt = "0.1.0"
structopt-derive = "0.1.0"
log = "0.3.8"
loggerv = "0.3.0"
rfc822_sanitizer = "0.3.0"
reqwest = "0.7.3"
hyper = "0.11.2"
diesel = { version = "0.16.0", features = ["sqlite", "deprecated-time", "chrono"] }
diesel = { version = "0.16.0", features = ["sqlite"] }
diesel_codegen = { version = "0.16.0", features = ["sqlite"] }
rss = { version = "1.1.0", features = ["from_url"]}
dotenv = "*"
[dev-dependencies]
tempdir = "0.3.5"
assert_cli = "0.5"

View File

@ -1,6 +1,8 @@
#![recursion_limit = "1024"]
extern crate diesel;
#[macro_use]
extern crate error_chain;
extern crate hammond_data;
extern crate hyper;
#[macro_use]
@ -9,8 +11,6 @@ extern crate rayon;
extern crate reqwest;
extern crate rfc822_sanitizer;
extern crate rss;
#[macro_use]
extern crate error_chain;
pub mod feedparser;
pub mod downloader;