From 71f97c076324d9c48ad71f25eeb8d1a551bb1edc Mon Sep 17 00:00:00 2001 From: Denis Nutiu Date: Mon, 23 Dec 2024 13:56:10 +0200 Subject: [PATCH] use workspaces --- .idea/bluesky-bot.iml | 1 + Cargo.toml | 19 +++++-------------- scrapper/Cargo.toml | 14 ++++++++++++++ {src => scrapper/src}/main.rs | 0 {src => scrapper/src}/scrapper.rs | 0 {src => scrapper/src}/scrapper/gfourmedia.rs | 0 6 files changed, 20 insertions(+), 14 deletions(-) create mode 100644 scrapper/Cargo.toml rename {src => scrapper/src}/main.rs (100%) rename {src => scrapper/src}/scrapper.rs (100%) rename {src => scrapper/src}/scrapper/gfourmedia.rs (100%) diff --git a/.idea/bluesky-bot.iml b/.idea/bluesky-bot.iml index cf84ae4..077945f 100644 --- a/.idea/bluesky-bot.iml +++ b/.idea/bluesky-bot.iml @@ -2,6 +2,7 @@ + diff --git a/Cargo.toml b/Cargo.toml index 78b2718..a73ac4b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,14 +1,5 @@ -[package] -name = "bluesky-bot" -version = "0.1.0" -edition = "2021" - -[dependencies] -env_logger = "0.11.5" -tokio = { version = "1", features = ["full"] } -anyhow = "1.0" -reqwest = "0.12.9" -scraper = "0.22.0" -clokwerk = "0.4.0" -log = "0.4.22" -ctrlc = "3.4.5" +[workspace] +members = [ + "scrapper", +] +resolver = "2" \ No newline at end of file diff --git a/scrapper/Cargo.toml b/scrapper/Cargo.toml new file mode 100644 index 0000000..e6c0878 --- /dev/null +++ b/scrapper/Cargo.toml @@ -0,0 +1,14 @@ +[package] +name = "scrapper" +version = "0.1.0" +edition = "2021" + +[dependencies] +env_logger = "0.11.5" +tokio = { version = "1", features = ["full"] } +anyhow = "1.0" +reqwest = "0.12.9" +scraper = "0.22.0" +clokwerk = "0.4.0" +log = "0.4.22" +ctrlc = "3.4.5" diff --git a/src/main.rs b/scrapper/src/main.rs similarity index 100% rename from src/main.rs rename to scrapper/src/main.rs diff --git a/src/scrapper.rs b/scrapper/src/scrapper.rs similarity index 100% rename from src/scrapper.rs rename to scrapper/src/scrapper.rs diff --git a/src/scrapper/gfourmedia.rs b/scrapper/src/scrapper/gfourmedia.rs similarity index 100% rename from src/scrapper/gfourmedia.rs rename to scrapper/src/scrapper/gfourmedia.rs