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;