generated from Desdaemon/flutter_rust_bridge_template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
justfile
38 lines (28 loc) · 897 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
default: setup
setup:
flutter pub get
cd flows && flutter pub get
cd rust_builder && flutter pub get
gen: setup
cargo install [email protected]
flutter_rust_bridge_codegen generate \
--rust-input rust/src/api.rs \
--dart-output lib/gen \
--c-output macos/Runner/bridge_generated.h
l10n:
flutter gen-l10n
lint:
cd rust && cargo fmt
dart format .
clean:
flutter clean
cd rust && cargo clean
test:
cd flows && dart run --enable-asserts example/sync.dart --test
sync:
cd flows && dart run --enable-asserts example/sync.dart --sync
serve *args='':
flutter pub run flutter_rust_bridge:serve {{args}}
# vim:expandtab:sw=4:ts=4
# https://docs.flutter.dev/development/platform-integration/desktop
# sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev