Skip to content

Commit

Permalink
Lib bin initial (#141)
Browse files Browse the repository at this point in the history
* Renames main binary to new lib-bin tree

* Initialises base lib-bin structure
  • Loading branch information
pinkforest authored Jul 7, 2021
1 parent 7c05a18 commit 729c737
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 18 deletions.
9 changes: 9 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ include = [
[package.metadata]
msrv = "1.44.1"

[lib]
name = "suckit"
path = "src/lib.rs"

[[bin]]
name = "suckit"
path = "src/bin/suckit.rs"
doc = false

[dependencies]
structopt = "^0.3"
crossbeam = "^0.8"
Expand Down
10 changes: 10 additions & 0 deletions src/bin/suckit.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
use suckit::args::Args;
use suckit::scraper::Scraper;

fn main() {
let args = Args::collect();

let mut scraper = Scraper::new(args);

scraper.run();
}
8 changes: 8 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
pub mod args;
pub mod disk;
pub mod dom;
pub mod downloader;
pub mod logger;
pub mod response;
pub mod scraper;
pub mod url_helper;
18 changes: 0 additions & 18 deletions src/main.rs

This file was deleted.

0 comments on commit 729c737

Please sign in to comment.