Files

33 lines
1.4 KiB
TOML

# NetDesk flutter_rust_bridge (FRB v2) FFI layer. This crate is the Dart-callable
# surface over `netdesk-core`: the Flutter UI (ui/) calls `connect(...)` plus the
# input/control methods here, and receives a typed event stream (video frames,
# chat, clipboard, lifecycle) over a flutter_rust_bridge StreamSink.
# Developed by Akronlogic (https://akronlogic.com).
[package]
name = "netdesk-frb"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
description = "NetDesk flutter_rust_bridge FFI layer — Dart-callable API over netdesk-core for the Flutter UI. Developed by Akronlogic."
[lib]
name = "netdesk_frb"
# cdylib = the .so/.dll/.dylib the Flutter engine dlopen's on Android/Windows/Linux;
# staticlib = the .a linked into the iOS/macOS app; lib = so the codegen + tests
# can use the crate as a normal Rust library.
crate-type = ["cdylib", "staticlib", "lib"]
# Silence the cosmetic `unexpected_cfgs` warning the `#[frb(sync)]` attribute
# macro emits (it references an internal `frb_expand` cfg); this is the fix
# flutter_rust_bridge documents.
[lints.rust]
unexpected_cfgs = { level = "allow", check-cfg = ['cfg(frb_expand)'] }
[dependencies]
netdesk-core = { path = "../core" }
# Pinned to the installed codegen (flutter_rust_bridge_codegen 2.13.0); FRB
# requires the runtime crate and the codegen to be the same version.
flutter_rust_bridge = "=2.13.0"
tokio = { workspace = true }