bump: flutter_rust_bridge 2.0.0-dev.37

This commit is contained in:
xkeyC 2024-06-04 20:29:31 +08:00
parent 56d4988cfc
commit 20227fbd4b
10 changed files with 56 additions and 98 deletions

View File

@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.36.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.37.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
@ -7,9 +7,9 @@ import '../frb_generated.dart';
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
Future<RsiLauncherAsarData> getRsiLauncherAsarData(
{required String asarPath, dynamic hint}) =>
{required String asarPath}) =>
RustLib.instance.api
.crateApiAsarApiGetRsiLauncherAsarData(asarPath: asarPath, hint: hint);
.crateApiAsarApiGetRsiLauncherAsarData(asarPath: asarPath);
class RsiLauncherAsarData {
final String asarPath;
@ -22,9 +22,9 @@ class RsiLauncherAsarData {
required this.mainJsContent,
});
Future<void> writeMainJs({required List<int> content, dynamic hint}) =>
Future<void> writeMainJs({required List<int> content}) =>
RustLib.instance.api.crateApiAsarApiRsiLauncherAsarDataWriteMainJs(
that: this, content: content, hint: hint);
that: this, content: content);
@override
int get hashCode =>

View File

@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.36.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.37.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
@ -7,31 +7,29 @@ import '../frb_generated.dart';
import '../http_package.dart';
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
Future<void> setDefaultHeader(
{required Map<String, String> headers, dynamic hint}) =>
RustLib.instance.api
.crateApiHttpApiSetDefaultHeader(headers: headers, hint: hint);
// The functions `_my_method_to_hyper_method` are not `pub`, thus are ignored.
Future<void> setDefaultHeader({required Map<String, String> headers}) =>
RustLib.instance.api.crateApiHttpApiSetDefaultHeader(headers: headers);
Future<RustHttpResponse> fetch(
{required MyMethod method,
required String url,
Map<String, String>? headers,
Uint8List? inputData,
String? withIpAddress,
dynamic hint}) =>
String? withIpAddress}) =>
RustLib.instance.api.crateApiHttpApiFetch(
method: method,
url: url,
headers: headers,
inputData: inputData,
withIpAddress: withIpAddress,
hint: hint);
withIpAddress: withIpAddress);
Future<List<String>> dnsLookupTxt({required String host, dynamic hint}) =>
RustLib.instance.api.crateApiHttpApiDnsLookupTxt(host: host, hint: hint);
Future<List<String>> dnsLookupTxt({required String host}) =>
RustLib.instance.api.crateApiHttpApiDnsLookupTxt(host: host);
Future<List<String>> dnsLookupIps({required String host, dynamic hint}) =>
RustLib.instance.api.crateApiHttpApiDnsLookupIps(host: host, hint: hint);
Future<List<String>> dnsLookupIps({required String host}) =>
RustLib.instance.api.crateApiHttpApiDnsLookupIps(host: host);
enum MyMethod {
options,

View File

@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.36.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.37.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
@ -7,21 +7,19 @@ import '../frb_generated.dart';
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
// The type `RsProcess` is not used by any `pub` functions, thus it is ignored.
// The functions `_process_output`, `clone` are not `pub`, thus are ignored.
Stream<RsProcessStreamData> start(
{required String executable,
required List<String> arguments,
required String workingDirectory,
dynamic hint}) =>
required String workingDirectory}) =>
RustLib.instance.api.crateApiRsProcessStart(
executable: executable,
arguments: arguments,
workingDirectory: workingDirectory,
hint: hint);
workingDirectory: workingDirectory);
Future<void> write({required int rsPid, required String data, dynamic hint}) =>
RustLib.instance.api
.crateApiRsProcessWrite(rsPid: rsPid, data: data, hint: hint);
Future<void> write({required int rsPid, required String data}) =>
RustLib.instance.api.crateApiRsProcessWrite(rsPid: rsPid, data: data);
class RsProcessStreamData {
final RsProcessStreamDataType dataType;

View File

@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.36.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.37.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
@ -7,18 +7,10 @@ import '../frb_generated.dart';
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
Future<void> sendNotify(
{String? summary,
String? body,
String? appName,
String? appId,
dynamic hint}) =>
{String? summary, String? body, String? appName, String? appId}) =>
RustLib.instance.api.crateApiWin32ApiSendNotify(
summary: summary,
body: body,
appName: appName,
appId: appId,
hint: hint);
summary: summary, body: body, appName: appName, appId: appId);
Future<bool> setForegroundWindow({required String windowName, dynamic hint}) =>
RustLib.instance.api.crateApiWin32ApiSetForegroundWindow(
windowName: windowName, hint: hint);
Future<bool> setForegroundWindow({required String windowName}) =>
RustLib.instance.api
.crateApiWin32ApiSetForegroundWindow(windowName: windowName);

View File

@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.36.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.37.
// 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
@ -55,7 +55,7 @@ class RustLib extends BaseEntrypoint<RustLibApi, RustLibApiImpl, RustLibWire> {
kDefaultExternalLibraryLoaderConfig;
@override
String get codegenVersion => '2.0.0-dev.36';
String get codegenVersion => '2.0.0-dev.37';
@override
int get rustContentHash => 1832496273;
@ -70,48 +70,38 @@ class RustLib extends BaseEntrypoint<RustLibApi, RustLibApiImpl, RustLibWire> {
abstract class RustLibApi extends BaseApi {
Future<RsiLauncherAsarData> crateApiAsarApiGetRsiLauncherAsarData(
{required String asarPath, dynamic hint});
{required String asarPath});
Future<void> crateApiAsarApiRsiLauncherAsarDataWriteMainJs(
{required RsiLauncherAsarData that,
required List<int> content,
dynamic hint});
{required RsiLauncherAsarData that, required List<int> content});
Future<List<String>> crateApiHttpApiDnsLookupIps(
{required String host, dynamic hint});
Future<List<String>> crateApiHttpApiDnsLookupIps({required String host});
Future<List<String>> crateApiHttpApiDnsLookupTxt(
{required String host, dynamic hint});
Future<List<String>> crateApiHttpApiDnsLookupTxt({required String host});
Future<RustHttpResponse> crateApiHttpApiFetch(
{required MyMethod method,
required String url,
Map<String, String>? headers,
Uint8List? inputData,
String? withIpAddress,
dynamic hint});
String? withIpAddress});
Future<void> crateApiHttpApiSetDefaultHeader(
{required Map<String, String> headers, dynamic hint});
{required Map<String, String> headers});
Stream<RsProcessStreamData> crateApiRsProcessStart(
{required String executable,
required List<String> arguments,
required String workingDirectory,
dynamic hint});
required String workingDirectory});
Future<void> crateApiRsProcessWrite(
{required int rsPid, required String data, dynamic hint});
{required int rsPid, required String data});
Future<void> crateApiWin32ApiSendNotify(
{String? summary,
String? body,
String? appName,
String? appId,
dynamic hint});
{String? summary, String? body, String? appName, String? appId});
Future<bool> crateApiWin32ApiSetForegroundWindow(
{required String windowName, dynamic hint});
{required String windowName});
}
class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@ -124,7 +114,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@override
Future<RsiLauncherAsarData> crateApiAsarApiGetRsiLauncherAsarData(
{required String asarPath, dynamic hint}) {
{required String asarPath}) {
return handler.executeNormal(NormalTask(
callFfi: (port_) {
var arg0 = cst_encode_String(asarPath);
@ -138,7 +128,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
constMeta: kCrateApiAsarApiGetRsiLauncherAsarDataConstMeta,
argValues: [asarPath],
apiImpl: this,
hint: hint,
));
}
@ -150,9 +139,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@override
Future<void> crateApiAsarApiRsiLauncherAsarDataWriteMainJs(
{required RsiLauncherAsarData that,
required List<int> content,
dynamic hint}) {
{required RsiLauncherAsarData that, required List<int> content}) {
return handler.executeNormal(NormalTask(
callFfi: (port_) {
var arg0 = cst_encode_box_autoadd_rsi_launcher_asar_data(that);
@ -168,7 +155,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
constMeta: kCrateApiAsarApiRsiLauncherAsarDataWriteMainJsConstMeta,
argValues: [that, content],
apiImpl: this,
hint: hint,
));
}
@ -179,8 +165,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
);
@override
Future<List<String>> crateApiHttpApiDnsLookupIps(
{required String host, dynamic hint}) {
Future<List<String>> crateApiHttpApiDnsLookupIps({required String host}) {
return handler.executeNormal(NormalTask(
callFfi: (port_) {
var arg0 = cst_encode_String(host);
@ -193,7 +178,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
constMeta: kCrateApiHttpApiDnsLookupIpsConstMeta,
argValues: [host],
apiImpl: this,
hint: hint,
));
}
@ -204,8 +188,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
);
@override
Future<List<String>> crateApiHttpApiDnsLookupTxt(
{required String host, dynamic hint}) {
Future<List<String>> crateApiHttpApiDnsLookupTxt({required String host}) {
return handler.executeNormal(NormalTask(
callFfi: (port_) {
var arg0 = cst_encode_String(host);
@ -218,7 +201,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
constMeta: kCrateApiHttpApiDnsLookupTxtConstMeta,
argValues: [host],
apiImpl: this,
hint: hint,
));
}
@ -234,8 +216,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
required String url,
Map<String, String>? headers,
Uint8List? inputData,
String? withIpAddress,
dynamic hint}) {
String? withIpAddress}) {
return handler.executeNormal(NormalTask(
callFfi: (port_) {
var arg0 = cst_encode_my_method(method);
@ -253,7 +234,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
constMeta: kCrateApiHttpApiFetchConstMeta,
argValues: [method, url, headers, inputData, withIpAddress],
apiImpl: this,
hint: hint,
));
}
@ -264,7 +244,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@override
Future<void> crateApiHttpApiSetDefaultHeader(
{required Map<String, String> headers, dynamic hint}) {
{required Map<String, String> headers}) {
return handler.executeNormal(NormalTask(
callFfi: (port_) {
var arg0 = cst_encode_Map_String_String(headers);
@ -277,7 +257,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
constMeta: kCrateApiHttpApiSetDefaultHeaderConstMeta,
argValues: [headers],
apiImpl: this,
hint: hint,
));
}
@ -291,8 +270,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
Stream<RsProcessStreamData> crateApiRsProcessStart(
{required String executable,
required List<String> arguments,
required String workingDirectory,
dynamic hint}) {
required String workingDirectory}) {
final streamSink = RustStreamSink<RsProcessStreamData>();
unawaited(handler.executeNormal(NormalTask(
callFfi: (port_) {
@ -310,7 +288,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
constMeta: kCrateApiRsProcessStartConstMeta,
argValues: [executable, arguments, workingDirectory, streamSink],
apiImpl: this,
hint: hint,
)));
return streamSink.stream;
}
@ -322,7 +299,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@override
Future<void> crateApiRsProcessWrite(
{required int rsPid, required String data, dynamic hint}) {
{required int rsPid, required String data}) {
return handler.executeNormal(NormalTask(
callFfi: (port_) {
var arg0 = cst_encode_u_32(rsPid);
@ -336,7 +313,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
constMeta: kCrateApiRsProcessWriteConstMeta,
argValues: [rsPid, data],
apiImpl: this,
hint: hint,
));
}
@ -347,11 +323,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@override
Future<void> crateApiWin32ApiSendNotify(
{String? summary,
String? body,
String? appName,
String? appId,
dynamic hint}) {
{String? summary, String? body, String? appName, String? appId}) {
return handler.executeNormal(NormalTask(
callFfi: (port_) {
var arg0 = cst_encode_opt_String(summary);
@ -368,7 +340,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
constMeta: kCrateApiWin32ApiSendNotifyConstMeta,
argValues: [summary, body, appName, appId],
apiImpl: this,
hint: hint,
));
}
@ -379,7 +350,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@override
Future<bool> crateApiWin32ApiSetForegroundWindow(
{required String windowName, dynamic hint}) {
{required String windowName}) {
return handler.executeNormal(NormalTask(
callFfi: (port_) {
var arg0 = cst_encode_String(windowName);
@ -393,7 +364,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
constMeta: kCrateApiWin32ApiSetForegroundWindowConstMeta,
argValues: [windowName],
apiImpl: this,
hint: hint,
));
}

View File

@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.36.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.37.
// 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

View File

@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.36.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.37.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import

View File

@ -42,7 +42,7 @@ dependencies:
flutter_tilt: ^3.0.0
card_swiper: ^3.0.1
ffi: ^2.1.0
flutter_rust_bridge: ^2.0.0-dev.36
flutter_rust_bridge: 2.0.0-dev.37
freezed_annotation: ^2.4.1
meta: ^1.9.1
hexcolor: ^3.0.1

View File

@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.36.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.37.
// Section: imports

View File

@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.36.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.37.
#![allow(
non_camel_case_types,
@ -32,7 +32,7 @@ flutter_rust_bridge::frb_generated_boilerplate!(
default_rust_opaque = RustOpaqueNom,
default_rust_auto_opaque = RustAutoOpaqueNom,
);
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.36";
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.37";
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 1832496273;
// Section: executor