Skip to content

[ffi] Specifying external version, architecture and OS constraints #56639

@dcharkes

Description

@dcharkes

The Dart SDK tracking issue for:

Flutter has a way to specify the OS API version and supported architectures (the native build files), and supported OSes (pubspec). We don't have the same for Dart.

Being able to do so would help with both the native assets work as well with packages using dart:ffi without native assets that have version, architecture or OS constraints.

  1. We could surface the info on pub.dev (Surface supported architectures per OS pub-dev#8010)
  2. We could check before dart run, dart compile, dart build that the constraints are satisfied.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-native-interopUsed for native interop related issues, including FFI.library-ffitype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions