added useless benchmark and improved deserialisation logic

This commit is contained in:
TotallyNot 2022-09-08 19:32:51 +02:00
parent 7f103a2435
commit 1eec2477c6
6 changed files with 197 additions and 62 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "torn-api"
version = "0.3.2"
version = "0.4.0"
edition = "2021"
authors = ["Pyrit [2111649]"]
license = "MIT"
@ -8,6 +8,10 @@ repository = "https://github.com/TotallyNot/torn-api.rs.git"
homepage = "https://github.com/TotallyNot/torn-api.rs.git"
description = "Torn API bindings for rust"
[[bench]]
name = "deserialisation_benchmark"
harness = false
[features]
default = [ "reqwest" ]
reqwest = [ "dep:reqwest" ]
@ -33,3 +37,4 @@ tokio = { version = "1.20.1", features = ["test-util", "rt", "macros"] }
tokio-test = "0.4.2"
reqwest = { version = "0.11", default-features = true }
awc = { version = "3", features = [ "rustls" ] }
criterion = "0.3"