From 1e8094b25a5e0b7b1cc5dc6b0aaa2447d53a1a18 Mon Sep 17 00:00:00 2001 From: Elaina <48662592+oestradiol@users.noreply.github.com> Date: Fri, 20 Sep 2024 00:24:29 -0300 Subject: [PATCH 1/2] fix: Enabling gzip for request body decompression (#236) --- Cargo.lock | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++- Cargo.toml | 2 +- 2 files changed, 51 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ea0fa279..6d1910cb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -17,6 +17,12 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" +[[package]] +name = "adler2" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" + [[package]] name = "aho-corasick" version = "1.1.3" @@ -117,6 +123,19 @@ dependencies = [ "futures-core", ] +[[package]] +name = "async-compression" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fec134f64e2bc57411226dfc4e52dec859ddfc7e711fc5e07b612584f000e4aa" +dependencies = [ + "flate2", + "futures-core", + "memchr", + "pin-project-lite", + "tokio", +] + [[package]] name = "async-trait" version = "0.1.81" @@ -213,7 +232,7 @@ dependencies = [ "cc", "cfg-if", "libc", - "miniz_oxide", + "miniz_oxide 0.7.4", "object", "rustc-demangle", ] @@ -481,6 +500,15 @@ dependencies = [ "libc", ] +[[package]] +name = "crc32fast" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3" +dependencies = [ + "cfg-if", +] + [[package]] name = "crossbeam-utils" version = "0.8.20" @@ -698,6 +726,16 @@ dependencies = [ "subtle", ] +[[package]] +name = "flate2" +version = "1.0.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "324a1be68054ef05ad64b861cc9eaf1d623d2d8cb25b4bf2cb9cdd902b4bf253" +dependencies = [ + "crc32fast", + "miniz_oxide 0.8.0", +] + [[package]] name = "fnv" version = "1.0.7" @@ -1284,6 +1322,15 @@ dependencies = [ "adler", ] +[[package]] +name = "miniz_oxide" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2d80299ef12ff69b16a84bb182e3b9df68b5a91574d3d4fa6e41b65deec4df1" +dependencies = [ + "adler2", +] + [[package]] name = "mio" version = "0.8.11" @@ -1728,6 +1775,7 @@ version = "0.12.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c7d6d2a27d57148378eb5e111173f4276ad26340ecc5c49a4a2152167a2d6a37" dependencies = [ + "async-compression", "base64", "bytes", "futures-core", @@ -1758,6 +1806,7 @@ dependencies = [ "tokio", "tokio-native-tls", "tokio-rustls", + "tokio-util", "tower-service", "url", "wasm-bindgen", diff --git a/Cargo.toml b/Cargo.toml index ffacaf5e..76cd1b40 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -60,7 +60,7 @@ tokio = { version = "1.37", default-features = false } # HTTP client integrations isahc = "1.7.2" -reqwest = { version = "0.12", default-features = false } +reqwest = { version = "0.12", default-features = false, features = ["gzip"] } # Errors anyhow = "1.0.86" From 3ce873b214e641e8da8b9199e332d1e1f44f93b4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 20 Sep 2024 03:25:20 +0000 Subject: [PATCH 2/2] chore: release --- Cargo.lock | 12 ++++++------ Cargo.toml | 8 ++++---- atrium-api/CHANGELOG.md | 4 ++++ atrium-api/Cargo.toml | 2 +- atrium-crypto/CHANGELOG.md | 12 ++++++++++++ atrium-crypto/Cargo.toml | 2 +- atrium-xrpc-client/CHANGELOG.md | 4 ++++ atrium-xrpc-client/Cargo.toml | 2 +- atrium-xrpc/CHANGELOG.md | 4 ++++ atrium-xrpc/Cargo.toml | 2 +- bsky-cli/CHANGELOG.md | 4 ++++ bsky-cli/Cargo.toml | 2 +- bsky-sdk/CHANGELOG.md | 5 +++++ bsky-sdk/Cargo.toml | 2 +- 14 files changed, 49 insertions(+), 16 deletions(-) create mode 100644 atrium-crypto/CHANGELOG.md diff --git a/Cargo.lock b/Cargo.lock index 6d1910cb..2ddca2d3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -149,7 +149,7 @@ dependencies = [ [[package]] name = "atrium-api" -version = "0.24.4" +version = "0.24.5" dependencies = [ "async-trait", "atrium-xrpc", @@ -172,7 +172,7 @@ dependencies = [ [[package]] name = "atrium-crypto" -version = "0.1.0" +version = "0.1.1" dependencies = [ "ecdsa", "hex", @@ -187,7 +187,7 @@ dependencies = [ [[package]] name = "atrium-xrpc" -version = "0.11.3" +version = "0.11.4" dependencies = [ "async-trait", "bumpalo", @@ -202,7 +202,7 @@ dependencies = [ [[package]] name = "atrium-xrpc-client" -version = "0.5.6" +version = "0.5.7" dependencies = [ "async-trait", "atrium-xrpc", @@ -284,7 +284,7 @@ dependencies = [ [[package]] name = "bsky-cli" -version = "0.1.22" +version = "0.1.23" dependencies = [ "anyhow", "async-trait", @@ -299,7 +299,7 @@ dependencies = [ [[package]] name = "bsky-sdk" -version = "0.1.9" +version = "0.1.10" dependencies = [ "anyhow", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index 76cd1b40..b6b8cc75 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,10 +23,10 @@ keywords = ["atproto", "bluesky"] [workspace.dependencies] # Intra-workspace dependencies -atrium-api = { version = "0.24.4", path = "atrium-api" } -atrium-xrpc = { version = "0.11.3", path = "atrium-xrpc" } -atrium-xrpc-client = { version = "0.5.6", path = "atrium-xrpc-client" } -bsky-sdk = { version = "0.1.9", path = "bsky-sdk" } +atrium-api = { version = "0.24.5", path = "atrium-api" } +atrium-xrpc = { version = "0.11.4", path = "atrium-xrpc" } +atrium-xrpc-client = { version = "0.5.7", path = "atrium-xrpc-client" } +bsky-sdk = { version = "0.1.10", path = "bsky-sdk" } # async in traits # Can be removed once MSRV is at least 1.75.0. diff --git a/atrium-api/CHANGELOG.md b/atrium-api/CHANGELOG.md index f0d7deb9..30131706 100644 --- a/atrium-api/CHANGELOG.md +++ b/atrium-api/CHANGELOG.md @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [0.24.5](https://github.com/sugyan/atrium/compare/atrium-api-v0.24.4...atrium-api-v0.24.5) - 2024-09-20 + +### Other +- Proposed fix: configuring and formatting project. ([#229](https://github.com/sugyan/atrium/pull/229)) by @Elaina ## [0.24.4](https://github.com/sugyan/atrium/compare/atrium-api-v0.24.3...atrium-api-v0.24.4) - 2024-09-14 diff --git a/atrium-api/Cargo.toml b/atrium-api/Cargo.toml index a4758f34..36f8ba43 100644 --- a/atrium-api/Cargo.toml +++ b/atrium-api/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "atrium-api" -version = "0.24.4" +version = "0.24.5" authors = ["sugyan "] edition.workspace = true rust-version.workspace = true diff --git a/atrium-crypto/CHANGELOG.md b/atrium-crypto/CHANGELOG.md new file mode 100644 index 00000000..31ae8ca4 --- /dev/null +++ b/atrium-crypto/CHANGELOG.md @@ -0,0 +1,12 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] +## [0.1.1](https://github.com/sugyan/atrium/compare/atrium-crypto-v0.1.0...atrium-crypto-v0.1.1) - 2024-09-20 + +### Other +- Proposed fix: configuring and formatting project. ([#229](https://github.com/sugyan/atrium/pull/229)) by @Elaina diff --git a/atrium-crypto/Cargo.toml b/atrium-crypto/Cargo.toml index 99ac73ff..61bb105e 100644 --- a/atrium-crypto/Cargo.toml +++ b/atrium-crypto/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "atrium-crypto" -version = "0.1.0" +version = "0.1.1" authors = ["sugyan "] edition.workspace = true rust-version.workspace = true diff --git a/atrium-xrpc-client/CHANGELOG.md b/atrium-xrpc-client/CHANGELOG.md index e401cfb8..3d8ba739 100644 --- a/atrium-xrpc-client/CHANGELOG.md +++ b/atrium-xrpc-client/CHANGELOG.md @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [0.5.7](https://github.com/sugyan/atrium/compare/atrium-xrpc-client-v0.5.6...atrium-xrpc-client-v0.5.7) - 2024-09-20 + +### Other +- Proposed fix: configuring and formatting project. ([#229](https://github.com/sugyan/atrium/pull/229)) by @Elaina ## [0.5.6](https://github.com/sugyan/atrium/compare/atrium-xrpc-client-v0.5.5...atrium-xrpc-client-v0.5.6) - 2024-08-13 diff --git a/atrium-xrpc-client/Cargo.toml b/atrium-xrpc-client/Cargo.toml index 94655010..46752081 100644 --- a/atrium-xrpc-client/Cargo.toml +++ b/atrium-xrpc-client/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "atrium-xrpc-client" -version = "0.5.6" +version = "0.5.7" authors = ["sugyan "] edition.workspace = true rust-version.workspace = true diff --git a/atrium-xrpc/CHANGELOG.md b/atrium-xrpc/CHANGELOG.md index 3358d84d..947f1ac8 100644 --- a/atrium-xrpc/CHANGELOG.md +++ b/atrium-xrpc/CHANGELOG.md @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [0.11.4](https://github.com/sugyan/atrium/compare/atrium-xrpc-v0.11.3...atrium-xrpc-v0.11.4) - 2024-09-20 + +### Other +- Proposed fix: configuring and formatting project. ([#229](https://github.com/sugyan/atrium/pull/229)) by @Elaina ## [0.11.3](https://github.com/sugyan/atrium/compare/atrium-xrpc-v0.11.2...atrium-xrpc-v0.11.3) - 2024-08-13 diff --git a/atrium-xrpc/Cargo.toml b/atrium-xrpc/Cargo.toml index 2ecd0240..aab9054a 100644 --- a/atrium-xrpc/Cargo.toml +++ b/atrium-xrpc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "atrium-xrpc" -version = "0.11.3" +version = "0.11.4" authors = ["sugyan "] edition.workspace = true rust-version.workspace = true diff --git a/bsky-cli/CHANGELOG.md b/bsky-cli/CHANGELOG.md index fe23c796..9e396e66 100644 --- a/bsky-cli/CHANGELOG.md +++ b/bsky-cli/CHANGELOG.md @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [0.1.23](https://github.com/sugyan/atrium/compare/bsky-cli-v0.1.22...bsky-cli-v0.1.23) - 2024-09-20 + +### Other +- Proposed fix: configuring and formatting project. ([#229](https://github.com/sugyan/atrium/pull/229)) by @Elaina ## [0.1.22](https://github.com/sugyan/atrium/compare/bsky-cli-v0.1.21...bsky-cli-v0.1.22) - 2024-09-13 diff --git a/bsky-cli/Cargo.toml b/bsky-cli/Cargo.toml index 5cd65173..fd460170 100644 --- a/bsky-cli/Cargo.toml +++ b/bsky-cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bsky-cli" -version = "0.1.22" +version = "0.1.23" authors = ["sugyan "] edition.workspace = true rust-version.workspace = true diff --git a/bsky-sdk/CHANGELOG.md b/bsky-sdk/CHANGELOG.md index e1f4dc3a..105b4a4d 100644 --- a/bsky-sdk/CHANGELOG.md +++ b/bsky-sdk/CHANGELOG.md @@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [0.1.10](https://github.com/sugyan/atrium/compare/bsky-sdk-v0.1.9...bsky-sdk-v0.1.10) - 2024-09-20 + +### Other +- Bumping MSRV to 1.75 ([#233](https://github.com/sugyan/atrium/pull/233)) by @Elaina +- Proposed fix: configuring and formatting project. ([#229](https://github.com/sugyan/atrium/pull/229)) by @Elaina ## [0.1.9](https://github.com/sugyan/atrium/compare/bsky-sdk-v0.1.8...bsky-sdk-v0.1.9) - 2024-09-13 diff --git a/bsky-sdk/Cargo.toml b/bsky-sdk/Cargo.toml index 880294d7..9344011d 100644 --- a/bsky-sdk/Cargo.toml +++ b/bsky-sdk/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bsky-sdk" -version = "0.1.9" +version = "0.1.10" authors = ["sugyan "] edition.workspace = true rust-version.workspace = true