A better Rust ATProto crate

changelog update, added prelude, version bumps

Orual ca7ac08f 1553db73

Changed files
+21 -5
crates
jacquard
src
jacquard-api
jacquard-common
src
+2
CHANGELOG.md
··· 13 13 - updated oauth and credential session clients to use it 14 14 - implementations should generally override provided auth with own internal auth 15 15 16 + **Prelude providing common traits into scope** 17 + 16 18 ### Fixed 17 19 18 20 **`AgentSessionExt::upload_blob()` failed to authenticate** (`jacquard`)
+3 -3
Cargo.lock
··· 1857 1857 "clap", 1858 1858 "getrandom 0.2.16", 1859 1859 "http", 1860 - "jacquard-api 0.5.3", 1860 + "jacquard-api 0.5.4", 1861 1861 "jacquard-common 0.5.4", 1862 1862 "jacquard-derive 0.5.4", 1863 1863 "jacquard-identity 0.5.3", ··· 1896 1896 1897 1897 [[package]] 1898 1898 name = "jacquard-api" 1899 - version = "0.5.3" 1899 + version = "0.5.4" 1900 1900 dependencies = [ 1901 1901 "bon", 1902 1902 "bytes", ··· 2070 2070 "bytes", 2071 2071 "hickory-resolver", 2072 2072 "http", 2073 - "jacquard-api 0.5.3", 2073 + "jacquard-api 0.5.4", 2074 2074 "jacquard-common 0.5.4", 2075 2075 "miette", 2076 2076 "percent-encoding",
+1 -1
crates/jacquard-api/Cargo.toml
··· 2 2 name = "jacquard-api" 3 3 description = "Generated AT Protocol API bindings for Jacquard" 4 4 edition.workspace = true 5 - version = "0.5.3" 5 + version = "0.5.4" 6 6 authors.workspace = true 7 7 repository.workspace = true 8 8 keywords.workspace = true
+1 -1
crates/jacquard-common/src/xrpc.rs
··· 276 276 <R as XrpcRequest>::Response: Send + Sync, 277 277 Self: Sync; 278 278 279 - /// Send an XRPC request and parse the response 279 + /// Send an XRPC request with custom options and parse the response 280 280 #[cfg(target_arch = "wasm32")] 281 281 fn send_with_opts<R>( 282 282 &self,
+14
crates/jacquard/src/lib.rs
··· 230 230 pub use jacquard_identity as identity; 231 231 232 232 pub use jacquard_oauth as oauth; 233 + 234 + /// Prelude with the extension traits you're likely to want and some other stuff 235 + pub mod prelude { 236 + pub use crate::client::AgentSession; 237 + pub use crate::client::AgentSessionExt; 238 + pub use crate::client::BasicClient; 239 + pub use crate::common::http_client::HttpClient; 240 + pub use crate::common::xrpc::XrpcClient; 241 + pub use crate::common::xrpc::XrpcExt; 242 + pub use crate::identity::PublicResolver; 243 + pub use crate::identity::resolver::IdentityResolver; 244 + pub use crate::oauth::dpop::DpopExt; 245 + pub use crate::oauth::resolver::OAuthResolver; 246 + }