bump: flutter_rust_bridge 40

This commit is contained in:
xkeyC 2024-06-17 19:16:09 +08:00
parent ae14a26f08
commit f88f73d3a8
9 changed files with 73 additions and 48 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.39.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.40.
// 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.
// 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

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.39.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.40.
// 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.
// 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

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.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
@ -56,7 +56,7 @@ class RustLib extends BaseEntrypoint<RustLibApi, RustLibApiImpl, RustLibWire> {
kDefaultExternalLibraryLoaderConfig;
@override
String get codegenVersion => '2.0.0-dev.39';
String get codegenVersion => '2.0.0-dev.40';
@override
int get rustContentHash => 1832496273;

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.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

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.39.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.40.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import

View File

@ -1,11 +1,11 @@
// 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
use super::*;
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};
// Section: boilerplate

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.39.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.40.
#![allow(
non_camel_case_types,
@ -16,13 +16,17 @@
clippy::too_many_arguments,
clippy::match_single_binding,
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
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};
// Section: boilerplate
@ -32,7 +36,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.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;
// Section: executor
@ -54,9 +58,12 @@ fn wire__crate__api__asar_api__get_rsi_launcher_asar_data_impl(
move || {
let api_asar_path = asar_path.cst_decode();
move |context| async move {
transform_result_dco(
transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>(
(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,
)
@ -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_content = content.cst_decode();
move |context| async move {
transform_result_dco(
transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>(
(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_content,
)
.await
.await?;
Ok(output_ok)
})()
.await,
)
@ -106,8 +114,11 @@ fn wire__crate__api__http_api__dns_lookup_ips_impl(
move || {
let api_host = host.cst_decode();
move |context| async move {
transform_result_dco(
(move || async move { crate::api::http_api::dns_lookup_ips(api_host).await })()
transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>(
(move || async move {
let output_ok = crate::api::http_api::dns_lookup_ips(api_host).await?;
Ok(output_ok)
})()
.await,
)
}
@ -127,8 +138,11 @@ fn wire__crate__api__http_api__dns_lookup_txt_impl(
move || {
let api_host = host.cst_decode();
move |context| async move {
transform_result_dco(
(move || async move { crate::api::http_api::dns_lookup_txt(api_host).await })()
transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>(
(move || async move {
let output_ok = crate::api::http_api::dns_lookup_txt(api_host).await?;
Ok(output_ok)
})()
.await,
)
}
@ -156,16 +170,17 @@ fn wire__crate__api__http_api__fetch_impl(
let api_input_data = input_data.cst_decode();
let api_with_ip_address = with_ip_address.cst_decode();
move |context| async move {
transform_result_dco(
transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>(
(move || async move {
crate::api::http_api::fetch(
let output_ok = crate::api::http_api::fetch(
api_method,
api_url,
api_headers,
api_input_data,
api_with_ip_address,
)
.await
.await?;
Ok(output_ok)
})()
.await,
)
@ -186,10 +201,11 @@ fn wire__crate__api__http_api__set_default_header_impl(
move || {
let api_headers = headers.cst_decode();
move |context| {
transform_result_dco((move || {
Result::<_, ()>::Ok({
transform_result_dco::<_, _, ()>((move || {
let output_ok = Result::<_, ()>::Ok({
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_stream_sink = stream_sink.cst_decode();
move |context| async move {
transform_result_dco(
transform_result_dco::<_, _, ()>(
(move || async move {
Result::<_, ()>::Ok({
let output_ok = Result::<_, ()>::Ok({
crate::api::rs_process::start(
&api_executable,
api_arguments,
@ -229,7 +245,8 @@ fn wire__crate__api__rs_process__start_impl(
api_stream_sink,
)
.await;
})
})?;
Ok(output_ok)
})()
.await,
)
@ -252,11 +269,12 @@ fn wire__crate__api__rs_process__write_impl(
let api_rs_pid = rs_pid.cst_decode();
let api_data = data.cst_decode();
move |context| async move {
transform_result_dco(
transform_result_dco::<_, _, ()>(
(move || async move {
Result::<_, ()>::Ok({
let output_ok = Result::<_, ()>::Ok({
crate::api::rs_process::write(&api_rs_pid, api_data).await;
})
})?;
Ok(output_ok)
})()
.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_id = app_id.cst_decode();
move |context| {
transform_result_dco((move || {
crate::api::win32_api::send_notify(
transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>(
(move || {
let output_ok = crate::api::win32_api::send_notify(
api_summary,
api_body,
api_app_name,
api_app_id,
)?;
Ok(output_ok)
})(),
)
})())
}
},
)
@ -308,9 +329,13 @@ fn wire__crate__api__win32_api__set_foreground_window_impl(
move || {
let api_window_name = window_name.cst_decode();
move |context| {
transform_result_dco((move || {
crate::api::win32_api::set_foreground_window(&api_window_name)
})())
transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>(
(move || {
let output_ok =
crate::api::win32_api::set_foreground_window(&api_window_name)?;
Ok(output_ok)
})(),
)
}
},
)