Add a naive single thread algorithm

This commit is contained in:
Rodolphe Bréard 2024-10-27 19:24:02 +01:00
parent 5d2dee258c
commit 546dc75d02
3 changed files with 11 additions and 0 deletions

3
src/algorithm.rs Normal file
View file

@ -0,0 +1,3 @@
mod single_thread;
pub use single_thread::single_thread;

View file

@ -0,0 +1,7 @@
use crate::Task;
pub fn single_thread(data: &[Task]) {
for task in data {
task.execute();
}
}

View file

@ -1,3 +1,4 @@
mod algorithm;
mod data;
use pbkdf2::pbkdf2_hmac;