From de9ea708042fa54f8fa0cf7e5d30b0f353905ccb Mon Sep 17 00:00:00 2001 From: Pepi Date: Wed, 29 Apr 2026 16:24:08 -0400 Subject: [PATCH] chore: update rust crate (#608) --- lib/src/rust/api/accounts.dart | 2 +- lib/src/rust/api/chat_list.dart | 2 +- lib/src/rust/api/groups.dart | 2 +- lib/src/rust/api/messages.dart | 2 +- lib/src/rust/api/notifications.dart | 2 +- lib/src/rust/api/user_search.dart | 2 +- lib/src/rust/api/users.dart | 2 +- rust/Cargo.lock | 4 ++-- rust/Cargo.toml | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/src/rust/api/accounts.dart b/lib/src/rust/api/accounts.dart index edceb68..f784a45 100644 --- a/lib/src/rust/api/accounts.dart +++ b/lib/src/rust/api/accounts.dart @@ -11,7 +11,7 @@ import 'metadata.dart'; import 'relays.dart'; import 'users.dart'; -// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `assert_fields_are_eq`, `assert_fields_are_eq`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `eq`, `eq`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `from`, `from`, `from`, `from`, `from`, `from` +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `eq`, `eq`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `from`, `from`, `from`, `from`, `from`, `from` Future> getAccounts() => RustLib.instance.api.crateApiAccountsGetAccounts(); diff --git a/lib/src/rust/api/chat_list.dart b/lib/src/rust/api/chat_list.dart index b45d6fb..5f1d5fa 100644 --- a/lib/src/rust/api/chat_list.dart +++ b/lib/src/rust/api/chat_list.dart @@ -13,7 +13,7 @@ import 'messages.dart'; part 'chat_list.freezed.dart'; -// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `assert_fields_are_eq`, `assert_fields_are_eq`, `clone`, `clone`, `clone`, `clone`, `clone`, `eq`, `eq`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `from`, `from`, `from`, `from` +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `clone`, `clone`, `clone`, `clone`, `clone`, `eq`, `eq`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `from`, `from`, `from`, `from` /// Sets the pin order for a chat. /// diff --git a/lib/src/rust/api/groups.dart b/lib/src/rust/api/groups.dart index afc2887..e51e743 100644 --- a/lib/src/rust/api/groups.dart +++ b/lib/src/rust/api/groups.dart @@ -10,7 +10,7 @@ import '../lib.dart'; import 'account_groups.dart'; import 'error.dart'; -// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `assert_fields_are_eq`, `assert_fields_are_eq`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `eq`, `eq`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `from`, `from`, `from`, `from`, `from`, `from`, `from` +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `eq`, `eq`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `from`, `from`, `from`, `from`, `from`, `from`, `from` Future> activeGroups({required String pubkey}) => RustLib.instance.api.crateApiGroupsActiveGroups(pubkey: pubkey); diff --git a/lib/src/rust/api/messages.dart b/lib/src/rust/api/messages.dart index 1fc1fdc..3260b10 100644 --- a/lib/src/rust/api/messages.dart +++ b/lib/src/rust/api/messages.dart @@ -12,7 +12,7 @@ import 'media_files.dart'; part 'messages.freezed.dart'; -// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `assert_fields_are_eq`, `assert_fields_are_eq`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `eq`, `eq`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from` +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `eq`, `eq`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from` Future sendMessageToGroup({ required String pubkey, diff --git a/lib/src/rust/api/notifications.dart b/lib/src/rust/api/notifications.dart index 27fcbfe..4b22bb7 100644 --- a/lib/src/rust/api/notifications.dart +++ b/lib/src/rust/api/notifications.dart @@ -8,7 +8,7 @@ import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import '../frb_generated.dart'; import 'error.dart'; -// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `assert_fields_are_eq`, `assert_fields_are_eq`, `clone`, `clone`, `clone`, `clone`, `clone`, `eq`, `eq`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `from`, `from`, `from`, `from`, `from`, `from` +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `clone`, `clone`, `clone`, `clone`, `clone`, `eq`, `eq`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `from`, `from`, `from`, `from`, `from`, `from` Stream subscribeToNotifications() => RustLib.instance.api.crateApiNotificationsSubscribeToNotifications(); diff --git a/lib/src/rust/api/user_search.dart b/lib/src/rust/api/user_search.dart index 43df8ba..6f3ef1a 100644 --- a/lib/src/rust/api/user_search.dart +++ b/lib/src/rust/api/user_search.dart @@ -12,7 +12,7 @@ import 'metadata.dart'; part 'user_search.freezed.dart'; -// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `assert_fields_are_eq`, `assert_fields_are_eq`, `clone`, `clone`, `clone`, `clone`, `clone`, `eq`, `eq`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `from`, `from`, `from`, `from`, `from` +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `clone`, `clone`, `clone`, `clone`, `clone`, `eq`, `eq`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `from`, `from`, `from`, `from`, `from` Stream searchUsers({ required String accountPubkey, diff --git a/lib/src/rust/api/users.dart b/lib/src/rust/api/users.dart index dc2b9ac..81c88eb 100644 --- a/lib/src/rust/api/users.dart +++ b/lib/src/rust/api/users.dart @@ -15,7 +15,7 @@ import 'relays.dart'; part 'users.freezed.dart'; // These functions are ignored because they are not marked as `pub`: `resolve_whitenoise_user` -// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `assert_fields_are_eq`, `clone`, `clone`, `clone`, `clone`, `clone`, `eq`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `from`, `from`, `from` +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `assert_receiver_is_total_eq`, `clone`, `clone`, `clone`, `clone`, `clone`, `eq`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `from`, `from`, `from` Stream subscribeToUser({required String pubkey}) => RustLib.instance.api.crateApiUsersSubscribeToUser(pubkey: pubkey); diff --git a/rust/Cargo.lock b/rust/Cargo.lock index c954f23..cb5cfb4 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -5164,7 +5164,7 @@ checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88" [[package]] name = "whitenoise" version = "0.2.1" -source = "git+https://github.com/marmot-protocol/whitenoise-rs?rev=572afcc9e66550bc8f1ae05bd3f7a82dcefeb20e#572afcc9e66550bc8f1ae05bd3f7a82dcefeb20e" +source = "git+https://github.com/marmot-protocol/whitenoise-rs?rev=36f64edcd78057d63f297d874b26aaa9d251aef3#36f64edcd78057d63f297d874b26aaa9d251aef3" dependencies = [ "android-native-keyring-store", "apple-native-keyring-store", @@ -5206,7 +5206,7 @@ dependencies = [ [[package]] name = "whitenoise-macros" version = "0.1.0" -source = "git+https://github.com/marmot-protocol/whitenoise-rs?rev=572afcc9e66550bc8f1ae05bd3f7a82dcefeb20e#572afcc9e66550bc8f1ae05bd3f7a82dcefeb20e" +source = "git+https://github.com/marmot-protocol/whitenoise-rs?rev=36f64edcd78057d63f297d874b26aaa9d251aef3#36f64edcd78057d63f297d874b26aaa9d251aef3" dependencies = [ "proc-macro2", "quote", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index cdd4aa3..b111113 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -22,7 +22,7 @@ thiserror = "2.0.12" tokio = { version = "1.44", features = ["rt", "rt-multi-thread"] } tracing = "0.1" url = "2.5.1" -whitenoise = { version = "0.2.1", git = "https://github.com/marmot-protocol/whitenoise-rs", rev = "572afcc9e66550bc8f1ae05bd3f7a82dcefeb20e" } +whitenoise = { version = "0.2.1", git = "https://github.com/marmot-protocol/whitenoise-rs", rev = "36f64edcd78057d63f297d874b26aaa9d251aef3" } [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(frb_expand)'] }