Skip to content

Commit fc756ce

Browse files
committed
api/cli: migrate to async rust
1 parent e32775f commit fc756ce

31 files changed

+778
-700
lines changed

Cargo.lock

Lines changed: 116 additions & 207 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/Cargo.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,25 @@ edition = "2021"
1111
[lib]
1212
name = "reinfer_client"
1313

14+
[features]
15+
default = ["native"]
16+
native = ["tokio"]
17+
1418
[dependencies]
1519
chrono = { version = "0.4.22", features = ["serde"] }
20+
futures = "0.3.25"
1621
log = "0.4.17"
1722
once_cell = "1.16.0"
1823
ordered-float = { version = "3.3.0", features = ["serde"] }
1924
regex = "1.6.0"
20-
reqwest = { version = "0.11.12", default-features = false, features = ["blocking", "gzip", "json", "multipart", "native-tls-vendored"] }
25+
reqwest = { version = "0.11.12", default-features = false, features = ["gzip", "json", "multipart", "native-tls-vendored"] }
2126
serde = { version = "1.0.147", features = ["derive"] }
2227
serde_json = "1.0.87"
2328
serde_with = "2.0.1"
2429
thiserror = "1.0.37"
30+
tokio = { version = "1.21.2", default-features = false, features = ["fs"], optional = true }
2531
url = "2.3.1"
2632

2733
[dev-dependencies]
2834
mockito = "0.31.0"
35+
tokio = { version = "1.21.2", default-features = false, features = ["rt", "macros"] }

0 commit comments

Comments
 (0)