Fix up workflow of dart formatting in diplomat-gen #4291
Labels
A-ffi
Area: FFI, WebAssembly, Transpilation
C-ffi-infra
Component: Diplomat, horizontal FFI
discuss
Discuss at a future ICU4X-SC meeting
discuss-triaged
The stakeholders for this issue have been identified and it can be discussed out-of-band
Since Dart FFI landed this month, contributors adding or changing FFI need to have the
dart
command installed in order to generate clean diffs. The command is only used for formatting.This is not good because it adds a non-Cargo dependency to a primary ICU4X contributor workflow. (Let's not debate whether or not adding FFI is a primary ICU4X workflow: the fact is that it absolutely is.)
We have a number of approaches:
cargo make dart-install
and makecargo make diplomat-gen
fail ifdart
is not availablecargo make diplomat-install
work on all platforms like Windows, etc.dart
is not available (printing a notice that such behavior is taking place so that people can installdart
to avoid the network call)Discuss with:
The text was updated successfully, but these errors were encountered: