Skip to content

Ship binaries for Dart #4689

Open
Open
@robertbastian

Description

@robertbastian

For Dart we need to ship precompiled binaries, as there is not Rust compiler available in the Dart toolchain (and no appetite to add one). However, the pub.dev package manager has a size limit of 100MB per package, which would be enough if we didn't have to ship separate binaries for all 27 supported platforms.

This means we will need some other mechanism for distributing binaries. Options include:

In the library, we add build.dart build script, which will download the binary from the source we're going with. Some open questions here are

  • How do we configure this? There's currently no mechanism in Dart to parameterise dependencies
  • Do we provide a non-network escape hatch, if the developer provides an ICU4X build themselves?
    • How do we handle versioning?

@mosuem

Metadata

Metadata

Assignees

Labels

A-ffiArea: FFI, WebAssembly, TranspilationC-ffi-infraComponent: Diplomat, horizontal FFIS-mediumSize: Less than a week (larger bug fix or enhancement)

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions