Fixed build
This commit is contained in:
parent
5bb5ed9fdb
commit
6d12867150
4 changed files with 364 additions and 408 deletions
756
Cargo.lock
generated
756
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -7,10 +7,10 @@ edition = "2018"
|
|||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
reqwest = { version = "0.10", features = ["blocking"]}
|
||||
reqwest = { version = "0.11", features = ["blocking"]}
|
||||
scraper = "0.12.0"
|
||||
arraygen = "0.1.11"
|
||||
arraygen = "0.3.0"
|
||||
url = "2.1.1"
|
||||
anyhow = "1.0"
|
||||
clap = "2.33.1"
|
||||
#thiserror = "1.0"
|
||||
#thiserror = "1.0"
|
||||
|
|
3
TODO.md
3
TODO.md
|
@ -8,7 +8,8 @@
|
|||
* [ ] Ajout des pays avec [celes](https://crates.io/crates/celes) : recherche uniquement sur les parser du pays et parseur multi pays (amazon par exemple)
|
||||
* [ ] Lecture des URLs depuis un fichier avec [toml](https://crates.io/crates/toml)
|
||||
* [ ] Parallélisation des requêtes avce [rayon](rayon) ou reqwest asynchrone
|
||||
* [ ] Écriture dans un fichier ODS avec [calamine](https://crates.io/crates/calamine)
|
||||
* [ ] Stockage des données via [rusqlite](https://crates.io/crates/rusqlite))
|
||||
* [ ] Écriture dans un fichier ODS avec [spreadsheet-ods](https://crates.io/crates/spreadsheet-ods)
|
||||
* [ ] Notification si baisse de prix avec [notify-rust](https://crates.io/crates/notify-rust)
|
||||
* [ ] Mail si baisse de prix avec [lettre](https://crates.io/crates/lettre)
|
||||
* [ ] Lancement de la recherche régulière avec [Clokwerk](https://crates.io/crates/clokwerk)
|
||||
|
|
|
@ -37,15 +37,12 @@ pub trait SearchParser: PriceParser {
|
|||
macro_rules! gen_list {
|
||||
( $([$module:ident::$name:ident : $($array:ident),*]),* ) => {
|
||||
#[derive(Arraygen, Debug)]
|
||||
#[gen_array(pub fn get_all: & dyn Parser)]
|
||||
#[gen_array(pub fn get_price: & dyn PriceParser)]
|
||||
#[gen_array(pub fn get_search: & dyn SearchParser)]
|
||||
#[gen_array(pub fn get_all: & dyn Parser)]
|
||||
pub struct List {
|
||||
$(
|
||||
$(
|
||||
#[in_array($array)]
|
||||
)*
|
||||
#[in_array(get_all)]
|
||||
#[in_array(get_all, $($array),* )]
|
||||
$module: $module::$name
|
||||
),*
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue