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;
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<()> {