Rejiggle things a bit to make it possible to have multiple binaries here for publishing

This commit is contained in:
Aleksei Voronov 2023-09-21 15:01:43 +02:00
parent 901c4b6e97
commit 08dc55b2cd
2 changed files with 9 additions and 13 deletions

4
src/lib.rs Normal file
View File

@ -0,0 +1,4 @@
pub mod algos;
pub mod config;
pub mod processes;
pub mod services;

View File

@ -1,7 +1,4 @@
mod algos; extern crate nederlandskie;
mod config;
mod processes;
mod services;
use std::sync::Arc; use std::sync::Arc;
@ -10,15 +7,10 @@ use env_logger::Env;
use lingua::LanguageDetectorBuilder; use lingua::LanguageDetectorBuilder;
use log::info; use log::info;
use crate::algos::AlgosBuilder; use nederlandskie::algos::{AlgosBuilder, Nederlandskie};
use crate::algos::Nederlandskie; use nederlandskie::config::Config;
use crate::config::Config; use nederlandskie::processes::{FeedServer, PostIndexer, ProfileClassifier};
use crate::processes::FeedServer; use nederlandskie::services::{Bluesky, Database, AI};
use crate::processes::PostIndexer;
use crate::processes::ProfileClassifier;
use crate::services::Bluesky;
use crate::services::Database;
use crate::services::AI;
#[tokio::main] #[tokio::main]
async fn main() -> Result<()> { async fn main() -> Result<()> {