testing/rust_lib_loader library

Constants

checkoutRustDir → const String
Relative path from a flutter_alacritty git checkout to the Rust crate.

Functions

initRustLibForTests({bool preferRelease = true, String? checkoutRelativeRustDir}) Future<void>
Initializes FRB against a real cdylib. Safe to call from multiple test files' setUpAllRustLib.init is idempotent once loaded.
precompiledRustLibFileName() String
Rust cdylib filename for the current OS.
resolveRustLibPath({bool release = true, String? checkoutRelativeRustDir}) Future<String>
Resolves a Rust cdylib path: local build output → cargo build → precompiled download (Cargokit GitHub releases).
rustLibCandidates({String? checkoutRelativeRustDir}) List<String>
Locations a built Rust cdylib may live, fastest/most-likely first.