From 12c96ceaeaabe0aa7d0d2c70497886d9a5610f10 Mon Sep 17 00:00:00 2001 From: Vika Date: Tue, 19 Jul 2022 05:27:39 +0300 Subject: kittybox-indieauth: convert Error into axum::response::Response This requires the `axum` feature to be enabled, to prevent unwanted dependencies (e.g. in client apps or when using a different framework, since the library doesn't concern itself with I/O) --- kittybox-rs/indieauth/Cargo.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'kittybox-rs/indieauth/Cargo.toml') diff --git a/kittybox-rs/indieauth/Cargo.toml b/kittybox-rs/indieauth/Cargo.toml index 80511f9..a81fd51 100644 --- a/kittybox-rs/indieauth/Cargo.toml +++ b/kittybox-rs/indieauth/Cargo.toml @@ -3,6 +3,10 @@ name = "kittybox-indieauth" version = "0.1.0" edition = "2021" +[features] +default = [] +axum = ["axum-core", "serde_json", "http"] + [dev-dependencies] serde_json = "^1.0.64" # A JSON serialization file format serde_urlencoded = "^0.7.0" # `x-www-form-urlencoded` meets Serde @@ -16,3 +20,12 @@ features = ["serde"] [dependencies.serde] # A generic serialization/deserialization framework version = "^1.0.125" features = ["derive"] +[dependencies.axum-core] +version = "^0.2.6" +optional = true +[dependencies.serde_json] +version = "^1.0.64" +optional = true +[dependencies.http] +version = "^0.2.7" +optional = true \ No newline at end of file -- cgit 1.4.1