Skip to content

Commit 700cfc6

Browse files
committed
Create workspace
1 parent ff578aa commit 700cfc6

File tree

21 files changed

+150
-118
lines changed

21 files changed

+150
-118
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
1-
[package]
2-
name = "rezvrh"
3-
version = "0.1.0"
4-
edition = "2021"
5-
description = "Bakalari scraper"
1+
[workspace]
2+
resolver = "2"
63

7-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8-
9-
[dependencies]
10-
anyhow = "1.0.79"
11-
chrono = { version = "0.4", features = ["serde"] }
12-
clap = { version = "4.4.18", features = ["derive"] }
13-
derive_more = { version = "1.0.0-beta.6", features = ["full"] }
14-
inquire = "0.6.2"
15-
once_cell = "1.19.0"
16-
reqwest = "0.11"
17-
scraper = "0.18.1"
18-
serde = { version = "1.0", features = ["derive"] }
19-
serde_json = "1.0"
20-
thiserror = "1.0"
21-
tokio = { version = "1", features = ["full"] }
4+
members = [
5+
"rezvrh_scraper",
6+
"rezvrh_cli",
7+
]

rezvrh_cli/Cargo.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[package]
2+
name = "rezvrh_cli"
3+
version = "0.1.0"
4+
edition = "2021"
5+
description = "A CLI tool for rezvrh"
6+
7+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8+
9+
[dependencies]
10+
anyhow = "1.0.79"
11+
clap = { version = "4.4.18", features = ["derive"] }
12+
tokio = { version = "1", features = ["full"] }
13+
serde = { version = "1.0", features = ["derive"] }
14+
reqwest = "0.11"
15+
inquire = "0.6.2"
16+
serde_json = "1.0"
17+
rezvrh_scraper = { path = "../rezvrh_scraper" }

src/main.rs renamed to rezvrh_cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use clap::Parser;
22
use inquire::Select;
33
use reqwest::Url;
4-
use rezvrh::{Bakalari, Type, Which};
4+
use rezvrh_scraper::{Bakalari, Type, Which};
55
use serde::{Deserialize, Serialize};
66
use tokio::fs;
77

rezvrh_scraper/Cargo.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[package]
2+
name = "rezvrh_scraper"
3+
version = "0.1.0"
4+
edition = "2021"
5+
description = "Bakalari scraper"
6+
7+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8+
9+
[dependencies]
10+
chrono = { version = "0.4", features = ["serde"] }
11+
derive_more = { version = "1.0.0-beta.6", features = ["full"] }
12+
once_cell = "1.19.0"
13+
reqwest = "0.11"
14+
scraper = "0.18.1"
15+
serde = { version = "1.0", features = ["derive"] }
16+
serde_json = "1.0"
17+
thiserror = "1.0"
18+
tokio = { version = "1", features = ["full"] }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)