bump: flutter_rust_bridge 2.0.0-dev.32

This commit is contained in:
xkeyC 2024-04-16 19:29:19 +08:00
parent 90bb8e6611
commit 90ff0025d6
11 changed files with 26 additions and 20 deletions

View File

@ -1,6 +1,6 @@
class ConstConf { class ConstConf {
static const String appVersion = "2.10.10 Beta"; static const String appVersion = "2.11.0 Beta";
static const int appVersionCode = 45; static const int appVersionCode = 46;
static const String appVersionDate = "2024-03-30"; static const String appVersionDate = "2024-03-30";
static const gameChannels = ["LIVE", "PTU", "EPTU", "TECH-PREVIEW"]; static const gameChannels = ["LIVE", "PTU", "EPTU", "TECH-PREVIEW"];
static const isMSE = static const isMSE =

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.0.0-dev.31. // Generated by `flutter_rust_bridge`@ 2.0.0-dev.32.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
@ -42,4 +42,5 @@ enum MyMethod {
trace, trace,
connect, connect,
patch, patch,
;
} }

View File

@ -1,12 +1,12 @@
// 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.0.0-dev.31. // Generated by `flutter_rust_bridge`@ 2.0.0-dev.32.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
import '../frb_generated.dart'; import '../frb_generated.dart';
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
Future<Stream<String>> startProcess( Stream<String> startProcess(
{required String executable, {required String executable,
required List<String> arguments, required List<String> arguments,
required String workingDirectory, required String workingDirectory,

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.0.0-dev.31. // Generated by `flutter_rust_bridge`@ 2.0.0-dev.32.
// 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
@ -53,7 +53,10 @@ class RustLib extends BaseEntrypoint<RustLibApi, RustLibApiImpl, RustLibWire> {
kDefaultExternalLibraryLoaderConfig; kDefaultExternalLibraryLoaderConfig;
@override @override
String get codegenVersion => '2.0.0-dev.31'; String get codegenVersion => '2.0.0-dev.32';
@override
int get rustContentHash => 593879172;
static const kDefaultExternalLibraryLoaderConfig = static const kDefaultExternalLibraryLoaderConfig =
ExternalLibraryLoaderConfig( ExternalLibraryLoaderConfig(
@ -79,7 +82,7 @@ abstract class RustLibApi extends BaseApi {
Future<void> setDefaultHeader( Future<void> setDefaultHeader(
{required Map<String, String> headers, dynamic hint}); {required Map<String, String> headers, dynamic hint});
Future<Stream<String>> startProcess( Stream<String> startProcess(
{required String executable, {required String executable,
required List<String> arguments, required List<String> arguments,
required String workingDirectory, required String workingDirectory,
@ -198,13 +201,13 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
); );
@override @override
Future<Stream<String>> startProcess( Stream<String> startProcess(
{required String executable, {required String executable,
required List<String> arguments, required List<String> arguments,
required String workingDirectory, required String workingDirectory,
dynamic hint}) async { dynamic hint}) {
final streamSink = RustStreamSink<String>(); final streamSink = RustStreamSink<String>();
await handler.executeNormal(NormalTask( unawaited(handler.executeNormal(NormalTask(
callFfi: (port_) { callFfi: (port_) {
var arg0 = cst_encode_String(executable); var arg0 = cst_encode_String(executable);
var arg1 = cst_encode_list_String(arguments); var arg1 = cst_encode_list_String(arguments);
@ -220,7 +223,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
argValues: [executable, arguments, workingDirectory, streamSink], argValues: [executable, arguments, workingDirectory, streamSink],
apiImpl: this, apiImpl: this,
hint: hint, hint: hint,
)); )));
return streamSink.stream; return streamSink.stream;
} }

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.0.0-dev.31. // Generated by `flutter_rust_bridge`@ 2.0.0-dev.32.
// 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

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.0.0-dev.31. // Generated by `flutter_rust_bridge`@ 2.0.0-dev.32.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
@ -13,6 +13,7 @@ enum MyHttpVersion {
http2, http2,
http3, http3,
httpUnknown, httpUnknown,
;
} }
class RustHttpResponse { class RustHttpResponse {

View File

@ -98,7 +98,7 @@ class Aria2cModel extends _$Aria2cModel {
dPrint("trackerList === $trackerList"); dPrint("trackerList === $trackerList");
dPrint("Aria2cManager .----- aria2c start $port------"); dPrint("Aria2cManager .----- aria2c start $port------");
final stream = await rs_process.startProcess( final stream = rs_process.startProcess(
executable: exePath, executable: exePath,
arguments: [ arguments: [
"-V", "-V",

View File

@ -62,7 +62,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.0.0-dev.31 flutter_rust_bridge: ^2.0.0-dev.32
freezed_annotation: ^2.4.1 freezed_annotation: ^2.4.1
meta: ^1.9.1 meta: ^1.9.1
win32: ^5.0.9 win32: ^5.0.9

View File

@ -11,7 +11,7 @@ strip = "debuginfo"
crate-type = ["cdylib", "staticlib"] crate-type = ["cdylib", "staticlib"]
[dependencies] [dependencies]
flutter_rust_bridge = "=2.0.0-dev.31" flutter_rust_bridge = "=2.0.0-dev.32"
tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros", "process"] } tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros", "process"] }
url = "2.5" url = "2.5"
async-std = "1.12" async-std = "1.12"

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.0.0-dev.31. // Generated by `flutter_rust_bridge`@ 2.0.0-dev.32.
// Section: imports // Section: imports

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.0.0-dev.31. // Generated by `flutter_rust_bridge`@ 2.0.0-dev.32.
#![allow( #![allow(
non_camel_case_types, non_camel_case_types,
@ -30,7 +30,8 @@ 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.0.0-dev.31"; pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.32";
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 593879172;
// Section: executor // Section: executor