From d1230e2165a6bc86b3897486e7eb5e40b6a9670a Mon Sep 17 00:00:00 2001 From: tyranron Date: Tue, 13 Aug 2024 15:21:36 +0300 Subject: [PATCH] Corrections --- analysis_options.yaml | 3 +-- crates/native/Cargo.toml | 5 ++--- lib/src/api/peer.dart | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/analysis_options.yaml b/analysis_options.yaml index f7901904aa..895fad4b0a 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -7,8 +7,7 @@ analyzer: errors: invalid_use_of_visible_for_testing_member: error exclude: - # Autogenerated by flutter-rust-bridge. - - 'lib/src/api/bridge/**' + - 'lib/src/api/bridge/**' # autogenerated by `flutter_rust_bridge` linter: # List of all available lints can be found here: diff --git a/crates/native/Cargo.toml b/crates/native/Cargo.toml index 8c0ddb800c..c5e4058676 100644 --- a/crates/native/Cargo.toml +++ b/crates/native/Cargo.toml @@ -12,7 +12,7 @@ anyhow = "1.0" cxx = "1.0" dashmap = "6.0" derive_more = { version = "1.0", features = ["as_ref", "display", "from", "into"] } -flutter_rust_bridge = { version = "=2.2.0", default-features = false, features = ["rust-async", "anyhow", "thread-pool", "dart-opaque"]} +flutter_rust_bridge = { version = "=2.2.0", features = ["rust-async", "anyhow", "thread-pool", "dart-opaque"], default-features = false } flutter_rust_bridge_macros = { version = "=2.2.0", default-features = false } lazy_static = "1.5" libwebrtc-sys = { path = "../libwebrtc-sys" } @@ -28,8 +28,7 @@ pulse = { version = "2.28", package = "libpulse-binding" } [target.'cfg(target_os = "windows")'.dependencies] windows = { version = "0.58", features = ["implement", "Win32_Foundation", "Win32_Graphics_Gdi", "Win32_Media_Audio", "Win32_System_Com", "Win32_UI_Shell_PropertiesSystem", "Win32_UI_WindowsAndMessaging"] } -# for `#[windows::core]` macro expansion -windows-core = "0.58" +windows-core = "0.58" # for `#[windows::core]` macro expansion [build-dependencies] anyhow = "1.0" diff --git a/lib/src/api/peer.dart b/lib/src/api/peer.dart index cb8c39b1d2..043f3f89fb 100644 --- a/lib/src/api/peer.dart +++ b/lib/src/api/peer.dart @@ -21,7 +21,7 @@ import 'transceiver.dart'; /// Checks whether the running platform is a desktop. bool isDesktop = Platform.isWindows || Platform.isLinux || Platform.isMacOS; -/// Opens the dynamic library and instantiates ffi bridge to Rust side. +/// Opens the dynamic library and instantiates FFI bridge to Rust side. Future initFfiBridge() async { if (!isDesktop) { return;