You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run `scripts/windows/build_all.sh` in WSL (Ubuntu 20.04 on WSL2 has been tested)
76
+
###Building for Windows
77
+
Run `scripts/windows/build_all.sh` in WSL (Ubuntu 24.04 on WSL2 has been tested)
84
78
85
79
Libraries will be output to `scripts/windows/build`
86
80
87
-
## Building on Windows
88
-
Perl is required for building on Windows. Strawberry Perl has been tested working.
81
+
## Contributing
82
+
### Regenerate FFI Bindings (ffigen)
83
+
84
+
The Dart bindings in `lib/src/bindings_generated.dart` are auto-generated from the C header produced by the Rust crate. If you change the Rust FFI surface, regenerate as follows from `flutter_libepiccash/`:
85
+
86
+
1) Ensure the C header exists/updated with cbindgen:
- Generate: `dart run ffigen --config ffigen.yaml`.
89
94
90
-
Run `build_all.ps1` in Powershell. This is not confirmed working and may need work eg. may need some missing dependencies added but has been included as a starting point or example for Windows developers.
95
+
Notes:
96
+
- If ffigen cannot find LLVM/Clang, adjust `llvm-path` in `ffigen.yaml` or install LLVM (e.g., `sudo apt install llvm clang`).
97
+
- Ensure the Rust library’s exported C functions match those listed under `functions.include` in `ffigen.yaml`.
0 commit comments