feat: run requests in order they appear
This commit is contained in:
parent
543f258724
commit
72c5b443db
3 changed files with 7 additions and 3 deletions
3
Cargo.lock
generated
3
Cargo.lock
generated
|
@ -507,6 +507,7 @@ checksum = "707907fe3c25f5424cce2cb7e1cbcafee6bdbe735ca90ef77c29e84591e5b9da"
|
|||
dependencies = [
|
||||
"equivalent",
|
||||
"hashbrown",
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
@ -753,6 +754,7 @@ version = "0.2.0"
|
|||
dependencies = [
|
||||
"clap",
|
||||
"http",
|
||||
"indexmap",
|
||||
"regex",
|
||||
"reqwest",
|
||||
"serde",
|
||||
|
@ -1250,6 +1252,7 @@ version = "0.8.19"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a1ed1f98e3fdc28d6d910e6737ae6ab1a93bf1985935a1193e68f93eeb68d24e"
|
||||
dependencies = [
|
||||
"indexmap",
|
||||
"serde",
|
||||
"serde_spanned",
|
||||
"toml_datetime",
|
||||
|
|
|
@ -8,11 +8,12 @@ edition = "2021"
|
|||
[dependencies]
|
||||
clap = { version = "4.5", features = ["derive"] }
|
||||
http = "1.1.0"
|
||||
indexmap = { version = "2.6", features = ["serde"] }
|
||||
regex = "1.11"
|
||||
reqwest = { version = "0.12", features = ["json"] }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
thiserror = "1.0.64"
|
||||
tokio = { version = "1.40", features = ["full"] }
|
||||
toml = "0.8"
|
||||
toml = { version = "0.8", features = ["preserve_order"] }
|
||||
toml_edit = { version = "0.22", features = ["serde"] } # only to pretty print tables ...
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use std::{collections::HashMap, str::FromStr};
|
||||
use std::str::FromStr;
|
||||
|
||||
use reqwest::{header::{HeaderMap, HeaderName, HeaderValue}};
|
||||
|
||||
|
@ -188,5 +188,5 @@ pub struct PostWomanClient {
|
|||
pub struct PostWomanConfig {
|
||||
pub client: PostWomanClient,
|
||||
// it's weird to name it singular but makes more sense in config
|
||||
pub route: HashMap<String, Endpoint>,
|
||||
pub route: indexmap::IndexMap<String, Endpoint>,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue