More crate splitting.
This commit is contained in:
parent
bf9e544a2b
commit
77797ee027
@ -1,5 +1,6 @@
|
|||||||
[workspace]
|
[workspace]
|
||||||
members = [
|
members = [
|
||||||
"hammond-data",
|
"hammond-data",
|
||||||
|
"hammond-cli",
|
||||||
"other"
|
"other"
|
||||||
]
|
]
|
||||||
|
|||||||
@ -4,3 +4,13 @@ version = "0.1.0"
|
|||||||
authors = ["Jordan Petridis <jordanpetridis@protonmail.com>"]
|
authors = ["Jordan Petridis <jordanpetridis@protonmail.com>"]
|
||||||
|
|
||||||
[dependencies]
|
[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"
|
||||||
@ -4,19 +4,18 @@ extern crate loggerv;
|
|||||||
extern crate structopt;
|
extern crate structopt;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate structopt_derive;
|
extern crate structopt_derive;
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate error_chain;
|
extern crate error_chain;
|
||||||
|
|
||||||
extern crate hammond_data;
|
|
||||||
extern crate other;
|
extern crate other;
|
||||||
|
extern crate hammond_data;
|
||||||
|
|
||||||
use structopt::StructOpt;
|
use structopt::StructOpt;
|
||||||
use hammond_data::dbqueries;
|
use hammond_data::dbqueries;
|
||||||
use other::errors::*;
|
use other::errors::*;
|
||||||
use other::downloader;
|
use other::downloader;
|
||||||
use other::index_feed;
|
use other::index_feed;
|
||||||
|
|
||||||
// Should probably had made an Enum instead.
|
// Should probably had made an Enum instead.
|
||||||
#[derive(StructOpt, Debug)]
|
#[derive(StructOpt, Debug)]
|
||||||
#[structopt(name = "example", about = "An example of StructOpt usage.")]
|
#[structopt(name = "example", about = "An example of StructOpt usage.")]
|
||||||
@ -1,5 +1,4 @@
|
|||||||
extern crate assert_cli;
|
extern crate assert_cli;
|
||||||
extern crate other;
|
|
||||||
|
|
||||||
// Notes:
|
// Notes:
|
||||||
// The following tests will use your systems local hammond db.
|
// The following tests will use your systems local hammond db.
|
||||||
@ -29,3 +28,10 @@ fn test_add() {
|
|||||||
])
|
])
|
||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_latest() {
|
||||||
|
assert_cli::Assert::main_binary()
|
||||||
|
.with_args(&["--latest"])
|
||||||
|
.unwrap();
|
||||||
|
}
|
||||||
@ -7,18 +7,15 @@ authors = ["Jordan Petridis <jordanpetridis@protonmail.com>"]
|
|||||||
hammond-data = {path = "../hammond-data"}
|
hammond-data = {path = "../hammond-data"}
|
||||||
rayon = "0.8.2"
|
rayon = "0.8.2"
|
||||||
error-chain = "0.11.0"
|
error-chain = "0.11.0"
|
||||||
structopt = "0.1.0"
|
|
||||||
structopt-derive = "0.1.0"
|
|
||||||
log = "0.3.8"
|
log = "0.3.8"
|
||||||
loggerv = "0.3.0"
|
loggerv = "0.3.0"
|
||||||
rfc822_sanitizer = "0.3.0"
|
rfc822_sanitizer = "0.3.0"
|
||||||
reqwest = "0.7.3"
|
reqwest = "0.7.3"
|
||||||
hyper = "0.11.2"
|
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"] }
|
diesel_codegen = { version = "0.16.0", features = ["sqlite"] }
|
||||||
rss = { version = "1.1.0", features = ["from_url"]}
|
rss = { version = "1.1.0", features = ["from_url"]}
|
||||||
dotenv = "*"
|
dotenv = "*"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
tempdir = "0.3.5"
|
tempdir = "0.3.5"
|
||||||
assert_cli = "0.5"
|
|
||||||
|
|||||||
@ -16,4 +16,4 @@ error_chain! {
|
|||||||
HyperError(hyper::error::Error);
|
HyperError(hyper::error::Error);
|
||||||
HamDBError(hammond_data::errors::Error);
|
HamDBError(hammond_data::errors::Error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
#![recursion_limit = "1024"]
|
#![recursion_limit = "1024"]
|
||||||
|
|
||||||
extern crate diesel;
|
extern crate diesel;
|
||||||
|
#[macro_use]
|
||||||
|
extern crate error_chain;
|
||||||
extern crate hammond_data;
|
extern crate hammond_data;
|
||||||
extern crate hyper;
|
extern crate hyper;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
@ -9,10 +11,8 @@ extern crate rayon;
|
|||||||
extern crate reqwest;
|
extern crate reqwest;
|
||||||
extern crate rfc822_sanitizer;
|
extern crate rfc822_sanitizer;
|
||||||
extern crate rss;
|
extern crate rss;
|
||||||
#[macro_use]
|
|
||||||
extern crate error_chain;
|
|
||||||
|
|
||||||
pub mod feedparser;
|
pub mod feedparser;
|
||||||
pub mod downloader;
|
pub mod downloader;
|
||||||
pub mod index_feed;
|
pub mod index_feed;
|
||||||
pub mod errors;
|
pub mod errors;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user