bump: frb

This commit is contained in:
xkeyC 2025-03-16 15:51:53 +08:00
parent b830b2b863
commit b18024a8ce
11 changed files with 42 additions and 45 deletions

View File

@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.8.0. // @generated by `flutter_rust_bridge`@ 2.9.0.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import

View File

@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.8.0. // @generated by `flutter_rust_bridge`@ 2.9.0.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import

View File

@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.8.0. // @generated by `flutter_rust_bridge`@ 2.9.0.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import

View File

@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.8.0. // @generated by `flutter_rust_bridge`@ 2.9.0.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import

View File

@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.8.0. // @generated by `flutter_rust_bridge`@ 2.9.0.
// ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field // ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field
@ -67,7 +67,7 @@ class RustLib extends BaseEntrypoint<RustLibApi, RustLibApiImpl, RustLibWire> {
kDefaultExternalLibraryLoaderConfig; kDefaultExternalLibraryLoaderConfig;
@override @override
String get codegenVersion => '2.8.0'; String get codegenVersion => '2.9.0';
@override @override
int get rustContentHash => 1832496273; int get rustContentHash => 1832496273;
@ -183,7 +183,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
callFfi: (port_) { callFfi: (port_) {
var arg0 = cst_encode_my_method(method); var arg0 = cst_encode_my_method(method);
var arg1 = cst_encode_String(url); var arg1 = cst_encode_String(url);
var arg2 = cst_encode_opt_Map_String_String(headers); var arg2 = cst_encode_opt_Map_String_String_None(headers);
var arg3 = cst_encode_opt_list_prim_u_8_strict(inputData); var arg3 = cst_encode_opt_list_prim_u_8_strict(inputData);
var arg4 = cst_encode_opt_String(withIpAddress); var arg4 = cst_encode_opt_String(withIpAddress);
var arg5 = cst_encode_opt_box_autoadd_bool(withCustomDns); var arg5 = cst_encode_opt_box_autoadd_bool(withCustomDns);
@ -303,7 +303,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
{required Map<String, String> headers}) { {required Map<String, String> headers}) {
return handler.executeNormal(NormalTask( return handler.executeNormal(NormalTask(
callFfi: (port_) { callFfi: (port_) {
var arg0 = cst_encode_Map_String_String(headers); var arg0 = cst_encode_Map_String_String_None(headers);
return wire.wire__crate__api__http_api__set_default_header(port_, arg0); return wire.wire__crate__api__http_api__set_default_header(port_, arg0);
}, },
codec: DcoCodec( codec: DcoCodec(
@ -409,7 +409,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
} }
@protected @protected
Map<String, String> dco_decode_Map_String_String(dynamic raw) { Map<String, String> dco_decode_Map_String_String_None(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs // Codec=Dco (DartCObject based), see doc to use other codecs
return Map.fromEntries(dco_decode_list_record_string_string(raw) return Map.fromEntries(dco_decode_list_record_string_string(raw)
.map((e) => MapEntry(e.$1, e.$2))); .map((e) => MapEntry(e.$1, e.$2)));
@ -496,9 +496,9 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
} }
@protected @protected
Map<String, String>? dco_decode_opt_Map_String_String(dynamic raw) { Map<String, String>? dco_decode_opt_Map_String_String_None(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs // Codec=Dco (DartCObject based), see doc to use other codecs
return raw == null ? null : dco_decode_Map_String_String(raw); return raw == null ? null : dco_decode_Map_String_String_None(raw);
} }
@protected @protected
@ -578,7 +578,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
throw Exception('unexpected arr length: expect 7 but see ${arr.length}'); throw Exception('unexpected arr length: expect 7 but see ${arr.length}');
return RustHttpResponse( return RustHttpResponse(
statusCode: dco_decode_u_16(arr[0]), statusCode: dco_decode_u_16(arr[0]),
headers: dco_decode_Map_String_String(arr[1]), headers: dco_decode_Map_String_String_None(arr[1]),
url: dco_decode_String(arr[2]), url: dco_decode_String(arr[2]),
contentLength: dco_decode_opt_box_autoadd_u_64(arr[3]), contentLength: dco_decode_opt_box_autoadd_u_64(arr[3]),
version: dco_decode_my_http_version(arr[4]), version: dco_decode_my_http_version(arr[4]),
@ -625,7 +625,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
} }
@protected @protected
Map<String, String> sse_decode_Map_String_String( Map<String, String> sse_decode_Map_String_String_None(
SseDeserializer deserializer) { SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
var inner = sse_decode_list_record_string_string(deserializer); var inner = sse_decode_list_record_string_string(deserializer);
@ -732,12 +732,12 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
} }
@protected @protected
Map<String, String>? sse_decode_opt_Map_String_String( Map<String, String>? sse_decode_opt_Map_String_String_None(
SseDeserializer deserializer) { SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
if (sse_decode_bool(deserializer)) { if (sse_decode_bool(deserializer)) {
return (sse_decode_Map_String_String(deserializer)); return (sse_decode_Map_String_String_None(deserializer));
} else { } else {
return null; return null;
} }
@ -832,7 +832,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
RustHttpResponse sse_decode_rust_http_response(SseDeserializer deserializer) { RustHttpResponse sse_decode_rust_http_response(SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
var var_statusCode = sse_decode_u_16(deserializer); var var_statusCode = sse_decode_u_16(deserializer);
var var_headers = sse_decode_Map_String_String(deserializer); var var_headers = sse_decode_Map_String_String_None(deserializer);
var var_url = sse_decode_String(deserializer); var var_url = sse_decode_String(deserializer);
var var_contentLength = sse_decode_opt_box_autoadd_u_64(deserializer); var var_contentLength = sse_decode_opt_box_autoadd_u_64(deserializer);
var var_version = sse_decode_my_http_version(deserializer); var var_version = sse_decode_my_http_version(deserializer);
@ -939,7 +939,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
} }
@protected @protected
void sse_encode_Map_String_String( void sse_encode_Map_String_String_None(
Map<String, String> self, SseSerializer serializer) { Map<String, String> self, SseSerializer serializer) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_list_record_string_string( sse_encode_list_record_string_string(
@ -1046,13 +1046,13 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
} }
@protected @protected
void sse_encode_opt_Map_String_String( void sse_encode_opt_Map_String_String_None(
Map<String, String>? self, SseSerializer serializer) { Map<String, String>? self, SseSerializer serializer) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_bool(self != null, serializer); sse_encode_bool(self != null, serializer);
if (self != null) { if (self != null) {
sse_encode_Map_String_String(self, serializer); sse_encode_Map_String_String_None(self, serializer);
} }
} }
@ -1135,7 +1135,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
RustHttpResponse self, SseSerializer serializer) { RustHttpResponse self, SseSerializer serializer) {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_u_16(self.statusCode, serializer); sse_encode_u_16(self.statusCode, serializer);
sse_encode_Map_String_String(self.headers, serializer); sse_encode_Map_String_String_None(self.headers, serializer);
sse_encode_String(self.url, serializer); sse_encode_String(self.url, serializer);
sse_encode_opt_box_autoadd_u_64(self.contentLength, serializer); sse_encode_opt_box_autoadd_u_64(self.contentLength, serializer);
sse_encode_my_http_version(self.version, serializer); sse_encode_my_http_version(self.version, serializer);

View File

@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.8.0. // @generated by `flutter_rust_bridge`@ 2.9.0.
// ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field // ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field
@ -26,7 +26,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
AnyhowException dco_decode_AnyhowException(dynamic raw); AnyhowException dco_decode_AnyhowException(dynamic raw);
@protected @protected
Map<String, String> dco_decode_Map_String_String(dynamic raw); Map<String, String> dco_decode_Map_String_String_None(dynamic raw);
@protected @protected
RustStreamSink<RsProcessStreamData> RustStreamSink<RsProcessStreamData>
@ -70,7 +70,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
MyMethod dco_decode_my_method(dynamic raw); MyMethod dco_decode_my_method(dynamic raw);
@protected @protected
Map<String, String>? dco_decode_opt_Map_String_String(dynamic raw); Map<String, String>? dco_decode_opt_Map_String_String_None(dynamic raw);
@protected @protected
String? dco_decode_opt_String(dynamic raw); String? dco_decode_opt_String(dynamic raw);
@ -118,7 +118,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
AnyhowException sse_decode_AnyhowException(SseDeserializer deserializer); AnyhowException sse_decode_AnyhowException(SseDeserializer deserializer);
@protected @protected
Map<String, String> sse_decode_Map_String_String( Map<String, String> sse_decode_Map_String_String_None(
SseDeserializer deserializer); SseDeserializer deserializer);
@protected @protected
@ -165,7 +165,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
MyMethod sse_decode_my_method(SseDeserializer deserializer); MyMethod sse_decode_my_method(SseDeserializer deserializer);
@protected @protected
Map<String, String>? sse_decode_opt_Map_String_String( Map<String, String>? sse_decode_opt_Map_String_String_None(
SseDeserializer deserializer); SseDeserializer deserializer);
@protected @protected
@ -222,8 +222,8 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
} }
@protected @protected
ffi.Pointer<wire_cst_list_record_string_string> cst_encode_Map_String_String( ffi.Pointer<wire_cst_list_record_string_string>
Map<String, String> raw) { cst_encode_Map_String_String_None(Map<String, String> raw) {
// Codec=Cst (C-struct based), see doc to use other codecs // Codec=Cst (C-struct based), see doc to use other codecs
return cst_encode_list_record_string_string( return cst_encode_list_record_string_string(
raw.entries.map((e) => (e.key, e.value)).toList()); raw.entries.map((e) => (e.key, e.value)).toList());
@ -309,9 +309,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected @protected
ffi.Pointer<wire_cst_list_record_string_string> ffi.Pointer<wire_cst_list_record_string_string>
cst_encode_opt_Map_String_String(Map<String, String>? raw) { cst_encode_opt_Map_String_String_None(Map<String, String>? raw) {
// Codec=Cst (C-struct based), see doc to use other codecs // Codec=Cst (C-struct based), see doc to use other codecs
return raw == null ? ffi.nullptr : cst_encode_Map_String_String(raw); return raw == null ? ffi.nullptr : cst_encode_Map_String_String_None(raw);
} }
@protected @protected
@ -381,7 +381,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
void cst_api_fill_to_wire_rust_http_response( void cst_api_fill_to_wire_rust_http_response(
RustHttpResponse apiObj, wire_cst_rust_http_response wireObj) { RustHttpResponse apiObj, wire_cst_rust_http_response wireObj) {
wireObj.status_code = cst_encode_u_16(apiObj.statusCode); wireObj.status_code = cst_encode_u_16(apiObj.statusCode);
wireObj.headers = cst_encode_Map_String_String(apiObj.headers); wireObj.headers = cst_encode_Map_String_String_None(apiObj.headers);
wireObj.url = cst_encode_String(apiObj.url); wireObj.url = cst_encode_String(apiObj.url);
wireObj.content_length = wireObj.content_length =
cst_encode_opt_box_autoadd_u_64(apiObj.contentLength); cst_encode_opt_box_autoadd_u_64(apiObj.contentLength);
@ -422,7 +422,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
AnyhowException self, SseSerializer serializer); AnyhowException self, SseSerializer serializer);
@protected @protected
void sse_encode_Map_String_String( void sse_encode_Map_String_String_None(
Map<String, String> self, SseSerializer serializer); Map<String, String> self, SseSerializer serializer);
@protected @protected
@ -469,7 +469,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
void sse_encode_my_method(MyMethod self, SseSerializer serializer); void sse_encode_my_method(MyMethod self, SseSerializer serializer);
@protected @protected
void sse_encode_opt_Map_String_String( void sse_encode_opt_Map_String_String_None(
Map<String, String>? self, SseSerializer serializer); Map<String, String>? self, SseSerializer serializer);
@protected @protected

View File

@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.8.0. // @generated by `flutter_rust_bridge`@ 2.9.0.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import

View File

@ -11,8 +11,7 @@ import 'app.dart';
void main(List<String> args) async { void main(List<String> args) async {
// webview window // webview window
if (runWebViewTitleBarWidget(args, if (runWebViewTitleBarWidget(args,
backgroundColor: const Color.fromRGBO(19, 36, 49, 1), backgroundColor: const Color.fromRGBO(19, 36, 49, 1), builder: _defaultWebviewTitleBar)) {
builder: _defaultWebviewTitleBar)) {
return; return;
} }
WidgetsFlutterBinding.ensureInitialized(); WidgetsFlutterBinding.ensureInitialized();
@ -53,8 +52,7 @@ class App extends HookConsumerWidget {
supportedLocales: S.delegate.supportedLocales, supportedLocales: S.delegate.supportedLocales,
builder: (context, child) { builder: (context, child) {
return MediaQuery( return MediaQuery(
data: data: MediaQuery.of(context).copyWith(textScaler: TextScaler.noScaling),
MediaQuery.of(context).copyWith(textScaler: TextScaler.noScaling),
child: child ?? const SizedBox(), child: child ?? const SizedBox(),
); );
}, },
@ -69,8 +67,7 @@ class App extends HookConsumerWidget {
buttonTheme: ButtonThemeData( buttonTheme: ButtonThemeData(
defaultButtonStyle: ButtonStyle( defaultButtonStyle: ButtonStyle(
shape: WidgetStateProperty.all(RoundedRectangleBorder( shape: WidgetStateProperty.all(RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4), borderRadius: BorderRadius.circular(4), side: BorderSide(color: Colors.white.withValues(alpha: .01)))),
side: BorderSide(color: Colors.white.withValues(alpha: .01)))),
))), ))),
locale: appState.appLocale, locale: appState.appLocale,
debugShowCheckedModeBanner: false, debugShowCheckedModeBanner: false,

View File

@ -43,7 +43,7 @@ dependencies:
flutter_tilt: ^3.0.0 flutter_tilt: ^3.0.0
card_swiper: ^3.0.1 card_swiper: ^3.0.1
ffi: ^2.1.0 ffi: ^2.1.0
flutter_rust_bridge: ^2.7.0 flutter_rust_bridge: 2.9.0
freezed_annotation: ^2.4.1 freezed_annotation: ^2.4.1
meta: ^1.9.1 meta: ^1.9.1
hexcolor: ^3.0.1 hexcolor: ^3.0.1

View File

@ -11,7 +11,7 @@ strip = "debuginfo"
crate-type = ["cdylib", "staticlib"] crate-type = ["cdylib", "staticlib"]
[dependencies] [dependencies]
flutter_rust_bridge = "=2.8.0" flutter_rust_bridge = "=2.9.0"
tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros", "process"] } tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros", "process"] }
futures = { version = "0.3", default-features = false, features = ["executor"] } futures = { version = "0.3", default-features = false, features = ["executor"] }
url = "2.5" url = "2.5"

View File

@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.8.0. // @generated by `flutter_rust_bridge`@ 2.9.0.
#![allow( #![allow(
non_camel_case_types, non_camel_case_types,
@ -36,7 +36,7 @@ flutter_rust_bridge::frb_generated_boilerplate!(
default_rust_opaque = RustOpaqueNom, default_rust_opaque = RustOpaqueNom,
default_rust_auto_opaque = RustAutoOpaqueNom, default_rust_auto_opaque = RustAutoOpaqueNom,
); );
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.8.0"; pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.9.0";
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 1832496273; pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 1832496273;
// Section: executor // Section: executor
@ -1144,7 +1144,7 @@ impl SseEncode for () {
#[cfg(not(target_family = "wasm"))] #[cfg(not(target_family = "wasm"))]
mod io { mod io {
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.8.0. // @generated by `flutter_rust_bridge`@ 2.9.0.
// Section: imports // Section: imports