From 1e5e20f66133e146cb25c5ef6afdd356c40b2689 Mon Sep 17 00:00:00 2001 From: Bo Lopker Date: Tue, 3 Sep 2024 18:56:37 +0800 Subject: [PATCH] Update deps, add animated webp support --- CHANGELOG.md | 6 ++++++ lib/src/rust/api/compressor.dart | 2 +- lib/src/rust/frb_generated.dart | 14 ++++++++++++-- lib/src/rust/frb_generated.io.dart | 2 +- lib/src/rust/frb_generated.web.dart | 2 +- pubspec.lock | 4 ++-- pubspec.yaml | 2 +- rust/Cargo.lock | 13 +++++++------ rust/Cargo.toml | 4 ++-- rust/src/frb_generated.rs | 8 ++++---- 10 files changed, 37 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 48048ea..d79d023 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Unreleased +# 1.4.0 + +- Animated WebP support +- Fix small memory leak +- Update dependencies + # 1.3.3 - Update to the newest version of Rust diff --git a/lib/src/rust/api/compressor.dart b/lib/src/rust/api/compressor.dart index ddfe3a2..99cd54a 100644 --- a/lib/src/rust/api/compressor.dart +++ b/lib/src/rust/api/compressor.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.1.0. +// Generated by `flutter_rust_bridge`@ 2.3.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import diff --git a/lib/src/rust/frb_generated.dart b/lib/src/rust/frb_generated.dart index 3b2d3b6..9cf7697 100644 --- a/lib/src/rust/frb_generated.dart +++ b/lib/src/rust/frb_generated.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.1.0. +// Generated by `flutter_rust_bridge`@ 2.3.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 @@ -31,6 +31,16 @@ class RustLib extends BaseEntrypoint { ); } + /// Initialize flutter_rust_bridge in mock mode. + /// No libraries for FFI are loaded. + static void initMock({ + required RustLibApi api, + }) { + instance.initMockImpl( + api: api, + ); + } + /// Dispose flutter_rust_bridge /// /// The call to this function is optional, since flutter_rust_bridge (and everything else) @@ -55,7 +65,7 @@ class RustLib extends BaseEntrypoint { kDefaultExternalLibraryLoaderConfig; @override - String get codegenVersion => '2.1.0'; + String get codegenVersion => '2.3.0'; @override int get rustContentHash => -1541159124; diff --git a/lib/src/rust/frb_generated.io.dart b/lib/src/rust/frb_generated.io.dart index ccaa496..dfd6fd9 100644 --- a/lib/src/rust/frb_generated.io.dart +++ b/lib/src/rust/frb_generated.io.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.1.0. +// Generated by `flutter_rust_bridge`@ 2.3.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 diff --git a/lib/src/rust/frb_generated.web.dart b/lib/src/rust/frb_generated.web.dart index d48c559..7a8428a 100644 --- a/lib/src/rust/frb_generated.web.dart +++ b/lib/src/rust/frb_generated.web.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.1.0. +// Generated by `flutter_rust_bridge`@ 2.3.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 diff --git a/pubspec.lock b/pubspec.lock index 3e44599..e84cbc6 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -396,10 +396,10 @@ packages: dependency: "direct main" description: name: flutter_rust_bridge - sha256: fac14d2dd67eeba29a20e5d99fac0d4d9fcd552cdf6bf4f8945f7679c6b07b1d + sha256: b0271cc147d5afccf9774809e4eef52b7357babe1a1a31db649df6f02dd27580 url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.3.0" flutter_test: dependency: "direct dev" description: flutter diff --git a/pubspec.yaml b/pubspec.yaml index 340e07c..152fff4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -13,7 +13,7 @@ dependencies: window_manager: ^0.4.2 rust_builder: path: rust_builder - flutter_rust_bridge: 2.1.0 + flutter_rust_bridge: 2.3.0 file_selector: ^1.0.3 signals: ^5.0.0 open_file_macos: ^0.0.1 diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 2faec39..b25a748 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -573,9 +573,9 @@ dependencies = [ [[package]] name = "flutter_rust_bridge" -version = "2.1.0" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aebee2d1d5b8b3cfbbb11919b44791b4e0f037328195efd3832c7f7e0c6c6c8b" +checksum = "f13c1e57b460f7adbd6cbf8b4cd0a1d14238ed64f5cc2a6c2ccb7a605ac01354" dependencies = [ "allo-isolate", "android_logger", @@ -590,6 +590,7 @@ dependencies = [ "futures", "js-sys", "lazy_static", + "log", "oslog", "threadpool", "tokio", @@ -600,9 +601,9 @@ dependencies = [ [[package]] name = "flutter_rust_bridge_macros" -version = "2.1.0" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c061770f5f09e99d6143612e95cfc1ba2ae773746fbe5826a9c914a533b0723" +checksum = "16c85e62d6d34f5c1590af004ccd3dc45b1c726dba6721b632b164c19894fab4" dependencies = [ "hex", "md-5", @@ -970,8 +971,8 @@ checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" [[package]] name = "libcaesium" -version = "0.16.2" -source = "git+https://github.com/Lymphatus/libcaesium.git?tag=0.16.2#a67f2475a0f69a2bf5b8da27a51cd50a2c610d86" +version = "0.16.4" +source = "git+https://github.com/Lymphatus/libcaesium.git?tag=0.16.4#f9aab1ef784c9b781ad39a7114ebacb2e3ab4471" dependencies = [ "bytes", "gifsicle", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 365c51b..92fb3a1 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -7,6 +7,6 @@ edition = "2021" crate-type = ["cdylib", "staticlib"] [dependencies] -flutter_rust_bridge = "=2.1.0" +flutter_rust_bridge = "=2.3.0" image = "^0.25" -libcaesium = { git = "https://github.com/Lymphatus/libcaesium.git", tag = "0.16.2" } +libcaesium = { git = "https://github.com/Lymphatus/libcaesium.git", tag = "0.16.4" } diff --git a/rust/src/frb_generated.rs b/rust/src/frb_generated.rs index de6546f..98f8041 100644 --- a/rust/src/frb_generated.rs +++ b/rust/src/frb_generated.rs @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.1.0. +// Generated by `flutter_rust_bridge`@ 2.3.0. #![allow( non_camel_case_types, @@ -36,7 +36,7 @@ flutter_rust_bridge::frb_generated_boilerplate!( default_rust_opaque = RustOpaqueMoi, default_rust_auto_opaque = RustAutoOpaqueMoi, ); -pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.1.0"; +pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.3.0"; pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = -1541159124; // Section: executor @@ -319,7 +319,7 @@ impl SseEncode for i32 { #[cfg(not(target_family = "wasm"))] mod io { // This file is automatically generated, so please do not edit it. - // Generated by `flutter_rust_bridge`@ 2.1.0. + // Generated by `flutter_rust_bridge`@ 2.3.0. // Section: imports @@ -341,7 +341,7 @@ pub use io::*; #[cfg(target_family = "wasm")] mod web { // This file is automatically generated, so please do not edit it. - // Generated by `flutter_rust_bridge`@ 2.1.0. + // Generated by `flutter_rust_bridge`@ 2.3.0. // Section: imports