From 96ff359d11605a83b965a6c92121b2ba1d483a9b Mon Sep 17 00:00:00 2001 From: alemi Date: Sat, 7 Dec 2024 01:27:26 +0100 Subject: [PATCH] feat(apb): re-export reqwest and bump version --- Cargo.lock | 21 ++++++++++++++++++++- apb/Cargo.toml | 2 +- apb/src/lib.rs | 3 +++ 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d31e0fe..9e7279a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -140,7 +140,7 @@ checksum = "d301b3b94cb4b2f23d7917810addbbaff90738e0ca2be692bd027e70d7e0330c" [[package]] name = "apb" -version = "0.2.2" +version = "0.3.0" dependencies = [ "chrono", "paste", @@ -271,6 +271,7 @@ dependencies = [ "matchit", "memchr", "mime", + "multer", "percent-encoding", "pin-project-lite", "rustversion", @@ -2324,6 +2325,24 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "multer" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a15d522be0a9c3e46fd2632e272d178f56387bdb5c9fbb3a36c649062e9b5219" +dependencies = [ + "bytes", + "encoding_rs", + "futures-util", + "http 1.1.0", + "httparse", + "log", + "memchr", + "mime", + "spin", + "version_check", +] + [[package]] name = "native-tls" version = "0.2.12" diff --git a/apb/Cargo.toml b/apb/Cargo.toml index 4f00a5c..e8216be 100644 --- a/apb/Cargo.toml +++ b/apb/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "apb" -version = "0.2.2" +version = "0.3.0" edition = "2021" authors = [ "alemi " ] description = "Traits and types to handle ActivityPub objects" diff --git a/apb/src/lib.rs b/apb/src/lib.rs index 5346b16..03b239a 100644 --- a/apb/src/lib.rs +++ b/apb/src/lib.rs @@ -146,3 +146,6 @@ pub use types::{ pub fn new() -> serde_json::Value { serde_json::Value::Object(serde_json::Map::default()) } + +#[cfg(feature = "fetch")] +pub use reqwest;