Currently, the protocol between the Dart (and Flutter) SDK and packages' build.dart is specified by its implementation in package:native_assets_cli. This package also provides a way to parse and unparse the protocol.
@jonasfj mentioned it could be that the community likes to reimplement the protocol in another package. For this, we would need to specify the protocol (in a markdown file for example).
It also makes it easier to track if changes are breaking or not, and forces you to be intentional about what the Dart SDK requires, and what is an implementation detail added for easy debugging.
Currently, the protocol between the Dart (and Flutter) SDK and packages'
build.dart
is specified by its implementation inpackage:native_assets_cli
. This package also provides a way to parse and unparse the protocol.@jonasfj mentioned it could be that the community likes to reimplement the protocol in another package. For this, we would need to specify the protocol (in a markdown file for example).