A better Rust ATProto crate
1# Changelog 2 3## [0.9.3] - 2025-11-17 (`jacquard`) 4 5### Fixed 6 7- SessionKey is now a proper tuple struct and not a type alias, which should help rustc not freak out when you do things like put MemoryCredentialSession in an Arc 8 9## [0.9.2] - 2025-11-17 10 11### Added 12 13**WASM compatibility improvements** (`jacquard-common`, `jacquard-identity`) 14- Vendored mini-moka implementation with WASM support for caching 15- regex-lite usage on WASM targets for reduced binary size 16- Schema resolver now works on WASM targets 17 18**Data query improvements** (`jacquard-common`) 19- Mutable path query access and setting for `Data` values 20 21### Changed 22 23**URL handling** (`jacquard-common`) 24- Rework of some internal URL handling for better compatibility 25- Includes a minor change to the return type of the endpoint() method of XrpcClient and equivalents. 26 27**OAuth improvements** (`jacquard-oauth`) 28- Fixed OAuth scope handling in loopback flow 29- OAuth metadata resolution improvements 30- Various OAuth flow enhancements and bug fixes 31 32**Identity resolution** (`jacquard-identity`) 33- Fixed non-DNS lexicon and did:web resolution using Cloudflare DoH 34- Reduced noisy logging in identity resolution 35 36**Lexicons** (`jacquard-api`) 37- Updated to latest AT Protocol lexicons 38 39### Fixed 40 41**Data deserialization** (`jacquard-common`) 42- Fixed CID deserialization edge cases for better spec compliance 43- More permissive JSON shape handling for better interoperability with varied implementations 44 45## [0.9.1] - 2025-11-04 (`jacquard-identity`, `jacquard-lexicon`) 46 47### Fixed 48 49- slingshot resolver no longer spuriously warns when cross-validating handles 50 51## [0.9.0] - 2025-11-03 52 53### Added 54 55**Runtime schema validation** (`jacquard-lexicon`) 56- `SchemaValidator` for validating `Data` values against lexicon schemas 57- CID-based validation caching for efficient repeated validation 58- `ValidationResult` with structural and constraint error separation 59- Comprehensive error types: `StructuralError` (type mismatches, missing fields, union errors) and `ConstraintError` (length, grapheme, numeric bounds) 60- `ValidationPath` for precise error location reporting 61- Ref cycle detection with configurable max depth 62- Support for validating partial/malformed data without full deserialization 63 64**Value query DSL** (`jacquard-common`) 65- Pattern-based querying of nested `Data` structures 66- `data.query(pattern)` with expressive syntax: 67 - `field.nested` - exact path navigation 68 - `[..]` - wildcard over collections (array elements or object values) 69 - `field..nested` - scoped recursion (find nested within field, expect one) 70 - `...field` - global recursion (find all occurrences anywhere) 71- `QueryResult` enum with `Single`, `Multiple`, and `None` variants 72- `QueryMatch` with path tracking for multiple results 73- Iterator support via `.values()`, `.first()`, `.single()`, `.multiple()` 74 75**Data value enhancements** (`jacquard-common`) 76- `get_at_path()` for simple path-based field access on `Data` and `RawData` 77- Path syntax: `embed.images[0].alt` for navigating nested structures 78- `type_discriminator()` helper methods for AT Protocol union discrimination 79- Returns `$type` field value for objects with type discriminators 80- Added on `Data`, `Object`, and `RawData` types 81- Collection helper methods: `get()`, `contains_key()`, `len()`, `is_empty()`, `iter()`, `keys()`, `values()` 82- Index operator support: `obj["key"]` and `arr[0]` 83 84**Lexicon resolution** (`jacquard-identity`) 85- `LexiconResolver` for fetching lexicon schemas from AT Protocol services 86- Resolves lexicons from PDS instances and lexicon hosts 87- `resolve_lexicon()` fetches and parses lexicon schemas 88- `resolve_lexicon_raw()` fetches raw schema JSON 89- New example: `resolve_lexicon.rs` 90 91**Identity resolver caching** (`jacquard-identity`) 92- Optional `cache` feature with configurable in-memory caching 93- `JacquardResolver::with_cache()` constructor for cached resolver 94- Separate TTLs for handle→DID, DID→doc, and lexicon resolution 95 96**XRPC client improvements** (`jacquard-common`, `jacquard`, `jacquard-oauth`) 97- `set_options()` and `set_endpoint()` methods on `XrpcClient` trait 98- Default no-op implementations for stateless clients 99- Enables runtime reconfiguration of stateful clients 100- Better support for custom endpoint and option overrides 101 102**Lexicon schema generation from Rust types** (`jacquard-derive`, `jacquard-lexicon`) 103- New `#[derive(LexiconSchema)]` macro for generating lexicon schemas from Rust structs 104- New `#[lexicon_union]` attribute macro for lexicon union types (tagged enums) 105- Automatic schema generation for custom lexicons without writing JSON manually 106- Field-level attributes: `ref` for explicit type references, `union` for union fields 107- Fragment support for multi-def lexicons via `fragment = "..."` attribute 108- Generates `LexiconDoc` at compile time for runtime validation 109- Enables type-safe custom lexicon development 110 111**Lexicon codegen improvements** (`jacquard-lexicon`, `jacquard-api`) 112- Vendored in an implementation of the typed builder pattern from `bon` to **substantially** improve compile times 113- Feature-gated heavy code generation features so `jacquard-api` and other consumers of the validation capabilities don't pay the `syn` tax as badly. 114- LexiconSchema trait generated implementations for runtime validation 115 116**Session store improvements** (`jacquard`) 117- Improved trait bounds for `SessionStore` implementations 118- Better ergonomics for credential session types 119- Memory-based credential session helpers 120 121**New crate: `jacquard-lexgen`** 122- Lexicon code generation tooling extracted from `jacquard-lexicon` 123- Separates binary/CLI tools from library code 124- Contains lexicon fetching and code generation binaries 125- `jacquard-lexicon` remains as pure library for lexicon parsing, code generation, and validation 126 127**Examples** 128- `app_password_create_post.rs`: App password authentication example 129 130### Changed 131 132**Feature gating** (`jacquard-identity`) 133- Better conditional compilation for platform-specific features 134- Improved WASM target support 135 136**Dependency updates** 137- Updated to latest lexicons from atproto/bluesky 138- Added workspace dependencies: sha2, multihash, dashmap, cid 139- Various minor dependency version updates 140 141### Fixed 142 143**File auth store** (`jacquard`) 144- Fixed serialization/deserialization bugs in `FileAuthStore` implementation 145 146**Packaging** (`jacquard-lexgen`) 147- Added Nix flake apps for lexicon tools 148 149## [0.8.0] - 2025-10-23 150 151### Breaking Changes 152 153**Error type refactor** (`jacquard-common`, `jacquard-identity`, `jacquard-oauth`, `jacquard`) 154- Better error messages with contextual information and help text 155- Breaking: Error variant names and structures changed across all crates 156 157### Added 158 159**New crate: `jacquard-repo`** 160- AT Protocol repository primitives for working with atproto data structures 161- **MST (Merkle Search Tree)**: Immutable, deterministic tree operations with proper fanout 162 - Optimized block allocation (4.5% oversupply, validated against retr0id's test suite) 163 - Diff operations with protocol limit enforcement 164 - Cursor-based traversal 165- **Commits**: 166 - Proof generation and validation for Sync v1 and v1.1 Relay protocol 167- **CAR I/O**: 168 - Proof CAR validation with MST path verification 169- **Storage**: Pluggable block storage abstraction 170 - `MemoryBlockStore`: In-memory storage for testing 171 - `FileBlockStore`: Persistent file-based storage 172 - `LayeredBlockStore`: Layered read-through cache (memory over file, etc.) 173 174### Changed 175 176- Dependency updates (upgraded various crypto and serialization dependencies) 177- Documentation improvements throughout 178- Made handle parsing a bit more permissive for a common case ('handle.invalid' when someone has a messed up handle), added a method to confirm syntactic validity (the correct way to confirm validity is resolve_handle() from IdentityResolver, and comparing to the DID document). 179 180## [0.7.0] - 2025-10-19 181 182### Added 183 184**Bluesky-style rich text utilities** (`jacquard`) 185- Rich text parsing with automatic facet detection (mentions, links, hashtags) 186- Compatible with Bluesky, with the addition of support for markdown-style links (`[display](url)` syntax) 187- Embed candidate detection from URLs and at-URIs 188 - Record embeds (posts, lists, starter packs, feeds) 189 - External embeds with optional OpenGraph metadata fetching 190- Configurable embed domains for at-URI extraction (default: bsky.app, deer.social, blacksky.community, catsky.social) 191- Overlap detection and validation for facet byte ranges 192 193**Moderation/labeling client utilities** (`jacquard`) 194- Trait-based content moderation with `Labeled` and `Moderateable` traits 195- Generic moderation decision making via `moderate()` and `moderate_all()` 196- User preference handling (`ModerationPrefs`) with global and per-labeler overrides 197- `ModerationIterExt` trait for filtering/mapping moderation over iterators 198- `Labeled` implementations for Bluesky types (PostView, ProfileView, ListView, Generator, Notification, etc.) 199- `Labeled` implementations for community lexicons (net.anisota, social.grain) 200- `fetch_labels()` and `fetch_labeled_record()` helpers for retrieving labels via XRPC 201- `fetch_labeler_defs()` and `fetch_labeler_defs_direct()` for fetching labeler definitions 202 203**Subscription control** (`jacquard-common`) 204- `SubscriptionControlMessage` trait for dynamic subscription configuration 205- `SubscriptionController` for sending control messages to active WebSocket subscriptions 206- Enables runtime reconfiguration of subscriptions (e.g., Jetstream filtering) 207 208**Lexicons** (`jacquard-api`) 209- teal.fm alpha lexicons for music sharing (fm.teal.alpha.*) 210 - Actor profiles with music service status 211 - Feed generation from play history 212 - Statistics endpoints (top artists, top releases, user stats) 213 214**Examples** 215- Updated `create_post.rs` to demonstrate richtext parsing with automatic facet detection 216- New `moderated_timeline.rs` to demonstrate fetching timeline with labelers enabled and applying moderation decisions 217 218### Fixed 219 220**Data deserialization** (`jacquard-common`) 221- Fixed `Option<Vec<T>>` deserialization from `Data` values 222- Implemented explicit `deserialize_option` for `Data` and `RawData` deserializers 223- Properly handles null vs present array values when deserializing into optional fields 224 225 226## [0.6.0] - 2025-10-18 227 228### Added 229 230**HTTP streaming support** (`jacquard-common`, `jacquard`) 231- `HttpClientExt` trait for streaming HTTP requests/responses 232- `send_http_streaming()` for streaming response bodies 233- `send_http_bidirectional()` for streaming both request and response 234- `StreamingResponse` wrapper type with parts + `ByteStream` 235- `XrpcResponseStream<R>` for typed XRPC streaming responses 236- `ByteStream` / `ByteSink` platform-agnostic stream wrappers (uses n0-future) 237- `StreamError` concrete error type with kind enum (Transport, Closed, Protocol) 238- Native support via reqwest's `bytes_stream()` and `Body::wrap_stream()` 239- WASM compatibility via n0-future (no Send bounds required) 240 241 242**WebSocket subscription support** (`jacquard-common`) 243- Full XRPC WebSocket subscription infrastructure 244- `SubscriptionResp` trait for defining subscription message/error types 245- `XrpcSubscription` trait for subscription parameters 246- `SubscriptionStream<S>` typed wrapper with automatic message decoding 247- `SubscriptionClient` stateful trait + `TungsteniteSubscriptionClient` implementation 248- `SubscriptionExt` for stateless subscription calls 249- Support for both JSON and DAG-CBOR message encodings 250- Custom path support via `CUSTOM_PATH` constant for non-XRPC endpoints 251- WebSocket integration into `Agent` struct (agents can now subscribe) 252- `into_stream()`, `into_raw_data_stream()`, `into_data_stream()` methods for different deserialization modes 253 254**Framed DAG-CBOR message decoding** (`jacquard-common`, `jacquard-api`, `jacquard-lexicon`) 255- Two-stage deserialization for AT Protocol event streams (header + body) 256- `EventHeader` struct and `parse_event_header()` function 257- `decode_framed()` methods generated for all DAG-CBOR subscription message enums 258- `decode_message()` override in `SubscriptionResp` trait for custom decoding 259- `UnknownEventType` variant in `DecodeError` for unknown discriminators 260- Fixes "TrailingData" errors when consuming subscribeRepos and subscribeLabels 261 262**Jetstream support** (`jacquard-common`) 263- Full typed support for Jetstream JSON firehose 264- `JetstreamMessage` enum with `Commit`, `Identity`, `Account` variants 265- `JetstreamCommit`, `JetstreamIdentity`, `JetstreamAccount` detail structs 266- `CommitOperation` enum for create/update/delete operations 267- `JetstreamParams` with filtering options (collections, DIDs, cursor, compression) 268- Uses proper AT Protocol types (`Did`, `Handle`, `Datetime`, `Data`) 269 270**Zstd compression** (`jacquard-common`) 271- Optional `zstd` feature for Jetstream message decompression 272- Automatic detection and decompression of zstd-compressed binary frames 273- Includes official Bluesky Jetstream zstd dictionary 274- Transparent fallback to uncompressed when zstd unavailable 275- Works across all JSON stream methods (`into_stream()`, `into_raw_data_stream()`, `into_data_stream()`) 276 277**Typed AT URI wrapper** (`jacquard-common`, `jacquard-api`, `jacquard-lexicon`) 278- `AtUri<'a>` newtype wrapper for `at://` URIs with proper validation 279- Generated `fetch_uri()` method on all record types for fetching by AT URI 280- `AtUri::from_parts()` constructor for building URIs from components 281- Proper Display and FromStr implementations 282 283**Memory-based credential session helpers** (`jacquard`) (ty [@vielle.dev](https://tangled.org/@vielle.dev)) 284 285**Axum improvements** (`jacquard-axum`) 286- `XrpcError` now implements `IntoResponse` for better error handling 287- Proper typed error responses without manual conversion 288- Better integration with Axum's response system 289 290**Examples** 291- `subscribe_repos.rs`: Subscribe to PDS firehose with typed DAG-CBOR messages 292- `subscribe_jetstream.rs`: Subscribe to Jetstream with typed JSON messages and optional compression 293- `stream_get_blob.rs`: Download blobs using HTTP streaming 294- `app_password_example.rs`: App password authentication example (ty [@vielle.dev](https://tangled.org/@vielle.dev)) 295 296**CID deserialization improvements** (`jacquard-common`) 297- Fixed `Cid` type to properly deserialize CBOR tag 42 via `IpldCid::deserialize` 298- Separate handling for JSON (string) vs CBOR (tag 42) formats 299- `CidLink` correctly delegates to `Cid` for both formats 300 301### Changed 302 303**Default features** (`jacquard-common`) 304- Added `zstd` to default features for better Jetstream experience 305- Jetstream compression enabled by default when using the full feature set 306 307**Generated code** (`jacquard-lexicon`, `jacquard-api`) 308- All DAG-CBOR subscriptions (subscribeRepos, subscribeLabels) now use framed decoding 309- Generated `decode_framed()` implementations match on event type discriminator 310- Override `decode_message()` in trait impls to use framed decoding 311- All record types now have `fetch_uri()` and `fetch_record()` methods generated 312 313**Dependencies** (`jacquard-axum`) (ty [@thoth.ptnote.dev](https://tangled.org/@thoth.ptnote.dev)) 314- Disabled default features for `jacquard` dependency to reduce bloat 315 316### Fixed 317 318**Blob upload** (`jacquard`) (ty [@vielle.dev](https://tangled.org/@vielle.dev) for reporting this one) 319- Fixed `upload_blob()` authentication issues 320- Properly authenticates while allowing custom Content-Type headers 321 322**XRPC client** (`jacquard-common`, `jacquard-oauth`, `jacquard`) 323- Added `send_with_options()` method for per-request option overrides 324- Stateful clients can now override options while preserving internal auth 325 326 327--- 328 329## `jacquard-api` [0.5.5], `jacquard-lexicon` [0.5.4] - 2025-10-16 330 331### Fixed 332 333- events.smokesignal.invokeWebhook lexicon now generates valid code 334- lexicon code generation now uses `Data` for blank objects, rather than naming and then failing to generate a struct 335 336## [0.5.4] - 2025-10-16 337 338### Added 339 340**Initial streaming client support** (`jacquard-common`) 341- First primitives for streamed requests and responses 342 343**`send_with_options()` method on XrpcClient** (`jacquard-common`, `jacquard-oauth`, `jacquard`) 344- allows setting custom options per request in stateful client 345- updated oauth and credential session clients to use it 346- implementations should generally override provided auth with own internal auth 347 348**Prelude providing common traits into scope** 349 350### Fixed 351 352**`AgentSessionExt::upload_blob()` failed to authenticate** (`jacquard`) 353- new `XrpcClient::send_with_options()` method now allows properly overriding the content-type header while still handling auth internally 354 355## [0.5.3] - 2025-10-15 356 357### Added 358 359**Experimental WASM Support** (`jacquard-common`, `jacquard-api`, `jacquard-identity`, `jacquard-oauth`) 360- Core crates now compile for `wasm32-unknown-unknown` target 361- Traits use `trait-variant` to conditionally exclude `Send` bounds on WASM 362- Platform-specific trait method implementations for methods with `Self: Sync` bounds 363- DNS-based handle resolution remains gated behind `dns` feature (unavailable on WASM) 364- HTTPS well-known and PDS resolution work on all platforms 365 366### Fixed 367 368**OAuth client** (`jacquard-oauth`) 369- Fixed tokio runtime detection for non-WASM targets 370- Conditional compilation for tokio-specific features 371 372 373--- 374 375## [0.5.2] - 2025-10-14 376 377### Added 378 379**Value type deserialization** (`jacquard-common`) 380- `from_json_value()`: Deserialize typed data directly from `serde_json::Value` without borrowing 381- `from_data_owned()`, `from_raw_data_owned()`: Owned deserialization helpers 382- `Data::from_json_owned()`: Parse JSON into owned `Data<'static>` 383- `IntoStatic` implementation for `RawData` enabling owned conversions 384- Re-exported value types from crate root for easier imports 385- `Deserializer` trait implementations for `Data<'static>` and `RawData<'static>` 386- Owned deserializer helpers: `OwnedArrayDeserializer`, `OwnedObjectDeserializer`, `OwnedBlobDeserializer` 387 388**Service Auth** (`jacquard-axum`, `jacquard-common`) 389- Full service authentication implementation for inter-service JWT verification 390- `ExtractServiceAuth` Axum extractor for validating service auth tokens 391- Axum service auth middleware 392- JWT parsing and signature verification (ES256, ES256K) 393- Service auth claims validation (issuer, audience, expiration, method binding) 394- DID document resolution for signing key verification 395 396**XrpcRequest derive macro** (`jacquard-derive`) 397- `#[derive(XrpcRequest)]` for custom XRPC endpoints 398- Automatically generates response marker struct and trait implementations 399- Supports both client-side (`XrpcRequest`) and server-side (`XrpcEndpoint`) with `server` flag 400- Simplifies defining custom XRPC endpoints outside of generated API 401 402**Builder integration** (`jacquard-derive`) 403- `#[lexicon]` macro now detects `bon::Builder` derive 404- Automatically adds `#[builder(default)]` to `extra_data` field when Builder is present 405- Makes `extra_data` optional in generated builders 406 407### Fixed 408 409**String deserialization** (`jacquard-common`) 410- All string types (Did, Handle, Nsid, etc.) now properly handle URL-encoded values 411- `serde_html_form` correctly decodes percent-encoded characters during deserialization 412- Fixes issues with DIDs and other identifiers containing colons in query parameters 413 414**Axum extractor** (`jacquard-axum`) 415- Removed unnecessary URL-decoding workaround (now handled by improved string deserialization) 416- Added comprehensive tests for URL-encoded query parameters 417- Cleaner implementation with proper delegation to serde 418 419### Changed 420 421**Dependencies** 422- Moved `clap` to dev-dependencies in `jacquard` (only used in examples) 423- Moved `axum-macros` and `tracing-subscriber` to dev-dependencies in `jacquard-axum` (only used in examples) 424- Removed unused dependencies: `urlencoding` (jacquard, jacquard-axum), `uuid` (jacquard-oauth), `serde_with` (jacquard-common) 425- Removed `fancy` feature from `jacquard` (design smell for library crates) 426- Moved various proc-macro crate dependencies to dev-dependencies in `jacquard-derive` 427 428**Development tooling** 429- Improved justfile with dynamic example discovery 430- `just examples` now auto-discovers all examples 431- `just example <name>` auto-detects package without manual configuration 432- Better error messages when examples not found 433 434**Documentation** (`jacquard`, `jacquard-common`) 435- Improved lifetime pattern explanations 436- Better documentation of zero-copy deserialization approach 437- Links to docs.rs for generated documentation 438 439--- 440 441## [0.5.1] - 2025-10-13 442 443### Fixed 444 445**Trait bounds** (`jacquard-common`) 446- Removed lifetime parameter from `XrpcRequest` trait, simplifying trait bounds 447- Lifetime now only appears on `XrpcEndpoint::Request<'de>` associated type 448- Fixes issues with using XRPC types in async contexts like Axum extractors 449 450### Changed 451 452- Updated all workspace crates to 0.5.1 for consistency 453- `jacquard-axum` remains at 0.5.1 (unchanged) 454 455--- 456 457## `jacquard-axum` [0.5.1] - 2025-10-13 458 459### Fixed 460 461- Axum extractor now sets the correct Content-Type header during error path. 462 463--- 464 465## [0.5.0] - 2025-10-13 466 467### Added 468 469**Agent convenience methods** (`jacquard`) 470- New `AgentSessionExt` trait automatically implemented for `AgentSession + IdentityResolver` 471- **Basic CRUD**: `create_record()`, `get_record()`, `put_record()`, `delete_record()` 472- **Update patterns**: `update_record()` (fetch-modify-put), `update_vec()`, `update_vec_item()` 473- **Blob operations**: `upload_blob()` 474- All methods auto-fill repo from session or URI parameter as relevant, and collection from type's `Collection::NSID` 475 476**VecUpdate trait** (`jacquard`) 477- `VecUpdate` trait for fetch-modify-put patterns on array-based endpoints 478- `PreferencesUpdate` implementation for updating Bluesky user preferences 479- Enables simpler updates to preferences and other 'array of union' types 480 481**Typed record retrieval** (`jacquard-api`, `jacquard-common`, `jacquard-lexicon`) 482- Each collection generates `{Type}Record` marker struct implementing `XrpcResp` 483- `Collection::Record` associated type points to the marker 484- `get_record::<R>()` returns `Response<R::Record>` with zero-copy `.parse()` 485- Response transmutation enables type-safe record operations 486 487**Examples** 488- `create_post.rs`: Creating posts with Agent convenience methods 489- `update_profile.rs`: Updating profile with fetch-modify-put 490- `post_with_image.rs`: Uploading images and creating posts with embeds 491- `update_preferences.rs`: Using VecUpdate for preferences 492- `create_whitewind_post.rs`, `read_whitewind_post.rs`: Third-party lexicons 493- `read_tangled_repo.rs`: Reading git repo metadata from tangled.org 494- `resolve_did.rs`: Identity resolution examples 495- `public_atproto_feed.rs`: Unauthenticated feed access 496- `axum_server.rs`: Server-side XRPC handler 497 498 499**Documentation** (`jacquard`) 500- A whole host of examples added, as well as a lengthy explainer of the trait patterns. 501 502## [0.4.1] - 2025-10-13 503 504### Added 505 506**Collection trait improvements** (`jacquard-api`) 507- Generated `{Type}Record` marker structs for all record types 508- Each implements `XrpcResp` with `Output<'de> = {Type}<'de>` and `Err<'de> = RecordError<'de>` 509- Enables typed `get_record` returning `Response<R::Record>` 510 511### Changed 512 513- Minor improvements to derive macros (`jacquard-derive`) 514- Identity resolution refinements (`jacquard-identity`) 515- OAuth client improvements (`jacquard-oauth`) 516 517--- 518 519## [0.4.0] - 2025-10-11 520 521### Breaking Changes 522 523**Zero-copy deserialization** (`jacquard-common`, `jacquard-api`) 524- `XrpcRequest` now takes a `'de` lifetime parameter and requires `Deserialize<'de>` 525- For raw data, `Response::parse_data()` gives validated loosely-typed atproto data, while `Response::parse_raw()` gives the raw values, with minimal validation. 526 527**XRPC module moved** (`jacquard-common`) 528- `xrpc.rs` is now top-level instead of under `types` 529- Import from `jacquard_common::xrpc::*` not `jacquard_common::types::xrpc::*` 530 531**Response API changes** (`jacquard-common`) 532- `XrpcRequest::Output` and `XrpcRequest::Err` are associated types with lifetimes 533- Split response and request traits: `XrpcRequest<'de>` for client, `XrpcEndpoint` for server 534- Added `XrpcResp` marker trait 535 536**Various traits** (`jacquard`, `jacquard-common`, `jacquard-lexicon`, `jacquard-oauth`) 537- Removed #[async_trait] attribute macro usage in favour of `impl Future` return types with manual bounds. 538- Boxing imposed by asyc_trait negatively affected borrowing modes in async methods. 539- Currently no semver guarantees on API trait bounds, if they need to tighten, they will. 540 541### Added 542 543**New crate: `jacquard-axum`** 544- Server-side XRPC handlers for Axum 545- `ExtractXrpc<R>` deserializes incoming requests (query params for Query, body for Procedure) 546- Automatic error responses 547 548**Lexicon codegen fixes** (`jacquard-lexicon`) 549- Union variant collision detection: when multiple namespaces have similar type names, foreign ones get prefixed (e.g., `Images` vs `BskyImages`) 550- Token types generate unit structs with `Display` instead of being skipped 551- Namespace dependency tracking during union generation 552- `generate_cargo_features()` outputs Cargo.toml features with correct deps 553- `sanitize_name()` ensures valid Rust identifiers 554 555**Lexicons** (`jacquard-api`) 556 557Added 646 lexicon schemas. Highlights: 558 559Core ATProto: 560- `com.atproto.*` 561- `com.bad-example.*` for identity resolution 562 563Bluesky: 564- `app.bsky.*` bluesky app 565- `chat.bsky.*` chat client 566- `tools.ozone.*` moderation 567 568Third-party: 569- `sh.tangled.*` - git forge 570- `sh.weaver.*` - orual's WIP markdown blog platform 571- `pub.leaflet.*` - longform publishing 572- `net.anisota.*` - gamified and calming take on bluesky 573- `network.slices.*` - serverless atproto hosting 574- `tools.smokesignal.*` - automation 575- `com.whtwnd.*` - markdown blogging 576- `place.stream.*` - livestreaming 577- `blue.2048.*` - 2048 game 578- `community.lexicon.*` - community extensions (bookmarks, calendar, location, payments) 579- `my.skylights.*` - media tracking 580- `social.psky.*` - social extensions 581- `blue.linkat.*` - link boards 582 583Plus 30+ more experimental/community namespaces. 584 585**Value types** (`jacquard-common`) 586- `RawData` to `Data` conversion with type inference 587- `from_data`, `from_raw_data`, `to_data`, and `to_raw_data` to serialize to and deserialize from the loosely typed value data formats. Particularly useful for second-stage deserialization of type "unknown" fields in lexicons, such as `PostView.record`. 588 589### Changed 590 591- `generate_union()` takes current NSID for dependency tracking 592- Generated code uses `sanitize_name()` for identifiers more consistently 593- Added derive macro for IntoStatic trait implementation 594 595### Fixed 596 597- Methods to extract the output from an XRPC response now behave well with respect to lifetimes and borrowing. 598- Now possible to use jacquard types in places like axum extractors due to lifetime improvements 599- Union variants don't collide when multiple namespaces define similar types and another namespace includes them 600 601---