A better Rust ATProto crate
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

updated binaries for 0.10.1

+145 -187
+3
.cargo/config.toml
··· 1 + 2 + [target.wasm32-unknown-unknown] 3 + rustflags = ['--cfg', 'getrandom_backend="wasm_js"']
+4 -2
.gitignore
··· 1 1 /target 2 2 /result 3 3 /result-lib 4 - .direnv 5 - .claude 4 + .** 5 + !.tangled 6 + !.github 7 + !.cargo 6 8 /.pre-commit-config.yaml 7 9 crates/jacquard-lexicon/target 8 10 /plans
+1 -1
Cargo.lock
··· 2426 2426 2427 2427 [[package]] 2428 2428 name = "jacquard-api" 2429 - version = "0.10.0" 2429 + version = "0.10.2" 2430 2430 dependencies = [ 2431 2431 "jacquard-common", 2432 2432 "jacquard-derive",
+6 -6
binaries/SHA256SUMS
··· 1 - 1c446bab1beceef71d0e9399cba605a7f20724c876ebb6079018f9f7e12265ae jacquard-codegen_aarch64-unknown-linux-gnu.tar.xz 2 - abfcfa4289f81b0e33a98b2406c5aee11fff87bd8d1f7cb7b8e4ab3b0d5b1ef7 jacquard-codegen_x86_64-unknown-linux-gnu.tar.xz 3 - 785364234c0749b06a887cc847a5cd1636c4462b82c0609356b528f96b2cbc7c lex-fetch_aarch64-unknown-linux-gnu.tar.xz 4 - acadba83882e67fe05b1ea561f30fa3237cb16ed95d4bf6a07d1a3d1fe4f0dfe lex-fetch_x86_64-unknown-linux-gnu.tar.xz 5 - 060fcda31d081c72289d06614c280c422c4e64cef12516cfa8cc5262f62753c7 jacquard-codegen_x86_64-pc-windows-gnu.zip 6 - b2497864ce0d178d32a137e24df55f1687de60b5e53ea2f1a14f24f1e65d4923 lex-fetch_x86_64-pc-windows-gnu.zip 1 + 116bc235583edf4d2fc6b576df2a6188f1f6da947b951f0449884153e3ee87a4 jacquard-codegen_aarch64-unknown-linux-gnu.tar.xz 2 + 8a212ce575a449d6ac22e4f238ea6aea1afe105de77fd8daa8e24409d6e4eb3c jacquard-codegen_x86_64-unknown-linux-gnu.tar.xz 3 + 7d44fd207cf95ad5a9fb587068c19ed3e84540cea23f9d5d2d3519210f9d71b9 lex-fetch_aarch64-unknown-linux-gnu.tar.xz 4 + 196eedb3171380e3e00b583bf11eecc318f356fef28c63f13b81a33ee9e93ee8 lex-fetch_x86_64-unknown-linux-gnu.tar.xz 5 + c01ab49c6cf9b1649a65040058a2762fbcd0b8b82944b11250a8b5e3f00e6904 jacquard-codegen_x86_64-pc-windows-gnu.zip 6 + 9d5b0807ef6291321591be5a66401ded29d933d77bb2411f53b15440ba56ac34 lex-fetch_x86_64-pc-windows-gnu.zip
binaries/jacquard-codegen_aarch64-unknown-linux-gnu.tar.xz

This is a binary file and will not be displayed.

binaries/jacquard-codegen_x86_64-pc-windows-gnu.zip

This is a binary file and will not be displayed.

binaries/jacquard-codegen_x86_64-unknown-linux-gnu.tar.xz

This is a binary file and will not be displayed.

binaries/lex-fetch_aarch64-unknown-linux-gnu.tar.xz

This is a binary file and will not be displayed.

binaries/lex-fetch_x86_64-pc-windows-gnu.zip

This is a binary file and will not be displayed.

binaries/lex-fetch_x86_64-unknown-linux-gnu.tar.xz

This is a binary file and will not be displayed.

+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.10.0" 5 + version = "0.10.2" 6 6 authors.workspace = true 7 7 repository.workspace = true 8 8 keywords.workspace = true
+130 -177
crates/jacquard-api/src/app_openmkt/marketplace/listing.rs
··· 14 14 PartialEq, 15 15 Eq, 16 16 jacquard_derive::IntoStatic, 17 - Default 17 + Default, 18 18 )] 19 19 #[serde(rename_all = "camelCase")] 20 20 pub struct LocationObj<'a> { ··· 32 32 pub zip_prefix: std::option::Option<jacquard_common::CowStr<'a>>, 33 33 } 34 34 35 - fn lexicon_doc_app_openmkt_marketplace_listing() -> ::jacquard_lexicon::lexicon::LexiconDoc< 36 - 'static, 37 - > { 35 + fn lexicon_doc_app_openmkt_marketplace_listing() -> ::jacquard_lexicon::lexicon::LexiconDoc<'static> 36 + { 38 37 ::jacquard_lexicon::lexicon::LexiconDoc { 39 38 lexicon: ::jacquard_lexicon::lexicon::Lexicon::Lexicon1, 40 39 id: ::jacquard_common::CowStr::new_static("app.openmkt.marketplace.listing"), ··· 44 43 let mut map = ::alloc::collections::BTreeMap::new(); 45 44 map.insert( 46 45 ::jacquard_common::deps::smol_str::SmolStr::new_static("locationObj"), 47 - ::jacquard_lexicon::lexicon::LexUserType::Object(::jacquard_lexicon::lexicon::LexObject { 48 - description: None, 49 - required: None, 50 - nullable: None, 51 - properties: { 52 - #[allow(unused_mut)] 53 - let mut map = ::alloc::collections::BTreeMap::new(); 54 - map.insert( 55 - ::jacquard_common::deps::smol_str::SmolStr::new_static( 56 - "county", 57 - ), 58 - ::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString { 59 - description: None, 60 - format: None, 61 - default: None, 62 - min_length: None, 63 - max_length: None, 64 - min_graphemes: None, 65 - max_graphemes: None, 66 - r#enum: None, 67 - r#const: None, 68 - known_values: None, 69 - }), 70 - ); 71 - map.insert( 72 - ::jacquard_common::deps::smol_str::SmolStr::new_static( 73 - "locality", 74 - ), 75 - ::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString { 76 - description: None, 77 - format: None, 78 - default: None, 79 - min_length: None, 80 - max_length: None, 81 - min_graphemes: None, 82 - max_graphemes: None, 83 - r#enum: None, 84 - r#const: None, 85 - known_values: None, 86 - }), 87 - ); 88 - map.insert( 89 - ::jacquard_common::deps::smol_str::SmolStr::new_static( 90 - "state", 91 - ), 92 - ::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString { 93 - description: None, 94 - format: None, 95 - default: None, 96 - min_length: None, 97 - max_length: None, 98 - min_graphemes: None, 99 - max_graphemes: None, 100 - r#enum: None, 101 - r#const: None, 102 - known_values: None, 103 - }), 104 - ); 105 - map.insert( 106 - ::jacquard_common::deps::smol_str::SmolStr::new_static( 107 - "zipPrefix", 108 - ), 109 - ::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString { 110 - description: None, 111 - format: None, 112 - default: None, 113 - min_length: None, 114 - max_length: None, 115 - min_graphemes: None, 116 - max_graphemes: None, 117 - r#enum: None, 118 - r#const: None, 119 - known_values: None, 120 - }), 121 - ); 122 - map 46 + ::jacquard_lexicon::lexicon::LexUserType::Object( 47 + ::jacquard_lexicon::lexicon::LexObject { 48 + description: None, 49 + required: None, 50 + nullable: None, 51 + properties: { 52 + #[allow(unused_mut)] 53 + let mut map = ::alloc::collections::BTreeMap::new(); 54 + map.insert( 55 + ::jacquard_common::deps::smol_str::SmolStr::new_static("county"), 56 + ::jacquard_lexicon::lexicon::LexObjectProperty::String( 57 + ::jacquard_lexicon::lexicon::LexString { 58 + description: None, 59 + format: None, 60 + default: None, 61 + min_length: None, 62 + max_length: None, 63 + min_graphemes: None, 64 + max_graphemes: None, 65 + r#enum: None, 66 + r#const: None, 67 + known_values: None, 68 + }, 69 + ), 70 + ); 71 + map.insert( 72 + ::jacquard_common::deps::smol_str::SmolStr::new_static("locality"), 73 + ::jacquard_lexicon::lexicon::LexObjectProperty::String( 74 + ::jacquard_lexicon::lexicon::LexString { 75 + description: None, 76 + format: None, 77 + default: None, 78 + min_length: None, 79 + max_length: None, 80 + min_graphemes: None, 81 + max_graphemes: None, 82 + r#enum: None, 83 + r#const: None, 84 + known_values: None, 85 + }, 86 + ), 87 + ); 88 + map.insert( 89 + ::jacquard_common::deps::smol_str::SmolStr::new_static("state"), 90 + ::jacquard_lexicon::lexicon::LexObjectProperty::String( 91 + ::jacquard_lexicon::lexicon::LexString { 92 + description: None, 93 + format: None, 94 + default: None, 95 + min_length: None, 96 + max_length: None, 97 + min_graphemes: None, 98 + max_graphemes: None, 99 + r#enum: None, 100 + r#const: None, 101 + known_values: None, 102 + }, 103 + ), 104 + ); 105 + map.insert( 106 + ::jacquard_common::deps::smol_str::SmolStr::new_static("zipPrefix"), 107 + ::jacquard_lexicon::lexicon::LexObjectProperty::String( 108 + ::jacquard_lexicon::lexicon::LexString { 109 + description: None, 110 + format: None, 111 + default: None, 112 + min_length: None, 113 + max_length: None, 114 + min_graphemes: None, 115 + max_graphemes: None, 116 + r#enum: None, 117 + r#const: None, 118 + known_values: None, 119 + }, 120 + ), 121 + ); 122 + map 123 + }, 123 124 }, 124 - }), 125 + ), 125 126 ); 126 127 map.insert( 127 128 ::jacquard_common::deps::smol_str::SmolStr::new_static("main"), ··· 322 323 ); 323 324 map.insert( 324 325 ::jacquard_common::deps::smol_str::SmolStr::new_static("metadataObj"), 325 - ::jacquard_lexicon::lexicon::LexUserType::Object(::jacquard_lexicon::lexicon::LexObject { 326 - description: None, 327 - required: None, 328 - nullable: None, 329 - properties: { 330 - #[allow(unused_mut)] 331 - let mut map = ::alloc::collections::BTreeMap::new(); 332 - map.insert( 333 - ::jacquard_common::deps::smol_str::SmolStr::new_static( 334 - "subcategory", 335 - ), 336 - ::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString { 337 - description: None, 338 - format: None, 339 - default: None, 340 - min_length: None, 341 - max_length: None, 342 - min_graphemes: None, 343 - max_graphemes: None, 344 - r#enum: None, 345 - r#const: None, 346 - known_values: None, 347 - }), 348 - ); 349 - map 326 + ::jacquard_lexicon::lexicon::LexUserType::Object( 327 + ::jacquard_lexicon::lexicon::LexObject { 328 + description: None, 329 + required: None, 330 + nullable: None, 331 + properties: { 332 + #[allow(unused_mut)] 333 + let mut map = ::alloc::collections::BTreeMap::new(); 334 + map.insert( 335 + ::jacquard_common::deps::smol_str::SmolStr::new_static( 336 + "subcategory", 337 + ), 338 + ::jacquard_lexicon::lexicon::LexObjectProperty::String( 339 + ::jacquard_lexicon::lexicon::LexString { 340 + description: None, 341 + format: None, 342 + default: None, 343 + min_length: None, 344 + max_length: None, 345 + min_graphemes: None, 346 + max_graphemes: None, 347 + r#enum: None, 348 + r#const: None, 349 + known_values: None, 350 + }, 351 + ), 352 + ); 353 + map 354 + }, 350 355 }, 351 - }), 356 + ), 352 357 ); 353 358 map 354 359 }, ··· 374 379 375 380 #[jacquard_derive::lexicon] 376 381 #[derive( 377 - serde::Serialize, 378 - serde::Deserialize, 379 - Debug, 380 - Clone, 381 - PartialEq, 382 - Eq, 383 - jacquard_derive::IntoStatic 382 + serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, jacquard_derive::IntoStatic, 384 383 )] 385 384 #[serde(rename_all = "camelCase")] 386 385 pub struct Listing<'a> { ··· 406 405 pub location: crate::app_openmkt::marketplace::listing::LocationObj<'a>, 407 406 #[serde(skip_serializing_if = "std::option::Option::is_none")] 408 407 #[serde(borrow)] 409 - pub metadata: std::option::Option< 410 - crate::app_openmkt::marketplace::listing::MetadataObj<'a>, 411 - >, 408 + pub metadata: std::option::Option<crate::app_openmkt::marketplace::listing::MetadataObj<'a>>, 412 409 ///String representation 413 410 #[serde(borrow)] 414 411 pub price: jacquard_common::CowStr<'a>, ··· 418 415 419 416 pub mod listing_state { 420 417 421 - pub use crate::builder_types::{Set, Unset, IsSet, IsUnset}; 418 + pub use crate::builder_types::{IsSet, IsUnset, Set, Unset}; 422 419 #[allow(unused)] 423 420 use ::core::marker::PhantomData; 424 421 mod sealed { ··· 519 516 ::core::option::Option<jacquard_common::CowStr<'a>>, 520 517 ::core::option::Option<bool>, 521 518 ::core::option::Option<Vec<jacquard_common::types::blob::BlobRef<'a>>>, 522 - ::core::option::Option< 523 - crate::app_openmkt::marketplace::listing::LocationObj<'a>, 524 - >, 525 - ::core::option::Option< 526 - crate::app_openmkt::marketplace::listing::MetadataObj<'a>, 527 - >, 519 + ::core::option::Option<crate::app_openmkt::marketplace::listing::LocationObj<'a>>, 520 + ::core::option::Option<crate::app_openmkt::marketplace::listing::MetadataObj<'a>>, 528 521 ::core::option::Option<jacquard_common::CowStr<'a>>, 529 522 ::core::option::Option<jacquard_common::CowStr<'a>>, 530 523 ), ··· 544 537 ListingBuilder { 545 538 _phantom_state: ::core::marker::PhantomData, 546 539 __unsafe_private_named: ( 547 - None, 548 - None, 549 - None, 550 - None, 551 - None, 552 - None, 553 - None, 554 - None, 555 - None, 556 - None, 557 - None, 540 + None, None, None, None, None, None, None, None, None, None, None, 558 541 ), 559 542 _phantom: ::core::marker::PhantomData, 560 543 } ··· 582 565 583 566 impl<'a, S: listing_state::State> ListingBuilder<'a, S> { 584 567 /// Set the `condition` field (optional) 585 - pub fn condition( 586 - mut self, 587 - value: impl Into<Option<jacquard_common::CowStr<'a>>>, 588 - ) -> Self { 568 + pub fn condition(mut self, value: impl Into<Option<jacquard_common::CowStr<'a>>>) -> Self { 589 569 self.__unsafe_private_named.1 = value.into(); 590 570 self 591 571 } 592 572 /// Set the `condition` field to an Option value (optional) 593 - pub fn maybe_condition( 594 - mut self, 595 - value: Option<jacquard_common::CowStr<'a>>, 596 - ) -> Self { 573 + pub fn maybe_condition(mut self, value: Option<jacquard_common::CowStr<'a>>) -> Self { 597 574 self.__unsafe_private_named.1 = value; 598 575 self 599 576 } ··· 620 597 621 598 impl<'a, S: listing_state::State> ListingBuilder<'a, S> { 622 599 /// Set the `description` field (optional) 623 - pub fn description( 624 - mut self, 625 - value: impl Into<Option<jacquard_common::CowStr<'a>>>, 626 - ) -> Self { 600 + pub fn description(mut self, value: impl Into<Option<jacquard_common::CowStr<'a>>>) -> Self { 627 601 self.__unsafe_private_named.3 = value.into(); 628 602 self 629 603 } 630 604 /// Set the `description` field to an Option value (optional) 631 - pub fn maybe_description( 632 - mut self, 633 - value: Option<jacquard_common::CowStr<'a>>, 634 - ) -> Self { 605 + pub fn maybe_description(mut self, value: Option<jacquard_common::CowStr<'a>>) -> Self { 635 606 self.__unsafe_private_named.3 = value; 636 607 self 637 608 } ··· 639 610 640 611 impl<'a, S: listing_state::State> ListingBuilder<'a, S> { 641 612 /// Set the `externalUrl` field (optional) 642 - pub fn external_url( 643 - mut self, 644 - value: impl Into<Option<jacquard_common::CowStr<'a>>>, 645 - ) -> Self { 613 + pub fn external_url(mut self, value: impl Into<Option<jacquard_common::CowStr<'a>>>) -> Self { 646 614 self.__unsafe_private_named.4 = value.into(); 647 615 self 648 616 } 649 617 /// Set the `externalUrl` field to an Option value (optional) 650 - pub fn maybe_external_url( 651 - mut self, 652 - value: Option<jacquard_common::CowStr<'a>>, 653 - ) -> Self { 618 + pub fn maybe_external_url(mut self, value: Option<jacquard_common::CowStr<'a>>) -> Self { 654 619 self.__unsafe_private_named.4 = value; 655 620 self 656 621 } ··· 711 676 /// Set the `metadata` field (optional) 712 677 pub fn metadata( 713 678 mut self, 714 - value: impl Into< 715 - Option<crate::app_openmkt::marketplace::listing::MetadataObj<'a>>, 716 - >, 679 + value: impl Into<Option<crate::app_openmkt::marketplace::listing::MetadataObj<'a>>>, 717 680 ) -> Self { 718 681 self.__unsafe_private_named.8 = value.into(); 719 682 self ··· 832 795 833 796 /// Typed wrapper for GetRecord response with this collection's record type. 834 797 #[derive( 835 - serde::Serialize, 836 - serde::Deserialize, 837 - Debug, 838 - Clone, 839 - PartialEq, 840 - Eq, 841 - jacquard_derive::IntoStatic 798 + serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, jacquard_derive::IntoStatic, 842 799 )] 843 800 #[serde(rename_all = "camelCase")] 844 801 pub struct ListingGetRecordOutput<'a> { ··· 895 852 #[allow(unused_comparisons)] 896 853 if <str>::len(value.as_ref()) > 3000usize { 897 854 return Err(::jacquard_lexicon::validation::ConstraintError::MaxLength { 898 - path: ::jacquard_lexicon::validation::ValidationPath::from_field( 899 - "description", 900 - ), 855 + path: ::jacquard_lexicon::validation::ValidationPath::from_field("description"), 901 856 max: 3000usize, 902 857 actual: <str>::len(value.as_ref()), 903 858 }); ··· 920 875 #[allow(unused_comparisons)] 921 876 if <str>::len(value.as_ref()) > 300usize { 922 877 return Err(::jacquard_lexicon::validation::ConstraintError::MaxLength { 923 - path: ::jacquard_lexicon::validation::ValidationPath::from_field( 924 - "title", 925 - ), 878 + path: ::jacquard_lexicon::validation::ValidationPath::from_field("title"), 926 879 max: 300usize, 927 880 actual: <str>::len(value.as_ref()), 928 881 }); ··· 941 894 PartialEq, 942 895 Eq, 943 896 jacquard_derive::IntoStatic, 944 - Default 897 + Default, 945 898 )] 946 899 #[serde(rename_all = "camelCase")] 947 900 pub struct MetadataObj<'a> { ··· 965 918 ) -> ::core::result::Result<(), ::jacquard_lexicon::validation::ConstraintError> { 966 919 Ok(()) 967 920 } 968 - } 921 + }