From 3d0b675ddd10be562610fe0f02383024546fe81f Mon Sep 17 00:00:00 2001 From: trivernis Date: Thu, 29 Jul 2021 21:15:23 +0200 Subject: [PATCH] Expose error type and add rustls feature Signed-off-by: trivernis --- Cargo.toml | 7 +++++-- src/lib.rs | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e9e8f3e..f950e87 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "xkcd-search" -version = "0.1.1" +version = "0.1.2" authors = ["trivernis "] edition = "2018" readme = "README.md" @@ -19,4 +19,7 @@ serde = {version = "1.0.125", features = ["serde_derive"]} trigram = "0.4.4" [dev-dependencies] -tokio = {version = "1.5.0", features = ["macros", "rt-multi-thread"]} \ No newline at end of file +tokio = {version = "1.5.0", features = ["macros", "rt-multi-thread"]} + +[features] +rustls = ["reqwest/rustls"] \ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs index 66c2b5a..061b1ee 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,6 @@ mod archive; mod comic; -mod error; +pub mod error; mod search; #[cfg(test)]