From 5f6dedebac13c8acda9c898d9768b28c56972d17 Mon Sep 17 00:00:00 2001 From: "NGnius (Graham)" Date: Fri, 21 Oct 2022 21:20:06 -0400 Subject: [PATCH] Make rc2 factory API Send-able --- Cargo.toml | 4 ++-- src/robocraft2/factory.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f3ad9b4..b92780e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libfj" -version = "0.7.0" +version = "0.7.1" authors = ["NGnius (Graham) "] edition = "2018" description = "An unofficial collection of APIs used in FreeJam games and mods" @@ -18,7 +18,7 @@ exclude = [ [dependencies] serde = { version = "^1", features = ["derive"]} serde_json = "^1" -reqwest = { version = "^0.11", features = ["json"], optional = true} +reqwest = { version = "^0.11", features = ["json", "rustls-tls"], optional = true, default-features=false} url = "^2.2" ureq = { version = "^2", features = ["json"], optional = true} async-trait = { version = "0.1", optional = true } diff --git a/src/robocraft2/factory.rs b/src/robocraft2/factory.rs index a835f8b..abf9b16 100644 --- a/src/robocraft2/factory.rs +++ b/src/robocraft2/factory.rs @@ -47,7 +47,7 @@ async fn handle_json_response serde::Deserialize<'a>>(response: Respo /// CRF API implementation pub struct FactoryAPI { client: Client, - token: Mutex>, + token: Mutex>, } impl FactoryAPI { @@ -60,7 +60,7 @@ impl FactoryAPI { }*/ /// Create a new instance using the provided token provider. - pub fn with_auth(token_provider: Box) -> FactoryAPI { + pub fn with_auth(token_provider: Box) -> FactoryAPI { FactoryAPI { client: Client::new(), token: Mutex::new(token_provider),