From 08dc55b2cd0b05bc24403af8572d98d6cc08a1d7 Mon Sep 17 00:00:00 2001 From: Aleksei Voronov <despawn@gmail.com> Date: Thu, 21 Sep 2023 15:01:43 +0200 Subject: [PATCH] Rejiggle things a bit to make it possible to have multiple binaries here for publishing --- src/lib.rs | 4 ++++ src/main.rs | 18 +++++------------- 2 files changed, 9 insertions(+), 13 deletions(-) create mode 100644 src/lib.rs diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..f554e0d --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,4 @@ +pub mod algos; +pub mod config; +pub mod processes; +pub mod services; diff --git a/src/main.rs b/src/main.rs index e332b41..72dc045 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,4 @@ -mod algos; -mod config; -mod processes; -mod services; +extern crate nederlandskie; use std::sync::Arc; @@ -10,15 +7,10 @@ use env_logger::Env; use lingua::LanguageDetectorBuilder; use log::info; -use crate::algos::AlgosBuilder; -use crate::algos::Nederlandskie; -use crate::config::Config; -use crate::processes::FeedServer; -use crate::processes::PostIndexer; -use crate::processes::ProfileClassifier; -use crate::services::Bluesky; -use crate::services::Database; -use crate::services::AI; +use nederlandskie::algos::{AlgosBuilder, Nederlandskie}; +use nederlandskie::config::Config; +use nederlandskie::processes::{FeedServer, PostIndexer, ProfileClassifier}; +use nederlandskie::services::{Bluesky, Database, AI}; #[tokio::main] async fn main() -> Result<()> {