mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-23 07:43:42 +08:00
bump: flutter_rust_bridge 40
This commit is contained in:
parent
ae14a26f08
commit
f88f73d3a8
@ -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.39.
|
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.40.
|
||||||
|
|
||||||
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
||||||
|
|
||||||
|
@ -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.39.
|
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.40.
|
||||||
|
|
||||||
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
||||||
|
|
||||||
|
@ -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.39.
|
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.40.
|
||||||
|
|
||||||
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
||||||
|
|
||||||
|
@ -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.39.
|
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.40.
|
||||||
|
|
||||||
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
||||||
|
|
||||||
|
@ -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.39.
|
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.40.
|
||||||
|
|
||||||
// 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
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ class RustLib extends BaseEntrypoint<RustLibApi, RustLibApiImpl, RustLibWire> {
|
|||||||
kDefaultExternalLibraryLoaderConfig;
|
kDefaultExternalLibraryLoaderConfig;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get codegenVersion => '2.0.0-dev.39';
|
String get codegenVersion => '2.0.0-dev.40';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get rustContentHash => 1832496273;
|
int get rustContentHash => 1832496273;
|
||||||
|
@ -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.39.
|
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.40.
|
||||||
|
|
||||||
// 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
|
||||||
|
|
||||||
|
@ -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.39.
|
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.40.
|
||||||
|
|
||||||
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
// 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.39.
|
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.40.
|
||||||
|
|
||||||
// Section: imports
|
// Section: imports
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt};
|
use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt};
|
||||||
use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable};
|
use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable};
|
||||||
use flutter_rust_bridge::{Handler, IntoIntoDart};
|
use flutter_rust_bridge::{Handler, IntoIntoDart};
|
||||||
|
|
||||||
// Section: boilerplate
|
// Section: boilerplate
|
||||||
|
@ -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.39.
|
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.40.
|
||||||
|
|
||||||
#![allow(
|
#![allow(
|
||||||
non_camel_case_types,
|
non_camel_case_types,
|
||||||
@ -16,13 +16,17 @@
|
|||||||
clippy::too_many_arguments,
|
clippy::too_many_arguments,
|
||||||
clippy::match_single_binding,
|
clippy::match_single_binding,
|
||||||
clippy::clone_on_copy,
|
clippy::clone_on_copy,
|
||||||
clippy::let_unit_value
|
clippy::let_unit_value,
|
||||||
|
clippy::deref_addrof,
|
||||||
|
clippy::explicit_auto_deref,
|
||||||
|
clippy::borrow_deref_ref,
|
||||||
|
clippy::needless_borrow
|
||||||
)]
|
)]
|
||||||
|
|
||||||
// Section: imports
|
// Section: imports
|
||||||
|
|
||||||
use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt};
|
use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt};
|
||||||
use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable};
|
use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable};
|
||||||
use flutter_rust_bridge::{Handler, IntoIntoDart};
|
use flutter_rust_bridge::{Handler, IntoIntoDart};
|
||||||
|
|
||||||
// Section: boilerplate
|
// Section: boilerplate
|
||||||
@ -32,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.0.0-dev.39";
|
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.40";
|
||||||
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
|
||||||
@ -54,9 +58,12 @@ fn wire__crate__api__asar_api__get_rsi_launcher_asar_data_impl(
|
|||||||
move || {
|
move || {
|
||||||
let api_asar_path = asar_path.cst_decode();
|
let api_asar_path = asar_path.cst_decode();
|
||||||
move |context| async move {
|
move |context| async move {
|
||||||
transform_result_dco(
|
transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>(
|
||||||
(move || async move {
|
(move || async move {
|
||||||
crate::api::asar_api::get_rsi_launcher_asar_data(&api_asar_path).await
|
let output_ok =
|
||||||
|
crate::api::asar_api::get_rsi_launcher_asar_data(&api_asar_path)
|
||||||
|
.await?;
|
||||||
|
Ok(output_ok)
|
||||||
})()
|
})()
|
||||||
.await,
|
.await,
|
||||||
)
|
)
|
||||||
@ -79,13 +86,14 @@ fn wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js_impl(
|
|||||||
let api_that = that.cst_decode();
|
let api_that = that.cst_decode();
|
||||||
let api_content = content.cst_decode();
|
let api_content = content.cst_decode();
|
||||||
move |context| async move {
|
move |context| async move {
|
||||||
transform_result_dco(
|
transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>(
|
||||||
(move || async move {
|
(move || async move {
|
||||||
crate::api::asar_api::RsiLauncherAsarData::write_main_js(
|
let output_ok = crate::api::asar_api::RsiLauncherAsarData::write_main_js(
|
||||||
&api_that,
|
&api_that,
|
||||||
api_content,
|
api_content,
|
||||||
)
|
)
|
||||||
.await
|
.await?;
|
||||||
|
Ok(output_ok)
|
||||||
})()
|
})()
|
||||||
.await,
|
.await,
|
||||||
)
|
)
|
||||||
@ -106,8 +114,11 @@ fn wire__crate__api__http_api__dns_lookup_ips_impl(
|
|||||||
move || {
|
move || {
|
||||||
let api_host = host.cst_decode();
|
let api_host = host.cst_decode();
|
||||||
move |context| async move {
|
move |context| async move {
|
||||||
transform_result_dco(
|
transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>(
|
||||||
(move || async move { crate::api::http_api::dns_lookup_ips(api_host).await })()
|
(move || async move {
|
||||||
|
let output_ok = crate::api::http_api::dns_lookup_ips(api_host).await?;
|
||||||
|
Ok(output_ok)
|
||||||
|
})()
|
||||||
.await,
|
.await,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -127,8 +138,11 @@ fn wire__crate__api__http_api__dns_lookup_txt_impl(
|
|||||||
move || {
|
move || {
|
||||||
let api_host = host.cst_decode();
|
let api_host = host.cst_decode();
|
||||||
move |context| async move {
|
move |context| async move {
|
||||||
transform_result_dco(
|
transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>(
|
||||||
(move || async move { crate::api::http_api::dns_lookup_txt(api_host).await })()
|
(move || async move {
|
||||||
|
let output_ok = crate::api::http_api::dns_lookup_txt(api_host).await?;
|
||||||
|
Ok(output_ok)
|
||||||
|
})()
|
||||||
.await,
|
.await,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -156,16 +170,17 @@ fn wire__crate__api__http_api__fetch_impl(
|
|||||||
let api_input_data = input_data.cst_decode();
|
let api_input_data = input_data.cst_decode();
|
||||||
let api_with_ip_address = with_ip_address.cst_decode();
|
let api_with_ip_address = with_ip_address.cst_decode();
|
||||||
move |context| async move {
|
move |context| async move {
|
||||||
transform_result_dco(
|
transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>(
|
||||||
(move || async move {
|
(move || async move {
|
||||||
crate::api::http_api::fetch(
|
let output_ok = crate::api::http_api::fetch(
|
||||||
api_method,
|
api_method,
|
||||||
api_url,
|
api_url,
|
||||||
api_headers,
|
api_headers,
|
||||||
api_input_data,
|
api_input_data,
|
||||||
api_with_ip_address,
|
api_with_ip_address,
|
||||||
)
|
)
|
||||||
.await
|
.await?;
|
||||||
|
Ok(output_ok)
|
||||||
})()
|
})()
|
||||||
.await,
|
.await,
|
||||||
)
|
)
|
||||||
@ -186,10 +201,11 @@ fn wire__crate__api__http_api__set_default_header_impl(
|
|||||||
move || {
|
move || {
|
||||||
let api_headers = headers.cst_decode();
|
let api_headers = headers.cst_decode();
|
||||||
move |context| {
|
move |context| {
|
||||||
transform_result_dco((move || {
|
transform_result_dco::<_, _, ()>((move || {
|
||||||
Result::<_, ()>::Ok({
|
let output_ok = Result::<_, ()>::Ok({
|
||||||
crate::api::http_api::set_default_header(api_headers);
|
crate::api::http_api::set_default_header(api_headers);
|
||||||
})
|
})?;
|
||||||
|
Ok(output_ok)
|
||||||
})())
|
})())
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -219,9 +235,9 @@ fn wire__crate__api__rs_process__start_impl(
|
|||||||
let api_working_directory = working_directory.cst_decode();
|
let api_working_directory = working_directory.cst_decode();
|
||||||
let api_stream_sink = stream_sink.cst_decode();
|
let api_stream_sink = stream_sink.cst_decode();
|
||||||
move |context| async move {
|
move |context| async move {
|
||||||
transform_result_dco(
|
transform_result_dco::<_, _, ()>(
|
||||||
(move || async move {
|
(move || async move {
|
||||||
Result::<_, ()>::Ok({
|
let output_ok = Result::<_, ()>::Ok({
|
||||||
crate::api::rs_process::start(
|
crate::api::rs_process::start(
|
||||||
&api_executable,
|
&api_executable,
|
||||||
api_arguments,
|
api_arguments,
|
||||||
@ -229,7 +245,8 @@ fn wire__crate__api__rs_process__start_impl(
|
|||||||
api_stream_sink,
|
api_stream_sink,
|
||||||
)
|
)
|
||||||
.await;
|
.await;
|
||||||
})
|
})?;
|
||||||
|
Ok(output_ok)
|
||||||
})()
|
})()
|
||||||
.await,
|
.await,
|
||||||
)
|
)
|
||||||
@ -252,11 +269,12 @@ fn wire__crate__api__rs_process__write_impl(
|
|||||||
let api_rs_pid = rs_pid.cst_decode();
|
let api_rs_pid = rs_pid.cst_decode();
|
||||||
let api_data = data.cst_decode();
|
let api_data = data.cst_decode();
|
||||||
move |context| async move {
|
move |context| async move {
|
||||||
transform_result_dco(
|
transform_result_dco::<_, _, ()>(
|
||||||
(move || async move {
|
(move || async move {
|
||||||
Result::<_, ()>::Ok({
|
let output_ok = Result::<_, ()>::Ok({
|
||||||
crate::api::rs_process::write(&api_rs_pid, api_data).await;
|
crate::api::rs_process::write(&api_rs_pid, api_data).await;
|
||||||
})
|
})?;
|
||||||
|
Ok(output_ok)
|
||||||
})()
|
})()
|
||||||
.await,
|
.await,
|
||||||
)
|
)
|
||||||
@ -283,14 +301,17 @@ fn wire__crate__api__win32_api__send_notify_impl(
|
|||||||
let api_app_name = app_name.cst_decode();
|
let api_app_name = app_name.cst_decode();
|
||||||
let api_app_id = app_id.cst_decode();
|
let api_app_id = app_id.cst_decode();
|
||||||
move |context| {
|
move |context| {
|
||||||
transform_result_dco((move || {
|
transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>(
|
||||||
crate::api::win32_api::send_notify(
|
(move || {
|
||||||
|
let output_ok = crate::api::win32_api::send_notify(
|
||||||
api_summary,
|
api_summary,
|
||||||
api_body,
|
api_body,
|
||||||
api_app_name,
|
api_app_name,
|
||||||
api_app_id,
|
api_app_id,
|
||||||
|
)?;
|
||||||
|
Ok(output_ok)
|
||||||
|
})(),
|
||||||
)
|
)
|
||||||
})())
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
@ -308,9 +329,13 @@ fn wire__crate__api__win32_api__set_foreground_window_impl(
|
|||||||
move || {
|
move || {
|
||||||
let api_window_name = window_name.cst_decode();
|
let api_window_name = window_name.cst_decode();
|
||||||
move |context| {
|
move |context| {
|
||||||
transform_result_dco((move || {
|
transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>(
|
||||||
crate::api::win32_api::set_foreground_window(&api_window_name)
|
(move || {
|
||||||
})())
|
let output_ok =
|
||||||
|
crate::api::win32_api::set_foreground_window(&api_window_name)?;
|
||||||
|
Ok(output_ok)
|
||||||
|
})(),
|
||||||
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user